Using scene manager in Null Driver.

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
Blueman27
Posts: 5
Joined: Sat Nov 21, 2015 1:17 am

Using scene manager in Null Driver.

Post by Blueman27 »

I'm curious if i'd still be able to use the scene manager to manage scene nodes and such when using the Null driver? Also would I Still need to use the smgr->drawAll(); function to get the scene to update? I plan on using the Null Driver for my server sided code so I figured I would ask.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Using scene manager in Null Driver.

Post by CuteAlien »

Yes, most things will still work. I used that as well for some server-code in the past.
Except for textures - those will only be dummy-textures containing the name, but no data (so you can't do things like checking for pixel-values). But that's usually fine.
About drawAll()... probably easiest to call it. Otherwise ensure you call updateAbsolutePosition() on all nodes at least once per frame manually. And if you need animations you have to call OnAnimate. Not sure right now if you would miss something else right - didn't try that myself.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Blueman27
Posts: 5
Joined: Sat Nov 21, 2015 1:17 am

Re: Using scene manager in Null Driver.

Post by Blueman27 »

Thank you that's exactly what I needed to know. :P
Post Reply