i have two question for you:
when i have to set the alpha channel to the gui(like the user-interface tutorial) i apply this to the whole gui set, but i need than one and only one element(a table with his set of buttons) become invisible, and the others no...
how can i do it?
the second question is about colliding: i know how to do a octreescenenode with a quake level, but how can i make a simple cubescenenode with colliding?(the other thing it has to collide is a normal sidney scene node...)
can u help me also with this one??
thanks....
alpha channel and collision question...
Sorry, you can't set the colors for a single element currently. At least not for the tableelement. So at the moment you have to make an own gui-element for this (copy the table, rename it and change the stuff you need). We need a better solution for overriding all skin-values per element, but it's not here yet.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
maybe i'm wrong, but when i tried to apply the octree scene node to the cube but it give me an error cause i think i need a mesh to apply the octreescenenode because it says that there must be a ianimated scene node, non a simply i scene node...
but i need to usce a cubescene node...
how can i do it???
and for alien..thanks..i was losing a lot of time with it...
i'll make it simply pop in the sceen...
but i need to usce a cubescene node...
how can i do it???
and for alien..thanks..i was losing a lot of time with it...
i'll make it simply pop in the sceen...
You don't need an octree for a cube, so you can use ISceneManager::createTriangleSelector. That can also take a mesh as parameter.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
i'm really a newbie..
how can i take the mesh of the cube???
i've tried, the game starts but there is no collision between the node(sidney and the cube,....
i post a bit of code:
how can i take the mesh of the cube???
i've tried, the game starts but there is no collision between the node(sidney and the cube,....
i post a bit of code:
Code: Select all
scene::ISceneNode* n = smgr->addCubeSceneNode(100,0,0,vector3df(0,0,0));
scene::ITriangleSelector* selector = 0;
selector = smgr->createTriangleSelector(0,n);
n->setTriangleSelector(selector);
IAnimatedMesh* mesh = smgr->getMesh("sydney.md2");
IAnimatedMeshSceneNode* node = smgr->addAnimatedMeshSceneNode(mesh);
if (selector)
{
scene::ISceneNodeAnimator* anim = smgr->createCollisionResponseAnimator(selector,node, core::vector3df(30,60,30), core::vector3df(0,0,0));
node->addAnimator(anim);
anim->drop();
}
if (node)
{
node->setMaterialFlag(EMF_LIGHTING, false);
node->setMD2Animation(scene::EMAT_STAND);
node->setMaterialTexture( 0, driver->getTexture("sydney.bmp") );
}