Page 1 of 1

Need scenenode to render when I need.

Posted: Sat Apr 01, 2006 6:04 am
by Dirtbiker
I need a scenenode to render after the skybox but before the other scenenodes and one to render after the other scenenodes but before the GUI and HUD.
I have been trying to use "scene.registerNodeForRendering(node, ESNRP_SKY_BOX)" but the node just draws with the other nodes.
Could I be setting up this command wrong or is this the wrong method for what I need?
Thank you.

Posted: Sat Apr 01, 2006 6:31 am
by bitplane
you need to turn z-write off as well as rendering first if you want your node to be behind all others.
for drawing last, you'll need to draw your node manually with the z-buffer (z-read) disabled
see smaterial reference for z-buffer read/write flags:
http://irrlicht.sourceforge.net/docu/_s ... al_8h.html

Posted: Mon Apr 03, 2006 10:04 am
by Dirtbiker
I'm sorry, I'm new to coding. What function is for mannual render, "node.render()"? And how is it used? Is it used with the "devices.drawall()" functions or do I need to handle all rendering manually?
Thank you.