PDA

View Full Version : Weirdness in hi-res texture loading



Lord A.
January 26th, 2006, 03:00
I started redoing Duke Nukem 64 [U]'s textures a few days ago, and a few hours ago I remade a "world texture".. It loaded fine the first time, but I wasn't happy with it, so I altered it a bit.. Then it wouldn't load the texture anymore.. After a few hours of frustration, I simply selected the whole image and pressed delete, so the layer went blank, thus the image was just a transparent layer.. I saved it like that, and went into the game, and wtf :blink: ... the texture was loaded, just the way it was before I deleted the layer's contents.. Then I decided to try another similar texture, first stage's road texture.. And the same thing, after making the image, I had to empty the layer with del, or the original texture appeared in-game....

I was wondering has anyone else encountered anything like this, and perhaps know a solution to this.? It's a real pain in the ass if you want to alter the texture again later, since you'll have to do it all over instead of just modifying it.... :ranting:

V-King
January 26th, 2006, 06:24
You have to make sure, that the texture has a color depth of 32-Bit.
Means: 24-Bit for colors and 8-Bit for transparency.
If you filled out the complete texture, Photoshop and Paint Shop Pro most likely converts the texture automatically into a 24-Bit texture when saved although it was 32-Bit before you saved. Just make sure one single pixel has a transparency of 1% or so then it will be a 32-Bit texture when saved ;)

snesmaster40
January 26th, 2006, 10:11
Also make sure you're editting the PNG files

V-King
January 26th, 2006, 11:35
And of course: The new textures need to be 1, 2, 3 or 4 times the size of the original texture.

Lord A.
January 26th, 2006, 17:09
Thanks, V-King, they needed the transparent pixel, problem solved.... :D