Transparency only close to the camera?!

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
MeisterK
Posts: 66
Joined: Sat Feb 26, 2005 1:20 pm

Transparency only close to the camera?!

Post 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
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post by jox »

Seems like a mipmap problem. Is your texture size power of two? Maybe call regenerateMipMapLevels after makeColorKeyTexture?
It is like it is. And because it is like it is, things are like they are.
MeisterK
Posts: 66
Joined: Sat Feb 26, 2005 1:20 pm

Post by MeisterK »

The image sizes were 512x512 pixel and calling 'regenerateMipMapLevels' was the solution.

A warm thank-you for this help!
Post Reply