View Full Version : Sun controlling layers
ThePriest 04-27-2007, 08:46 AM How could I make the pitch of the sun control an image layer in a texture?
I have a Sunset sky layer and a daylight sky layer(Same clouds)
I simply want the opacity of the Sunset layer to raise
when the sun is low without doing it manually.
|
|
mt_sabao
04-27-2007, 11:57 AM
Hi,
Just add an expression, drag your sun tag to the expression, and output the Time.time and connect this to a range mapper. Drag the layer from your material to the expression, and add the layer.Blend input.
Connect the output of the range mapper to this input.
Now what you have to bear in mind is that the time is in [0,1] format. 0 is 00:00 and 1 is 24:00. So, you want to set your range mapper in a way that when the input is say 0,83 (20:00) your output from the range mapper should be one (so taht you have a 100% in this layer) and then down again 0 again when the input is 0,875 (when the time is 21:00 an the sunset is over) you see the idea.
See the pic bellow for clearer view. Hope this helps.
Cheers
Luis
http://www.eso.org/~lcalcada/Priest.jpg
mt_sabao
04-27-2007, 12:09 PM
The range mapper should look something like this, just leave everything as it is, and just change the spline. This takes some experimenting, as it is, it goes from 0, to 1 to 0 again around 7.30 to 8.30 smth like that...
http://www.eso.org/~lcalcada/Priest2.png
ThePriest
04-27-2007, 03:38 PM
Thanks for the pointer, the RangeMapper has confused me until now.
My Sun is a manual infinite light, I should have made that more clear,
but the theory would be the same using the Rotation: P axis and doing the math
I suppose?
And in which case it would probably best to have the Sunset layer on the bottom
and Brighter sky as the top layer 0-100
ThePriest
04-27-2007, 05:24 PM
....
Would it be easy to fade layers over multiple ranges.
Introducing several different sky variations?
Say 10-20 Degrees introduces 11am sky.
....
Edit. No worries. I've got it.
CGTalk Moderation
04-27-2007, 05:24 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
vBulletin v3.0.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.