DirectX Transparency Not Working

You discovered a bug in the engine, and you are sure that it is not a problem of your code? Just post it in here. Please read the bug posting guidelines first.
Post Reply
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

DirectX Transparency Not Working

Post by Spintz »

I can't figure this one out....

In OpenGL

Image

In DirectX - the transparency only works if the camera is close to the object, far away, the transparency is reversed.

Image

This happens using both EMT_TRANSPARENT_ALPHA_CHANNEL_REF and EMT_TRANSPARENT_ALPHA_CHANNEL

Still working on what the problem can be
Image
puh
Posts: 356
Joined: Tue Aug 26, 2003 3:53 pm

Post by puh »

Hey, Spintz, try to add LoadedTexture->regenerateMipMapLevels(); somewhere after loading this Texture. Should help.
Spintz
Posts: 1688
Joined: Thu Nov 04, 2004 3:25 pm

Post by Spintz »

PUH, you're the best!!

BTW, this problem doesn't happen if I use hardware generated mipmaps, which is only supported with DX9. I'm just disabling DX8 by default in Irrlicht-Spintz. Figure, if you have DX, you should have DX9 :D
Image
Post Reply