Jump to content

TimeWarp - Spot Lights light up planets


Recommended Posts

Have noticed this with most parts that add directional (Spot) type lights -- when at TimeWarp > 1, the lights will shine on the planet even though it should be -waaaay- out of reach (light has a distance setting of 150m; works properly at TimeWarp=1).  (E.G. USI/UKS Orbital Shipyard exhibits this problem)

I'm thinking that when TimeWarp is activated the rendering engine switches things up and starts cheating regarding rendering/perspective/distances of the planets (did this in a game I was designing, where I would render distant planets at a much closer point, merely scaled properly to maintain perspective; was done to fix problems of depth-buffer near/far clipping problems and overall depth-buffer precision when working with vast distances and single-precision floating point numbers).

I am using a custom lighting module on my parts where I have access to the actual Light object, so I have the opportunity/ability to apply some inverse-scaling to 'fix' the problem, if I can find out what is going on and what scaling to apply.

Link to comment
Share on other sites

8 hours ago, NathanKell said:

Known issue when in scaled space. Scaled space represents planets as 1/6000th their real size (and distances are multiplied by 1/6000), so that means planets are close enough that they will be affected by lights.

Sweet, thanks for the info.  I -might- be able to fix it up using that :)  

Though I suppose if it is only the planets being scaled, any 'fix' that un-lit the planet would dim the light proportionately within its effective range.  Hmm...still might be able to clip the lights max range to keep it from lighting up the planet.  At least I know where to start / what I'm looking for.

 

Thanks again for the detailed and helpful information :)

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

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.

×
×
  • Create New...