Jump to content
Roland

[Solved] Incomplete shadow

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

Share this post


Link to post

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)

Share this post


Link to post

Thanks for the suggestion. Will not be able to test until tomorrow. Will report then how it goes.

Share this post


Link to post

I have the same (but not as bad) shadow gap at the bottom of my picket fences even though they are stuck well into the terrain. All other shadows are ok such as tree trunks, walls, solid fences but the picket fences for some reason have always given me this problem.

Share this post


Link to post

Okay. I have now tested with high lighting quality. No change. The shadow becomes a bit more blurry but thats all.

Just for the sake of testing I turn ALL setting to their highest levels and same result, so I begin to think this either an Engine limitation or a bug

Share this post


Link to post

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

Share this post


Link to post

Okay. Yes. That was just a tiny cylinder (a surrogate for a key).

No problem and good to know. I'll keep that in mind.

Thanks smile.png

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

×
×
  • Create New...