Jump to content

Why I can't get the shadows when my mesh close to the ground?


Dog-Cat
 Share

Recommended Posts

I found that when my mesh close to the ground , the shadow will disappear .

following is my setting :

 

the ball position:

ball.position = new BABYLON.Vector3(0,0.5,0);

 

the ground position:

ground.position.y=0;

 

and then i got the result as the files qp1.jpg

 

when i set the ground position to position.y=-2;

 

I see the shadow ( qp2.jpg ) .  And Why I can't see it when my ground is close to my mesh?Is that a bug?

 

I'm new to this. Hopes for help.

 

 

post-13587-0-27718400-1426991238.jpg

post-13587-0-81236900-1426991478.jpg

Link to comment
Share on other sites

Hi and welcome,

 

It would be great to see this setup in the playground (http://www.babylonjs-playground.com/) so we can debug the scene. Try recreating your scene there (even without textures).

I believe it has something to do with the light's direction/position (which is the problem is most shadow-related questions), but it is very hard to tell without knowing how you configured the scene.

Link to comment
Share on other sites

Hi and welcome,

 

It would be great to see this setup in the playground (http://www.babylonjs-playground.com/) so we can debug the scene. Try recreating your scene there (even without textures).

I believe it has something to do with the light's direction/position (which is the problem is most shadow-related questions), but it is very hard to tell without knowing how you configured the scene.

Thank you for your suggestion ! I replaced my babylon.js with the latest version , and I found my problem have solved! :) maybe there is something wrong with my old js document...

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