Request: manage which passes are drawn by smgr->drawall

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Request: manage which passes are drawn by smgr->drawall

Post by hendu »

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.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Request: manage which passes are drawn by smgr->drawall

Post by CuteAlien »

@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
hendu
Posts: 2600
Joined: Sat Dec 18, 2010 12:53 pm

Re: Request: manage which passes are drawn by smgr->drawall

Post by hendu »

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.
CuteAlien
Admin
Posts: 9628
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Request: manage which passes are drawn by smgr->drawall

Post by CuteAlien »

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
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Request: manage which passes are drawn by smgr->drawall

Post by mongoose7 »

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.
chronologicaldot
Competition winner
Posts: 684
Joined: Mon Sep 10, 2012 8:51 am

Re: Request: manage which passes are drawn by smgr->drawall

Post by chronologicaldot »

... Or we could just have new, separate draw functions and leave the old one. :lol:
devsh
Competition winner
Posts: 2057
Joined: Tue Dec 09, 2008 6:00 pm
Location: UK
Contact:

Re: Request: manage which passes are drawn by smgr->drawall

Post by devsh »

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)
Granyte
Posts: 850
Joined: Tue Jan 25, 2011 11:07 pm
Contact:

Re: Request: manage which passes are drawn by smgr->drawall

Post by Granyte »

chronologicaldot wrote:... Or we could just have new, separate draw functions and leave the old one. :lol:
That's what i did the original methode is still there and there are alternative methodes that gives more control
Post Reply