Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: torc on June 19, 2012, 11:40:52 am

Title: light from planets
Post by: torc on June 19, 2012, 11:40:52 am
Hello: i wonder if it's possible to make planets glow as a secondary sun:

I mean if you wanna make a mission near to a planet atmosphere, the ships should be affected by the light emitted from the planet (that is lighted by the sun).

So, is there any way to make this effect, or to make a ''fake'' sun behind the planet without hotspots?

i tried to be much clear as possible with my bad english... :P
thanks in advance for your time.
Title: Re: light from planets
Post by: The_Force on June 19, 2012, 11:44:00 am
Check out WIH.
Title: Re: light from planets
Post by: Droid803 on June 19, 2012, 11:45:17 am
They use "invisible" lighting "stars".
Title: Re: light from planets
Post by: torc on June 19, 2012, 01:00:49 pm
thanks for the info....i'll ask directly at herra Tohtori regarding that :)
Title: Re: light from planets
Post by: Aardwolf on June 19, 2012, 02:58:57 pm
I know SoL (which is apparently dead?) had come up with a shader for diffuse ambient environment lighting... basically the shader looks up the normal vector in a cubemap texture, and uses that as the ambient color. The cubemap contains a blurred ("diffusely convolved") version of the skybox cubemap.

You can probably find a thread about it somewhere on the forums here.
Title: Re: light from planets
Post by: torc on June 19, 2012, 03:09:09 pm
thanks Aardwolf