Using scene manager in Null Driver.
Using scene manager in Null Driver.
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.
Re: Using scene manager in Null Driver.
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.
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Re: Using scene manager in Null Driver.
Thank you that's exactly what I needed to know.