Hi,
I want add a scenenode and, want it to always render on top of the other scene nodes whereever the camera looks from, even the scenenode is at the back in 3d space. Is this possible?
A sceneode that is always on top
-
Steel Style
- Posts: 168
- Joined: Sun Feb 04, 2007 3:30 pm
- Location: France
thank you very much, works perfect! 
Code: Select all
_driver->beginScene(true, true, 0);
_smgr->drawAll();
_driver->clearZBuffer();
transformationArrows->render(); //Render always on top
_driver->endScene();Does this not mean it will be drawn twice.
Once in the drawAll and once manually.
You could setVisible to false first although a better solution might be wise i.e. a new E_SCENE_NODE_RENDER_PASS for drawAll().
I need to do this myself and I think that's how I'm going to do it although I don't really like to make changes to irrlicht as it makes upgrading more difficult.
Once in the drawAll and once manually.
You could setVisible to false first although a better solution might be wise i.e. a new E_SCENE_NODE_RENDER_PASS for drawAll().
I need to do this myself and I think that's how I'm going to do it although I don't really like to make changes to irrlicht as it makes upgrading more difficult.
If it's in the scene graph then yes, but you could grab() and then remove() the node, which will cause it to be removed from the scene graph but not destroyed (remember to drop() it later).Adversus wrote:Does this not mean it will be drawn twice.
Once in the drawAll and once manually.
Using another scene manager would be the best way. No need to edit the source and no restrictions on the types of materials you can draw.