how do i make axes node always visible?

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
monchito
Posts: 59
Joined: Thu Mar 08, 2007 9:38 pm

how do i make axes node always visible?

Post 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
Tihtinen
Posts: 76
Joined: Fri Jan 08, 2010 3:12 pm
Location: Finland

Post 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 : )
CuteAlien
Admin
Posts: 9716
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Post 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().
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
monchito
Posts: 59
Joined: Thu Mar 08, 2007 9:38 pm

Post 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
Post Reply