Need scenenode to render when I need.

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
Dirtbiker
Posts: 29
Joined: Wed Aug 31, 2005 7:02 am
Location: U.S.
Contact:

Need scenenode to render when I need.

Post 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.
bitplane
Admin
Posts: 3204
Joined: Mon Mar 28, 2005 3:45 am
Location: England
Contact:

Post 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
Submit bugs/patches to the tracker!
Need help right now? Visit the chat room
Dirtbiker
Posts: 29
Joined: Wed Aug 31, 2005 7:02 am
Location: U.S.
Contact:

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