Jump to content

shadowGenerator self shadows


ceedee
 Share

Recommended Posts

Objects which at the same time produce and receive shadows show some strange glitches.

http://playground.babylonjs.com/#1SGTPA#9

I tested it on Nvidia NVS3100M  and Intel HD Graphics (1 st gen.)  On each of those cards the  the size of circles is different,  but looks bad anyway.


When you comment lines 92,93:

  //  shadowGenerator.getShadowMap().renderList.push(plane);
  //  shadowGenerator.getShadowMap().renderList.push(videoPlane);

Planes start to look ok, but it is not a solution at all, in case of more complicated meshes/scenes selfshadowing is an important feature.
Only in very limited scenes it is possible to make it good by disabling some meshes shadows.
 

 

 

selfshadows.jpg

Link to comment
Share on other sites

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...