README
1.96 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
GROUND DEMO:
------------
The brick ground plane is 2 textured triangles. Use the joystick and
trigger button to scale and move the ground. The vertex structure used to
draw the ground is constant, but the matrices change. The printout on the
screen shows the vertex value (x,y,z) of 2 of the corners after the
modeling (MODELVIEW) transform (WC = world coordinates), and the vertex
value (x,y,z,w) of all 4 corners after the combined modeling & projecton
(MODELVIEW * PROJECTION) transform (CC = Clip Coordinates).
When the object (the ground in this case) gets too big in CC space, a
warning message is shown on the screen. The following condiitions are
checked (all in CC coordinate space):
-32768.0 < x < 32768.0
-32768.0 < y < 32768.0
-32768.0 < z < 32768.0
-32768.0 < w < 32768.0
MAX(x) - MIN(x) < 32768.0
MAX(y) - MIN(y) < 32768.0
MAX(z) - MIN(z) < 32768.0
MAX(w) - MIN(w) < 32768.0
MAX(X) - MIN(X) + MAX(w) - MIN(w) < 32768.0
MAX(y) - MIN(y) + MAX(w) - MIN(w) < 32768.0
MAX(z) - MIN(z) + MAX(w) - MIN(w) < 32768.0
When the coordinates get large enough that they disobey these rules you
will begin to see problems: texture crawl and wobble, lines in the texture,
clipping problems, and geometry problems.
The purpose of this demo is to show you why it is important to stay within the above guidelines when you design your models, worlds, and matrices.
CONTROLS:
---------
trigger button: set the function of the joystick.
joystick: scale the ground, move the ball, or move the eye (depending
on the trigger)
L button (over crosshair): turn menu on/off
+ up/down: select parameter in menu
+ left/right: alter parameter in menu
NOTE: The plane remains stationary in world space, but moves in CC space as
you move the eyepoint. The eyepoint tracks with the ball unless you change
the Eye Mode. The ball moves aound in world space (under joystick control)
and the eye always looks at the ball. The ball is used only asd a reference
point.