Page 1 of 1

how do i make axes node always visible?

Posted: Fri Jul 02, 2010 1:59 pm
by monchito
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

Posted: Fri Jul 02, 2010 2:09 pm
by Tihtinen
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 : )

Posted: Fri Jul 02, 2010 4:44 pm
by CuteAlien
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().

Posted: Fri Jul 02, 2010 5:29 pm
by monchito
Hi
sorry Tihtinen, I disabled the ZBuffer and visibility, used the ->render() after ->drawAll()
I followed the instructions but doesn't work. Still hidden inside the/or behind the nodes.
The next try is the CuteAlien method