TØXIN 43 Posted February 4, 2017 Share Posted February 4, 2017 This is a bug that is found in the new update (4.3). Models with either "Dynamic" or "Static" never cast shadows if it has a parent. By removing the parent and have the model by itself, it casts shadows. Sames goes for CSG brushes. See screenshots: Link to post Share on other sites
macklebee 883 Posted February 4, 2017 Share Posted February 4, 2017 This is not new to this update. Children objects will use the parent's shadowmode settings. The pivot inherently has SetShadowMode set to Light.None. Set the pivot shadow mode to the appropriate setting for your child object and you will see the shadow. Link to post Share on other sites
TØXIN 43 Posted February 4, 2017 Author Share Posted February 4, 2017 Everything was working fine before this update. After updating to 4.3 I am having this issue. I had made sure that the pivot or any parent entity had shadowmode set to "static" and child entities do not render shadows. The children entities are set to "static" too. I am able to recreate this issue if I had another model with "Static" shadows in place of the pivot. Two models, the parent casts shadows, but the child does not. Link to post Share on other sites
macklebee 883 Posted February 4, 2017 Share Posted February 4, 2017 This has come up before regarding child shadows, so its not new to this update. As for what you are showing above, I can have child shadows in the latest update and earlier versions if I set the parent shadow to something other than none. The only thing I can think of is what you are seeing might be related to reeplue's bug post that the latest update isn't updating shadows in the editor: http://www.leadwerks.com/werkspace/topic/15713-shadow-update-editor-issues/ . Granted, I can not reproduce what he is describing. Link to post Share on other sites
TØXIN 43 Posted February 4, 2017 Author Share Posted February 4, 2017 Change the light in your scene to a point light. It seems the issue I am having is with point lights and spot lights in this update. Link to post Share on other sites
macklebee 883 Posted February 4, 2017 Share Posted February 4, 2017 Yep - now that I can reproduce. My guess is that this is related to what reepblue is experiencing with his bug report as well - part of the optimization I would assume. http://www.leadwerks.com/werkspace/blog/41/entry-1879-leadwerks-game-engine-43-released/ Link to post Share on other sites
TØXIN 43 Posted February 4, 2017 Author Share Posted February 4, 2017 Good! I'm glad I am not the only one now! It sounds Reepblue's issue was just with the editor, but not in-game. The problem is, my issue happens in-game too, not just the editor. I have a bunch of torches and other objects in my maps have parent entities. Before this update, they were working great, casting nice shadows. However, after this update, they do not cast shadows. So now everything looks flat. Link to post Share on other sites
macklebee 883 Posted February 4, 2017 Share Posted February 4, 2017 Yes - this is new with the point and spot lights (not the child using the parent's shadowmode). I just hope this wasn't the big optimization that is being touted for 4.3, because if so... Link to post Share on other sites
Optimus Josh 9,719 Posted February 6, 2017 Share Posted February 6, 2017 I believe this is fixed. Will update tonight on the beta branch. Link to post Share on other sites
Recommended Posts