Mihir Mehta (mehta++at++turing.rdd.lmsc.lockheed.com)
Sun, 25 Feb 1996 22:09:17 -0800 (PST)
I am thinking of doing object manipulation in world coordinate system
in the following manner.
Lets say a path in scene graph looks like
A -> B -> C -> D
Where A is root and D is the actual object we want to manipulate in WCS.
Generate the transformation matrix
T1 = [A->dcs][B->dcs][C->dcs]
T2 = Inverse(T1)
Now lets say that I want to apply Translate(x,y,z) in WCS
andn Rotate(h,p,r).
Generate Matrix T3 = Translate(x,y,z)*Rotate(h,p,r)*T1
D->dcs = T2*T3
This doesnot look efficient at all. But I am just beginning with Performer.
I am sure Performer provides an easier way of doing this. So please innundate
me with efficient ways of accomplishing this task.
Thanks,
-- Mihir Mehta Address : Orgn 96-10 Bldg 255 mehta++at++stc.lockheed.com 3251 Hanover Street Ph 415-424-3555 Palo Alto, CA 94304-1191 Fax 415-354-5235
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:27 PDT