I don't know how much trouble it would be to make such a change, but all nodes ha a render() function.
basicly what I would like is just to add on argumet to the addNode parameter,
a bool RenderManualy.
This would be very useful if you would like to make your own render functions, you could for example "instance" one node on serveral times per frame. It simply must be cheaper o take one node and render it two times instead of having two seprate nodes and render each of them.
It's also usefull if you need to do stuff with the z-buffer.
ex. you have a long riflemesh, when you walk near a wall the riflegoes trough it. If you can render it manualy, all you have to do is to render it last
and clear the zbuffer. (If i rememebr correctly)
Now the rifle will be renderd ontop of the rest of the world and itt will seem like the weapon is held infront of thw wall.
Code: Select all
scenemanager()->drawall();
PLayerWithLongRifle->DoStuffToZBuffer();
PLayerWithLongRifle->Render();
driver->endScene();
There are most likley lot's of reasons why this is a bad idea for Irrlicht, but I be glad to hear them , othevise Id be happy if some one agrees