Shirk Posted January 14, 2014 Share Posted January 14, 2014 Ive noticed that there is a really small render distance for the shadows produced by the sun. Is there any way to increase this? Quote Link to comment Share on other sites More sharing options...
Rick Posted January 14, 2014 Share Posted January 14, 2014 These shadows depend in the "suns" angle. Just like in the real world. If it's noon the shadows aren't long. Later in the evening the shadows get longer because the sun is at a steeper angle. Select the directional light, and play around with rotating it using the rotation buttons on the toolbar. Quote Link to comment Share on other sites More sharing options...
Shirk Posted January 15, 2014 Author Share Posted January 15, 2014 Im talking about how you can visually see the shadows ending and not rendering anymore, leaving a lit portion. Quote Link to comment Share on other sites More sharing options...
Tim Shea Posted January 15, 2014 Share Posted January 15, 2014 The last properties tab in the editor when you select a lamp is called "Light" and includes a range property. Increase the second value of the range property. Quote Link to comment Share on other sites More sharing options...
Shirk Posted January 15, 2014 Author Share Posted January 15, 2014 The range setting for a directional light doesn't do anything. Quote Link to comment Share on other sites More sharing options...
Tim Shea Posted January 16, 2014 Share Posted January 16, 2014 Hmm, I tried playing with the view distance setting and I think I broke something, because now my shadows fade out when the camera moves away from them, regardless of what value I choose. Quote Link to comment Share on other sites More sharing options...
gamecreator Posted January 16, 2014 Share Posted January 16, 2014 Try playing with the camera settings, especially the ranges http://www.leadwerks.com/werkspace/page/documentation/_/command-reference/camera/ Though it might be a light thing Quote Link to comment Share on other sites More sharing options...
Shirk Posted January 16, 2014 Author Share Posted January 16, 2014 Hmm, I tried playing with the view distance setting and I think I broke something, because now my shadows fade out when the camera moves away from them, regardless of what value I choose. That's exactly my problem. I don't recall it not being like that though. Quote Link to comment Share on other sites More sharing options...
Rastar Posted March 9, 2014 Share Posted March 9, 2014 Sorry for necroing an old thread, but... has this been solved/answered? The range setting on the lights tab doesn't do anything (and by the way, if you close and reopen Leadwerks, that range is set back to -150/150, even if I save my map before closing). Also, I actually don't understand what those values mean, especially the first one - is that the range of objects behind the camera that cast shadows? Quote Link to comment Share on other sites More sharing options...
YouGroove Posted March 9, 2014 Share Posted March 9, 2014 I'seen that a bunch of time ago, it's some internal setting that is fixed and not adjustable. On big games like Skyrim, there is also a shadow distance maximum to avoid performance issues. Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Rastar Posted March 9, 2014 Share Posted March 9, 2014 Well, those shadows fade out when I move some 20 units or so away - that's a pretty short range for an (inifinite) directional light... it definitely has to go further, and it has to be adjustable. 2 Quote Link to comment Share on other sites More sharing options...
elcoo Posted December 7, 2014 Share Posted December 7, 2014 It's been almost a year since this issue has been reported now. Can we have an update on it? Quote Link to comment Share on other sites More sharing options...
shadmar Posted December 7, 2014 Share Posted December 7, 2014 This might help : In editor (for when editing only) Tools->Options->Video->Lightning Quality (High) In game (no.. menu setting isn't inherited by game running): self.world=World:GetCurrent() self.world:SetLightQuality(2) 1 Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
elcoo Posted December 12, 2014 Share Posted December 12, 2014 Unfortunately it doesn't help too much. When developing a game that uses larger worlds (For example: a Flight simulator/Spacesim etc.) than usual indoor scenarios, you will have to see shadows from much farther away. Of course one could simply scale the world down by factor 0.1 or 0.01, but this will result in a loss of precision. So what we need is a option to scale the shadow casting distance. I know this will result in more blurry shadows, but that doesn't matter, as you wouldn't be as close to the shadows as in a FPS. 1 Quote Link to comment Share on other sites More sharing options...
Olby Posted December 12, 2014 Share Posted December 12, 2014 Agree, when I just got LE I tried to make a Manhattan style level. With directional lightning the shadows from the skyscrapers naturally are quite long and abruptly end in the near distance. This is very unfortunate since it breaks the atmosphere - the world becomes full bright as soon as the shadows are cut. Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
marchingcubes Posted January 7, 2015 Share Posted January 7, 2015 This is a problem for me too, with my 'outside' levels - i'm currently experimenting with tree construction and placement, and the shadow falloff distance is far too short for my purposes. in the two shots below, as i approach my trees, the shadows arent at all visibile until i am practically right next to them. Quote Link to comment Share on other sites More sharing options...
marchingcubes Posted January 7, 2015 Share Posted January 7, 2015 ok, setting lightquality to 2 in App.lua pretty much fixes it in my case (I had it set to 0 for some reason) 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.