Shadows

A forum for discussing development work on Ardor3D add-ons and extensions. Basically, anything that is Ardor3D that is not in the ardor3d-core module.
Forum rules
Developer discussions only. Newbie questions belong in the HELP! forum. This is a forum for discussing development work on Ardor3D add-ons and extensions. Basically, anything that is Ardor3D that is not in the ardor3d-core module.

Shadows

Postby renanse » Mon Mar 16, 2009 12:28 pm

A new shadow map pass is in our ardor3d-effects pass, courtesy Rikard and myself. This one implements the PSSM technique, which improves the quality of shadowmaps by breaking them into sections along the camera frustum. Have a look at the example (com.ardor3d.example.effect.ParallelSplitShadowMapExample) for a fun test complete with several debugging options.

Note: this new PSSM pass will likely replace the existing shadowmap pass.
Gratitude is a mark of a noble soul and a refined character.
User avatar
renanse
Site Admin
 
Posts: 1750
Joined: Tue Oct 28, 2008 6:49 pm
Location: Austin, TX

Re: Shadows

Postby renanse » Mon Mar 16, 2009 3:29 pm

fyi, I put up a few screen shots on my blog here:

http://blog.renanse.com/2009/03/improve ... dor3d.html
User avatar
renanse
Site Admin
 
Posts: 1750
Joined: Tue Oct 28, 2008 6:49 pm
Location: Austin, TX

Re: Shadows

Postby jfelrod1960 » Mon Mar 16, 2009 8:41 pm

Question: Would this technique be used when the light direction remains static, but the object is moving in various directions causing the shadow to change?

Excellent work BTW! :thumbsup:
Jeffrey F. Elrod
Complexsive Systems
http://www.complexsive.com
User avatar
jfelrod1960
regular
 
Posts: 108
Joined: Sun Jan 04, 2009 6:12 pm
Location: Piedmont, South Carolina

Re: Shadows

Postby jfelrod1960 » Mon Mar 16, 2009 8:45 pm

Never mind ... I noticed the moving Torus in the demo. :oops:
Jeffrey F. Elrod
Complexsive Systems
http://www.complexsive.com
User avatar
jfelrod1960
regular
 
Posts: 108
Joined: Sun Jan 04, 2009 6:12 pm
Location: Piedmont, South Carolina

Re: Shadows

Postby nymon » Tue Mar 17, 2009 1:23 pm

Beautiful! I've been waiting for this. Great work guys, and kudos for sticking to the roadmap.

One thing that I think is missing from the PSSM pass is a way to remove an occluder without having to clear them all out and re-add the ones you want.
User avatar
nymon
regular
 
Posts: 52
Joined: Tue Jan 06, 2009 12:43 am
Location: Oakland, CA

Re: Shadows

Postby MrCoder » Tue Mar 17, 2009 4:28 pm

Just added in support for setting shadowcolor/transparency, support for 4 splits and some example fixes etc. I'll add in some support for occluder changes.

Next up i think i'll split up the shaders so they only work on the number of splits used, for better performance in lower split counts...

If I had a better laptop I could add in support for variance shadow maps :/
How quickly the world owes him something he knew existed only ten seconds ago - Louis C.K.
User avatar
MrCoder
Site Admin
 
Posts: 398
Joined: Mon Nov 03, 2008 8:56 am
Location: Stockholm, Sweden

Re: Shadows

Postby renanse » Tue Mar 17, 2009 4:58 pm

MrCoder wrote:If I had a better laptop I could add in support for variance shadow maps :/


Hint hint... ;)
Gratitude is a mark of a noble soul and a refined character.
User avatar
renanse
Site Admin
 
Posts: 1750
Joined: Tue Oct 28, 2008 6:49 pm
Location: Austin, TX

Re: Shadows

Postby MrCoder » Tue Mar 17, 2009 5:01 pm

...and my paypal account number is ... ;)
How quickly the world owes him something he knew existed only ten seconds ago - Louis C.K.
User avatar
MrCoder
Site Admin
 
Posts: 398
Joined: Mon Nov 03, 2008 8:56 am
Location: Stockholm, Sweden

Re: Shadows

Postby nymon » Mon Apr 13, 2009 6:02 pm

Any plans on implementing (or porting) stencil shadows in the near future?
User avatar
nymon
regular
 
Posts: 52
Joined: Tue Jan 06, 2009 12:43 am
Location: Oakland, CA

Re: Shadows

Postby MrCoder » Tue Apr 14, 2009 1:20 am

If you want us to, we'll do it! :P (iow, no that wasnt on any near future plan, for me at least)
How quickly the world owes him something he knew existed only ten seconds ago - Louis C.K.
User avatar
MrCoder
Site Admin
 
Posts: 398
Joined: Mon Nov 03, 2008 8:56 am
Location: Stockholm, Sweden

Next

Return to Extensions Development Discussions

Who is online

Users browsing this forum: No registered users and 1 guest