Jump to content

LOD's casting shadow when they shouldn't


SpiderPig
 Share

Go to solution Solved by SpiderPig,

Recommended Posts

The attached model has LOD's.  If you disable shadows for LOD3, it won't cast shadows if you drag that LOD into the editor by itself, but it will still cast shadows as part of it's parent.  In the shot below you can see that LOD3 (a billboard) on the right casts no shadow but half the shadow of the tree on the left has the billboards shadow still.

 

LOD_Shadows.thumb.png.8ee4f36d2e7d56a4b846fe38c67f92af.png

 

Link to comment
Share on other sites

When an LOD is loaded from a model, it just adds the meshes found in that model into a new LOD. No entity properties are copied from the LOD model file.

A model with several LODs is just a single model.

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

I see nothing in this model that would cause the lowest resolution LOD to not cast shadows. However, the wrong LOD might be getting selected when rendering shadows. Directional lights are made up of four box lights.

image.thumb.png.84d07d16dc0e4690107b6b28f5d4ad6e.png

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

The first image in this thread shows LOD3 with no shadows on the right because I disabled them for that model.

What I'm trying to say is, should the shadow option in the material properties be removed if its a "per model feature" and not a "per material feature"?

Link to comment
Share on other sites

  • 4 weeks later...

There is still some issues.  Project is up to date.  I've attached the map I used as well as the updated files.  Extract the pine tree to the Models folder.

  • As you move the camera away the billboard stage has no material applied.  Yet if you drag LOD3 into the scene it does and it's shadow casting is correct, yet as part of the main model it is not correct.
  • You'll also notice that changing the shadow casting of LOD3 only sometimes updates the editor straight away.
  • Also, not saving a model will still save it.
  • After a bit more playing around I'm finding changing the shadow casting of LOD3 is not even updating the editor at all no matter what I do.

I think if you play around with the attached map you should find a few things not working like they should.

 

Pine.zip PineLeaves_DIFF.zip

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