Figure 3.2 The phases of the Alpha class: trigger time (1), phase
delay (2), increasing alpha (3), increasing alpha ramp (4), at one (5),
decreasing alpha (6), decreasing alpha ramp (7), at zero (8), loop count (9)
I’ll discuss the Alpha class in depth in chapter
12 (Interpolators), but, for now, try changing some of the Alpha parameters and
noting the effects.
The axis that the PositionInterpolator is moving
along can also be easily modified. For example try inserting the line:
xAxis.rotY( 1.2 );
This will move the Sphere along a trajectory more
perpendicular to the screen. You can experiment with calls to rotX and rotZ as
well. Remember that rotations are described using radians, not degrees.
Background geometry
Try removing the background Sphere, or just remove
the texture that was applied to the inside of the Sphere. What happens if you
remove the ORed flag Primitive.GENERATE_NORMALS_INWARD when the background
Sphere is created?
What happens if you remove the Primitive.GENERATE_TEXTURE_COORDS
flag from the Sphere when it is created?
Load the background image into a graphics editor
and experiment by modifying it. Can you see how the rectangular image was
applied to the inner surface of the background Sphere?
Scheduling bounds
Experiment by changing the size of the
BoundingSphere that describes the application’s volume. What effect does it
have on the PositionInterpolator and the background?
Capability bits
What happens when you remove the call to:
objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
The position of the viewer of the scene
Try removing the call to:
u.getViewingPlatform().setNominalViewingTransform();
Size of sphere primitives
Try changing the sizes of the Sphere used for
background geometry as well as the smaller Sphere in the scene.
Ok good luck, See you in next tutorial
|
Comments
Post a Comment