Hi
I'm using irrlicht 1.7 & CB.
I found an axes scene node here http://irrlicht.sourceforge.net/phpBB2/ ... hp?t=21993
I need the axes to be visible always, even inside other nodes( is the idea), but don't know how to do it. Its for a simple scene editor. Don't know if already posted, tried to find something without any luck.
Thanks in advance
how do i make axes node always visible?
One way to do this is disable Z-buffer (EMF_ZBUFFER -material flag if I remember correctly) and the visibility of the node. Then after smgr->drawAll() has finished, render the node using node->render(). Because the lack of a Z-test it will be fully drawn in the front of everything. If you want it to be behind something, like gui-elements, be sure to draw them later than the node.
This is how I did it in my level editor, hope it helps : )
This is how I did it in my level editor, hope it helps : )
Another way I've been using recently was to use an own SceneManager for the overlay stuff. After the normal rendering was done I called driver->setRenderTarget with clearBackBuffer=false and clearZBuffer=true. Then I rendered that other SceneManager with drawAll().
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