Speed up shadow volume generation

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
Haddayn
Posts: 4
Joined: Mon Apr 28, 2014 4:49 am

Speed up shadow volume generation

Post by Haddayn »

Is there any way to speed up shadow volume generation? My application takes much longer when I use shadow volume scene nodes.

Also, there seems to be a problem with shadow volumes, sometimes shadows have stray polygons stretching to the bottom of the view. Or, to be specific, 'sometimes' is when I have double-sided polygons (by 'double-sided' I mean two sets of polygons, which share vertex data, but have opposite winding).
Nadro
Posts: 1648
Joined: Sun Feb 19, 2006 9:08 am
Location: Warsaw, Poland

Re: Speed up shadow volume generation

Post by Nadro »

If you want to speed up shadow volumes you must modify Irrlicht and calculate shadow extrusions inside a vertex shader.
Library helping with network requests, tasks management, logger etc in desktop and mobile apps: https://github.com/GrupaPracuj/hermes
CuteAlien
Admin
Posts: 9926
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: Speed up shadow volume generation

Post by CuteAlien »

It might be possible to use simplified shadow geometry which is only used for shadow generation (not tested by 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
Mel
Competition winner
Posts: 2293
Joined: Wed May 07, 2008 11:40 am
Location: Granada, Spain

Re: Speed up shadow volume generation

Post by Mel »

I wholeheartedly encurage you to try shadowmaps instead of shadow volumes. I have nothing against them at all, but the shadow maps give less problems, they look nicer in some cases and don't require the usage of geometry shaders to generate the volumes :)
"There is nothing truly useless, it always serves as a bad example". Arthur A. Schmitt
Post Reply