So:
How to draw Nodes in front / above other nodes, for example a weapon, which should allways be visible, disregarding if it is colliding with a wall.
Code: Select all
irr::video::SMaterial mat = node->getMaterial();
mat->ZBuffer = false;
Note:
With this you won't be able to do several layers of SceneNode rendering. If you got more then one SceneNode in the line of view, only the last rendered node will be visible complete. (Don't blame me on that last sentence, but it's late and I've not tested it and it sounds reasonable.)
Hope someone likes this.
Matthias
p.s. If this is discussed somewhere else allready: flame me and delete this topic.