Quick Nav Bar | ||||||||
---|---|---|---|---|---|---|---|---|
<< Previous | Contents |
Selection |
Op Index |
Parent | User Notes |
Index |
Glossary |
Next >> |
Mathematical Expressions & Keys
Animating a ray trace requires some mathematical background. This animation will be simple in its movements so as not to be over-complicated. The below image was used in the image map on the rectangle. This image gave the rectangle a "felt table" look.
The script would look like:
Note that all keys are set for 30 frames.
Keys let you set "trends" for any effect in the ray trace operator. The Keys operator works as follows: Keys "keyname" frame1 value frame2 value… etc
This is saying "From frame 1 to frame 15, I want the value of 'cuemovex' to go from -12 to -2. Then, from frame 15 to 30, I want the value of 'cuemovex' to go from -2 to -5." This value is going to be used in the x-position of the cueball. That means that the cueball is going to move forward, and bounce back abruptly.
This value will be used in the z-position of the cueball, that means that it's also going to move farther away, "into the screen."
Pool ball:
Cue Ball:
Felt:
Light:
|
Some notes and tips for adding mathematical expressions to your ray traces:
Always remember that you must prefix an expression with '!' (an exclamation point). No whitespace is allowed inside the expression either, whitespace is the signal to the evaluator that the expression is complete.
|
Here is a list of valid expressions for the ray tracer's SceneScript.
Quick Nav Bar | ||||||||
---|---|---|---|---|---|---|---|---|
<< Previous | Contents |
Selection |
Op Index |
Parent | User Notes |
Index |
Glossary |
Next >> |
WinImages F/x Manual Version 7, Revision 5, Level B |