Well i've learned openGL using all the NeHe tutorials and i think irrlich really miss more detailed tutorial about how to do certain stuffs.
For instance i've a billboard with a trasparent texture and i want overlap over it another billboard with a trasparent logo.
In openGL i do this using ARB extensions and multitexturing OR blending the 2 billboard one over the other.
The closest result i got with irrlich is this:
Code: Select all
IBillboardSceneNode *node1 = scenedriver->addBillboardSceneNode ( 0, core::dimension2d< f32 >(100.0f, 100.0f) );
node1->setPosition(core::vector3df(0,0,100));
node1->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);
node1->setMaterialFlag(EMF_LIGHTING, false);
node1->getMaterial(0).AmbientColor.set(255,255,255,255);
node1->getMaterial(0).DiffuseColor.set(255,255,255,255);
node1->setMaterialTexture( 0, videodriver->getTexture("data/test2.png") );
node1->setMaterialType( video::EMT_TRANSPARENT_ALPHA_CHANNEL );
IBillboardSceneNode *node2 = scenedriver->addBillboardSceneNode ( 0, core::dimension2d< f32 >(100.0f, 100.0f) );
node2->setPosition(core::vector3df(0,0,100));
node2->setMaterialFlag(video::EMF_NORMALIZE_NORMALS, true);
node2->setMaterialFlag(EMF_LIGHTING, false);
node2->getMaterial(0).AmbientColor.set(255,255,255,255);
node2->getMaterial(0).DiffuseColor.set(255,255,255,255);
node2->setMaterialTexture( 0, videodriver->getTexture("data/opengl.tga") );
node2->setMaterialType( video::EMT_TRANSPARENT_ALPHA_CHANNEL );
Thank you, Antonio
________
Hawaii Medical Marijuana Dispensaries