Ridley5 opened this issue on Jul 26, 2010 · 1724 posts
rty posted Tue, 24 August 2010 at 6:10 PM
Quote - Where did you set the Sun Angle?
or is that this part?
"vector sundir" [0.70000 0.400000 0.700000]
Yes, that's the problem with the partial quotes...
So I'll post this again (I guess it will see some heavy use till BagginsBill releases his light control GUI):
To insert a sunsky (sun+skydome) in Lux:**
**
Edit the .lxo file in notepad and delete the existing, exported light (on top of the file, pretty obvious, it's well commented), then open the .lxs file and insert after WorldBegin:
AttributeBegin<br></br>
LightSource "sunsky" "integer nsamples" [1]<br></br>
"vector sundir" [0.70000 0.400000 0.700000]<br></br>
"color L" [1.000000
1.000000 1.000000]<br></br>
"float turbidity"
[2.000000]<br></br>
"float aconst"
[0.500000] "float bconst" [0.500000] "float
cconst" [1.000000] "float dconst" [1.000000]
"float econst" [1.000000]<br></br>
"float relsize"
[2.000000]<br></br>
AttributeEnd
Insert empty lines if you want to separate the rest.
As you might have guessed, "vector sundir" determines where the sun is in the sky (caveat: Z is height!). The "float" parts control sky haze (sky color, ranging from clear mountain air to sand storm or heavy smog).