[fixed]IGUIStaticText Background Not Visible
Posted: Sat Aug 23, 2008 3:01 pm
I was able to isolate this problem (in revision 1510) outside of my framework code by creating a HillPlane with a transparent material:
Without "mat->MaterialType = EMT_TRANSPARENT_ALPHA_CHANNEL":
With "mat->MaterialType = EMT_TRANSPARENT_ALPHA_CHANNEL":
As in this somewhat related post, it only happens when using OpenGL.
("grid.tga"link)
Code: Select all
SMaterial* mat = new SMaterial();
ITexture* tex = m_videoDriver->getTexture("data/tex/grid.tga");
mat->setTexture(0,tex);
// causes static text background to disappear.
mat->MaterialType = EMT_TRANSPARENT_ALPHA_CHANNEL;
mat->setFlag(EMF_LIGHTING,false);
mat->getTextureMatrix(0).setTextureScale(50.0,50.0);
dimension2d<f32> tileSize(50,50);
dimension2d<u32> tileCount(6,6);
IAnimatedMesh* pmesh =
m_sceneManager->addHillPlaneMesh("testHillPlane"
,tileSize,tileCount,mat);
IAnimatedMeshSceneNode* pnode =
m_sceneManager->addAnimatedMeshSceneNode(pmesh);
With "mat->MaterialType = EMT_TRANSPARENT_ALPHA_CHANNEL":
As in this somewhat related post, it only happens when using OpenGL.
("grid.tga"link)