To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 7654
7653  |  7655
Subject: 
Math problem
Newsgroups: 
lugnet.cad.dev
Date: 
Sat, 10 Aug 2002 15:15:21 GMT
Viewed: 
676 times
  
Hi,

I've been having headaches for over two nights now trying to figure
something out for my animation program. I have made it possible to
change the rotation point of an model. This works fine but I want it to
be possible to change the point during animation WITHOUT visible change
in the follow-up frame.

This would be fairly simple if it was only the position of the rotation
point I was changing, but in stead it is also possible to change the
rotation's local XYZ orientation.

So adding all stuff up you get the following variables:

position of the model
angle of the model
Position of center point
Angle of center point
Position of rotationpoint
Angle of rotation point

The order of appliance to get the whole thing on screen is:

rotate model according to center point angle to get it in global XYZ space
rotate model, by model angle, around the rotation point by using the
rotation point's position and angle as rotation XYZ space.
Place the center point position at model position


euh... hope this is clear.


now the problem is if I change the rotation angle and position how can I
calculate the model's position and angle so the result on screen would
stay the same? I figure you get 6 variables and calculating them back
from the new situation is like, impossible. But I am not a Math expert,
like some here :)

Anybody, some thoughts????


Roland



1 Message in This Thread:

Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR