Inheritance in SLIDE for LOD's
Inheritance in SLIDE for color, shading.
CASE 1: Ship (at SW) hits rock, gets Hole (H) in known location
of Ship's hull: HS = RS;
==> determineRock (R) position: RW = RS ( )S->W
; {R, H = row vectors! }
This is really just as before: We place the Hole hierarchically in
the World via Ship.
CASE 2: Now we ask a different question: Given the Ship position
(SW), and the Rock position (RW), both in the World,
==> determine where the Hole will occur in the Ship's hull: RS=HS
==> or: what vector RS together with ( )S->W
will give the proper RW ?
We want: RW = RS * ( )S->W
-- to solve: OUTSIDE-multiply both sides with [ ( )S->W) ]-1
==> RW * [ ( )S->W ]-1 = RS
* ( )S->W * [ ( )S->W ]-1
Thus: HS = RS = RW * [ ( )S->W
]-1
==> Hole position = Rock in S coord. = Rock in W coord. * [ (
)S->W ]-1
This has a geometric representation: Fix Hole in Shiphull (in yet unknown
location),
Move Ship (red) back to origin [ ( )S->W ]-1
, -- and there read off the coordiantes.
This can be used very generally:
Whenever we go against the arrows in the scene hierarchy,
we use the inverse of the transformation matrix.
This will be needed when we try to determine the relative positions
of objects in different subtrees of a large scene tree:
e.g., what does a camera held in the hand of a man in a pickup truck see
of the face of another person riding a motorcycle ?
Next time we will have to find out how to obtain the inverse matrices.
<-- Up to CS 184 HomePage