Jump to content

Introducing better shadows with Exponential Shadow Maps


GameMonetize
 Share

Recommended Posts

Hello team!

as part of 3.0 version, I'm proud to announce the availability of ESM shadows (Exponential Shadow Maps).

I updated the great doc done by @Wingnut to take this in account: http://doc.babylonjs.com/tutorials/shadows

bluresm.jpg

VSM (variance shadow maps) were removed (to keep backward compatibility the properties are still here but they will trigger a warning in the console).

ESM are great because they can be blurred. Here is an example of all kind of shadows we have now: http://www.babylonjs-playground.com/#20FROK#2

ESM are great because they allow you to deal with selfshadowing: http://www.babylonjs-playground.com/#1CXNXC#3

 

Hope you like it!

Link to comment
Share on other sites

http://www.babylonjs-playground.com/#1CMD3G#30

SO bumpy-edged (acne? heh - a term borrowed from some shadow tutorial contributor), even with a big 4096 shadowGen.  hmm. 

*shrug*  Lines 22-33 is experiment zone.

I'm probably making mistakes, though.  I don't work-with shadows too often.

Also, light.shadowMinZ and .shadowMaxZ (for lights used in shadowGenerators) are not included in PG intellisense (as far as I can tell)... but perhaps too new, yet.  Just thought I'd mention it.

Congrats on the feature-add, DK and crew!   I think the shadows tutorial is yours, @Deltakosh.  If it were mine, it would contain 20%+ incorrect statements.  :D

Link to comment
Share on other sites

Yeah, I understand. 

And... it seems... the directionalLight beams should be the exact same direction... as the angle between light and target POSITIONS (for least jaggies).  ie. Set light and target positions first, then light.setDirectionToTarget(target.position) to "get your beams aligned".  :)  (it's a log cabin-builder's thing)  :D

Link to comment
Share on other sites

  • 2 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...