Page 1 of 1

Transparency only close to the camera?!

Posted: Sun May 08, 2005 12:12 pm
by MeisterK
I'm playing with a node having an partly transparent texture on it.
Odd is that the texutre is only transparent when it's close to the camera? A little more away it's starting to show the "transparent color".

I set EMT_TRANSPARENT_ALPHA_CHANNEL as MaterialType and I used a TGA and a BMP (this with makeColorKeyTexture) for testing- both the same effect.

There is no fog or lighting in the scene.

Any Idea?

Thx

Posted: Sun May 08, 2005 2:10 pm
by jox
Seems like a mipmap problem. Is your texture size power of two? Maybe call regenerateMipMapLevels after makeColorKeyTexture?

Posted: Sun May 08, 2005 2:34 pm
by MeisterK
The image sizes were 512x512 pixel and calling 'regenerateMipMapLevels' was the solution.

A warm thank-you for this help!