Opacity-mapen skall ebart täcka fönstret! Hittade denna tut för att göra animerade fönster. Har inte provat själv dock:
"Ok to animate the lighting of a window to change with the time of day you need
to perform the following steps.
1) create a plane for your window. You will need two of these the same size.
2) Place one plane 0.3 meters behind the other. This back one will provide the
light at night.
3) Skin the back window and give it's material a self illumination value. I use
blue windows most of the time and a hind of orange tint to my ilum color. It
makes for a nice yellowish orange glow.
4) now you need to add four animations to your model. These are added to the
helper node from the modifiers pane. just slide down and add
Day
Night
Day2Night
Night2Day
These are the four standard animations for time of day cycles.
i) Day runs from frame 10 to 19 with an transition of 0.25
ii)Night runs from frame 32 to 41 with a transition of 0.25
iii)Day2Night runs from frame 54 to 55 with a transition of 0.25
iv)Night2Day runs from frame 68 to 69 with a transition of 0.25
I follow the standard lengths and timing that Bioware uses for my windows. It
saves on headaches and guess work.
5) now you need to animate the front planes Opacity. We want it to become
translucent at night so the lighted window behind it will show through. For day
time animate the Opacity to be 100. For Night it should be animated to be 0. for
Day2Night it should be animated to slide from 100 to 0. For Night2Day it should
be animated to move from 0 to 100.
To animate the value:
i) Select the animation you will work on from the animations list under the
helper nodes modifiers list. Double click it to work on just the time span
for that animation. Bring up the material editor. Select the material to
animate. now click the animate button and change the Opacity value. The
Spinner button should have red marks around it afterwards if you got it right.
Move to the end of the time span and turn off the animate button. Repeat for
each animation setting the desired values."
LAn
|