[No Bug + info] Burning's bug - Wrong Z-order
Posted: Fri Jan 23, 2015 10:36 pm
For the record (even though I'll probably be the one who ends up fixing it), when the material of a mesh is set to GourandShading=false and MaterialType=EMT_TRANSPARENT_ALPHA_CHANNEL, the objects are drawn in the wrong z-order, even though the faces are drawn facing the camera. This means one of the 15 renderers of Burnings (yes, it has 15 nearly identical copies of the same renderer) is sorting backwards.
I'd give a picture, but it's rather self-explanatory, and I'll probably be the one to fix it anyways.
Update: Specifically, it happens with or without GourandShading. I tried different textures, different sizes, and no difference - the problem is the same. I'm still looking into it. Note: The textures all contain an alpha channel.
Update: And yes, I tried videoDriver->setAllowZWriteOnTransparent(true), and that didn't work either.
Edit: I found how to set it: Apparently, I have to use:
sceneManager->getParameters()->addBool( irr::scene::ALLOW_ZWRITE_ON_TRANSPARENT, true );
I'd give a picture, but it's rather self-explanatory, and I'll probably be the one to fix it anyways.
Update: Specifically, it happens with or without GourandShading. I tried different textures, different sizes, and no difference - the problem is the same. I'm still looking into it. Note: The textures all contain an alpha channel.
Update: And yes, I tried videoDriver->setAllowZWriteOnTransparent(true), and that didn't work either.
Edit: I found how to set it: Apparently, I have to use:
sceneManager->getParameters()->addBool( irr::scene::ALLOW_ZWRITE_ON_TRANSPARENT, true );