Rick Posted August 26, 2012 Share Posted August 26, 2012 I have a FOV of 15. My terrain is at the default level. I have 1 directional light. My camera is at (1, 75, -57). The models on my terrain aren't casting any shadows and I would like them to do so. After I load my scene I loop through each entity in the scene and set the shadow range to a large number but it doesn't seem to show them still. How can I get the shadows to show in my above situation? childCount = CountChildren(scene); for(i = 1; i <= childCount; i++) { entity = GetChild(scene, i); EntityShadowRange(entity, 50000); } Quote Link to comment Share on other sites More sharing options...
Athos Posted August 26, 2012 Share Posted August 26, 2012 Have you tried this? EntityShadowMode and there's also another command: SetShadowDistance Quote Link to comment Share on other sites More sharing options...
Rick Posted August 26, 2012 Author Share Posted August 26, 2012 Thanks Athos. SetShadowDistance() is probably the command but when I use it in C++ it doesn't work, but I set it from the editor and it's working now. Clearly doing something wrong on the C++ side, but it works from the editor so all good. Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.