Jump to content

PBR - Receive Shadows from Another Object?


Starflare
 Share

Recommended Posts

Hello!

I have an issue I hope you can help me with.

I'll put you in context and hope I can give you enough information. Let's say I have a PBR floor exported with diffuse, rough, metal and normal from 3DSMax with the Babylon plugin, as well as the environment texture for reflections. I would like to put a ball on this floor that casts a shadow over it, but for some reason it isn't working. It does work with a standard material, but not the PBR.

Does this have to do with the 3DSMax export? Am I missing something in code? Should I tweak the shader somehow?

 

Thank you for the help in advance!

Link to comment
Share on other sites

Hello,

Here is a scene trying to explain the issues: https://www.babylonjs-playground.com/#10D6YT#49

First, you have 2 lights in your scene so I disposed the first one to isolate the shadow. Then using blurred shadow on a close range will create artifacts so I switched to hard shadow for the demo.

From this point we can see a bit of shadow on the helmet (https://www.babylonjs-playground.com/#10D6YT#50): image.png.ea86c27edbe629b1fc0edf9516a92410.png

 

But why not hard ??? This comes from all the indirect light received by the helmet so let s turn it of (https://www.babylonjs-playground.com/#10D6YT#51):

image.png.e596e0ab6ebab2472214eb9c69817f8c.png

So I have to admit it is not intuitive and easy to setup hence why I want to work quite a lot on Shadow for 3.2 :-)

Hope this helps,

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