|
|
I've been messing around with lighting, fog, etc for a large outdoor scene, but
I can't seem to make good sunlight!
What I've done now is created about 5 or 6 point light sources with slightly
different colors, and I get an OK-lighted scene. But, the lighting just doesn't
look at all like a realistic outdoor environment.
When I switch to a single light source, even when it's a parallel light source,
the scene is VERY dark. I have a sky sphere which is emitting ambient and
diffuse lighting, and if I didn't have this then the scene would be almost
black.
Anybody have any good experience with outdoor lighting? Any suggestions?
Post a reply to this message
|
|
|
|
zlacelle wrote:
> When I switch to a single light source, even when it's a parallel light source,
> the scene is VERY dark. I have a sky sphere which is emitting ambient and
> diffuse lighting, and if I didn't have this then the scene would be almost
> black.
Ideally the sun should be an area_light such that its apparent
diameter is about 0.5 degrees. Note that the color does not max
out at 1 you can make it as bright as you want.
Adding some radiosity may also improve the lighting.
Post a reply to this message
|
|
|
|
On 6-2-2012 22:14, zlacelle wrote:
> I've been messing around with lighting, fog, etc for a large outdoor scene, but
> I can't seem to make good sunlight!
>
With a bit of code it would be easier to see what is missing in your scene.
I generally use this:
//start code
#include "CIE.inc"
#declare SunColor = Blackbody(6500)*3;
#declare SunAlt = 60;
#declare SunAzm = -120;
#declare SunPosition = <0, 0, -1>*10e6;
#declare SunDis = vlength(SunPosition)*2/215;
#declare sun =
light_source {
SunPosition
color SunColor
rotate x*SunAlt
rotate y*SunAzm*clock
parallel
/*
area_light
SunDis*x, SunDis*z, // lights spread out across this distance (x * z)
softens shadows, i dont recomend it
5, 5 // total number of lights in grid (4x*4z = 16 lights)
adaptive 1 // 0,1,2,3...
jitter // adds random softening of light
circular // make the shape of the light circular
orient // orient light
*/
}
object {sun}
//end code
note that CIE.inc comes with LightSysIV:
http://www.ignorancia.org/en/index.php?page=Lightsys If you do not want
to use that, just use your own sun color, e.g. rgb <1,1,1>*2
The SunDistance is a little formula given to us by Cousin Ricky.
Thomas
Post a reply to this message
|
|