Jump to content

[Solved] Incomplete shadow


Roland
 Share

Recommended Posts

Just wondering why the shadows don't start from the bottom of this CSG cylinder as they should.

The box is also CSG. This way it looks like the cylinder is a bit up in the air although it isn't when running the program. Is it a bug or me missing something. The light is a normal directional light. Both CSG items has 'static¨' shadows on.

 

I also tested with a mdl cylinder, same result. This will look really bad in a real game.

 

 

In editor

post-395-0-67780800-1440878762_thumb.jpg

 

Running the program

post-395-0-02597800-1440878774_thumb.jpg

 

http://youtu.be/BkHAaXRiOQ0

Roland Strålberg
Website: https://rstralberg.com

Link to comment
Share on other sites

Have you tried playing with lighting quality? I had issues with shadows too and i ended up setting the lighting to High to resolve it.

 

In the editor: Options > Video > Lighting Quality (High) and don't forget to set it when game starts as well: world:SetLightQuality(2)

  • Upvote 1
Link to comment
Share on other sites

Extremely small objects can start to interfere with the resolution of the shadow map. If it's too small it won't have completely accurate shadows. This is normal for any shadowmap implementation.

 

This cylinder is just a little bigger:

 

post-1-0-30176400-1441044491_thumb.jpg

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

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.

 Share

×
×
  • Create New...