Request: manage which passes are drawn by smgr->drawall
Re: Request: manage which passes are drawn by smgr->drawall
It's been used in my projects, as well as in STK, but sadly I don't think current STK can be used as an example anymore.
Re: Request: manage which passes are drawn by smgr->drawall
@hendu: So you animated all nodes several times each frame? :-)
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: Request: manage which passes are drawn by smgr->drawall
Yes, and it didn't show up in the profiler either. None of my projects use animated meshes, the animations are all in code; STK uses many animated b3d, and it didn't raise cpu use there measurably either.
In STK it was used for 3d backgrounds, god rays, and shadows.
In STK it was used for 3d backgrounds, god rays, and shadows.
Re: Request: manage which passes are drawn by smgr->drawall
Yeah, it's not so hard to avoid anyway, that just needs one more flag. Not sure yet about the best solution to avoid to fill/clear the arrays several times. Preferably I'd want them filled only once (probably another flag) and then the rendering should care about the bit-flags. But I read earlier in this thread there was some reason it wasn't done that way - and have to dig into the source first to understand that (just no idea right now how to find time for that anytime soon...I probably won't).
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: Request: manage which passes are drawn by smgr->drawall
Someone complained about onAnimate being called more than once per frame in the XEffects thread, so it must affect some animations. It doesn't affect skinned meshes because they won't render the same frame more than once. It's not a CPU utilisation concern.
-
- Competition winner
- Posts: 688
- Joined: Mon Sep 10, 2012 8:51 am
Re: Request: manage which passes are drawn by smgr->drawall
... Or we could just have new, separate draw functions and leave the old one.
Re: Request: manage which passes are drawn by smgr->drawall
Or you can copy and paste the CSceneManager code and modify it to make your own class and substitute that as the default scene manager, thats how we keep our render passes separate in BAW (solids, then framebuffer ops, then water, then deferred render fog + future lighting, then alpha)
Re: Request: manage which passes are drawn by smgr->drawall
That's what i did the original methode is still there and there are alternative methodes that gives more controlchronologicaldot wrote:... Or we could just have new, separate draw functions and leave the old one.