Planetside Software Forums

General => Terragen Discussion => Topic started by: AC5LT43R on July 16, 2014, 05:24:00 AM

Title: Lighting the clouds from underneath
Post by: AC5LT43R on July 16, 2014, 05:24:00 AM
Hey, I want to create the effect of clouds being lit from underneath by ambient city lights, however the light source options seem fairly limited. So far I've tried a light source, but placing the light where I want the light to emit from makes it look like I've just set off a nuclear bomb. I've also tried to using the surface shader on the whole planet and turned luminosity on, which didn't work either. Is it possible to import and obj like a plane, and turn it in to a light?


Title: Re: Lighting the clouds from underneath
Post by: red_planet on July 16, 2014, 06:28:15 AM
Quick experiment shows that you should be able to achieve your aims with a standard TG light source (Lighting tab, Add Light Source .. Light Source).. You will need to bump up the strength quite a lot.

Hope this helps

Chris
Title: Re: Lighting the clouds from underneath
Post by: AC5LT43R on July 16, 2014, 07:48:09 AM
I have already tried this method but unfortunately the angle and height of the camera means that the light source is visible (thus the nuclear bomb effect) and I can't hide it behind geometry.

edit: I exported the lights as a clip file and imported them in to my scene, and now it gives me a much better result than the light I had, thanks!:)
Title: Re: Lighting the clouds from underneath
Post by: red_planet on July 16, 2014, 08:05:08 AM
Have you tried turning off  "glow in atmosphere" ?

Rgds

Chris
Title: Re: Lighting the clouds from underneath
Post by: russe166 on July 16, 2014, 08:35:48 AM
Hi!
Is it this effect that you're looking for?

Title: Re: Lighting the clouds from underneath
Post by: bobbystahr on July 16, 2014, 08:48:13 AM
You might try sinking a Light Source under the ground and turning it up quite high and making it's size cover the area of the sky where the city would be...I'm assuming we can't see the city ie: it's in the distance This has worked when I wanted light in a room but no shadows....kind of an ambient light. give this a try....EDIT...I turned off all light effects like cast shadows, glow, etc.,...everything but the light strength as you'll see in the .tgd.
Title: Re: Lighting the clouds from underneath
Post by: Oshyan on July 16, 2014, 07:51:22 PM
Luminosity illuminating clouds is possible, but you may need fairly high GI settings to make it work well. You can apply a material and make it luminous for any object or terrain, but you may need very high values to get it to light up other nearby objects, or clouds.

- Oshyan
Title: Re: Lighting the clouds from underneath
Post by: Dune on July 17, 2014, 02:38:25 AM
You might be able to fake it by giving the cloud a little illumination + using the shadow function of the cloud layer, masked by height control. Theory, just thinking aloud.
Title: Re: Lighting the clouds from underneath
Post by: bobbystahr on July 17, 2014, 08:40:02 AM
Quote from: AC5LT43R on July 16, 2014, 07:48:09 AM
I have already tried this method but unfortunately the angle and height of the camera means that the light source is visible (thus the nuclear bomb effect) and I can't hide it behind geometry.

edit: I exported the lights as a clip file and imported them in to my scene, and now it gives me a much better result than the light I had, thanks!:)

might we see a render of the result...curiously yours....
Title: Re: Lighting the clouds from underneath
Post by: bigben on July 17, 2014, 06:37:02 PM
I tried this a while ago with the global city lights image from the blue marble set. Works OK using that image in a surface shader and pumping up the luminosity
Title: Re: Lighting the clouds from underneath
Post by: AC5LT43R on July 18, 2014, 04:33:59 AM
Quote from: bigben on July 17, 2014, 06:37:02 PM
I tried this a while ago with the global city lights image from the blue marble set. Works OK using that image in a surface shader and pumping up the luminosity

Sounds interesting, I'll give that a go :) Do you remember how high you put the luminosity? As I just applied a yellow coloured surface shader and still got no light in the clouds.


Quote from: bobbystahr on July 17, 2014, 08:40:02 AM
might we see a render of the result...curiously yours....

All in good time!

Title: Re: Lighting the clouds from underneath
Post by: Oshyan on July 18, 2014, 04:45:54 PM
Luminosity of 1 should be fine, depending on the height of your clouds and position of your camera. From ground level with a single 100% coverage surface layer and a red color, luminosity of 1 gives quite red and fairly light low-level cumulus clouds even with the sun -2 degrees below the horizon. But this is with a 100% coverage surface. If you're using e.g. a lava effect that only covers a small percentage of the surface, you'll need much higher luminosity values.

- Oshyan
Title: Re: Lighting the clouds from underneath
Post by: bigben on July 18, 2014, 11:12:13 PM
From the way, way back machine: http://www.planetside.co.uk/forums/index.php/topic,2686.msg27258.html#msg27258 (http://www.planetside.co.uk/forums/index.php/topic,2686.msg27258.html#msg27258), Remembered the idea, but forgot the data source, USGS landcover data.

Couldn't resist another try with TG3. The yellow blur is Sacramento, sun is just below the horizon. Localised cloud over the city.
Luminostiy 100
GI 4 4
Atmosphere samples 64

...and then throw in some moonlight and a mid-level altocumulus layer..
Title: Re: Lighting the clouds from underneath
Post by: bigben on July 20, 2014, 12:07:27 AM
... then take some craters from http://www.planetside.co.uk/forums/index.php/topic,18638.msg181315.html#msg181315 (http://www.planetside.co.uk/forums/index.php/topic,18638.msg181315.html#msg181315), remove the displacement, colour adjust to make small white circles on black and add that to the surface mask for the "lights".  8)

0.1-0.5m circles masked by the modified USGS landcover image (reduce the saturation of the tint a bit and lowered luminosity to 70).  The atmosphere glow near the surface isn't too bad from a distance and this could make for some very interesting night scenes. Dropped the detail from 0.7 to 0.35 to speed up the render so the cloud detail is a little less in this one.  This is very promising for what is essentially a very simple setup.
Title: Re: Lighting the clouds from underneath
Post by: bobbystahr on July 20, 2014, 08:38:15 AM
brilliant Ben
Title: Re: Lighting the clouds from underneath
Post by: bigben on July 20, 2014, 06:18:46 PM
One last tweak. There was no variation in the intensity across the lit areas so I split off a separate adjustment of the mask image and multiplied it by a scalar (the desired luminosity amount) and fed that into the luminosity function.  Works much better on the global city lights image.  Turned the luminosity down to 15 to reduce the glow around the "lights".
To make the circles the final colour adjust of the "craters" setup uses 0 0
Title: Re: Lighting the clouds from underneath
Post by: AC5LT43R on July 21, 2014, 05:34:20 AM
Awesome, thanks!

I've used the same technique (except I haven't used the crater thing just yet) and the ground is lighting the clouds but I don't get any light in the ground. Even when the luminosity is set to 100.

Another method I used (before I read this) was to create 6 pretty large light sources, set the colour of them to R:255 G:000 B:000 and then set the moon colour to R:000 G:000 B:255, turn off the atmosphere and GI, then used Nuke to colour correct them using the RGB channels.
Title: Re: Lighting the clouds from underneath
Post by: bigben on July 21, 2014, 06:52:32 PM
I think this says a lot about TG that you can apply a few basic principles to some real world data in a default TGD and get some very realistic effects (the lighting on the clouds, not my crude city lights)