Page 1 of 1

Using scene manager in Null Driver.

Posted: Sat Jan 28, 2017 5:12 am
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.

Re: Using scene manager in Null Driver.

Posted: Sat Jan 28, 2017 12:15 pm
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.

Re: Using scene manager in Null Driver.

Posted: Sat Jan 28, 2017 10:01 pm
by Blueman27
Thank you that's exactly what I needed to know. :P