Hey guys,
I'm currently making a program which imitates physics of a rotating
ball. Currently I'm trying to figure out the best way to store the
orientation of a ball, and then apply further transformations to it.
Currently the way that I'm thinking of storing x,y,z positions of the
initial "top" of the ball, then somehow using opengl to rotate to that
position and draw it (although I haven't figured out how to do this).
These positions x,y,z, positions are modified by the ball rolling
(rotated first by the angular momentum of the x axis, then by the y).
Does anyone know how to implement this, or do they have a better way
of implementing storing orientation? Also any help with rolling ball
physics would be a big help.
- Steve
|
|
0
|
|
|
|
Reply
|
stevovore
|
10/29/2003 11:57:35 PM |
|
"Steve" <stevovore@yahoo.com> wrote in message
news:ae94935c.0310291557.1469b102@posting.google.com...
> Hey guys,
>
> I'm currently making a program which imitates physics of a rotating
> ball. Currently I'm trying to figure out the best way to store the
> orientation of a ball, and then apply further transformations to it.
> Currently the way that I'm thinking of storing x,y,z positions of the
> initial "top" of the ball, then somehow using opengl to rotate to that
> position and draw it (although I haven't figured out how to do this).
> These positions x,y,z, positions are modified by the ball rolling
> (rotated first by the angular momentum of the x axis, then by the y).
> Does anyone know how to implement this, or do they have a better way
> of implementing storing orientation? Also any help with rolling ball
> physics would be a big help.
You should try to look for some information on quaternions. That's how
rotations are usually handled.
Alan.
|
|
0
|
|
|
|
Reply
|
Alan
|
10/30/2003 8:12:16 PM
|
|
Alan Garny wrote:
>
> "Steve" <stevovore@yahoo.com> wrote in message
> news:ae94935c.0310291557.1469b102@posting.google.com...
> > Hey guys,
> >
> > I'm currently making a program which imitates physics of a rotating
> > ball. Currently I'm trying to figure out the best way to store the
> > orientation of a ball, and then apply further transformations to it.
> > Currently the way that I'm thinking of storing x,y,z positions of the
> > initial "top" of the ball, then somehow using opengl to rotate to that
> > position and draw it (although I haven't figured out how to do this).
> > These positions x,y,z, positions are modified by the ball rolling
> > (rotated first by the angular momentum of the x axis, then by the y).
> > Does anyone know how to implement this, or do they have a better way
> > of implementing storing orientation? Also any help with rolling ball
> > physics would be a big help.
>
> You should try to look for some information on quaternions. That's how
> rotations are usually handled.
.... or matrices.
Using Euler angles as the OP seems to do, almost always leads to
serious problems, especially if rotations can occour in any order.
Any book on computer graphics contains a chapter about matrices
and/or quaternions.
--
Karl Heinz Buchegger
kbuchegg@gascad.at
|
|
0
|
|
|
|
Reply
|
Karl
|
10/31/2003 11:07:05 AM
|
|
Karl Heinz Buchegger wrote:
> Alan Garny wrote:
>>
>>You should try to look for some information on quaternions. That's how
>>rotations are usually handled.
>
>
> .... or matrices.
>
Yep. Matrices will work just fine.
The only thing quaternions can do which matrices can't is
interpolation of two orientations. After that it's a matter
of personal taste.
--
<\___/> For email, remove my socks.
/ O O \
\_____/ FTB. Why isn't there mouse-flavored cat food?
|
|
0
|
|
|
|
Reply
|
fungus
|
10/31/2003 11:58:18 AM
|
|
|
3 Replies
363 Views
(page loaded in 0.388 seconds)
Similiar Articles: easiest way to store orientation and do rotations of a ball ...Hey guys, I'm currently making a program which imitates physics of a rotating ball. Currently I'm trying to figure out the best way to store the orientation of a ball ... How to store current matrix in a variable? - comp.graphics.api ...easiest way to store orientation and do rotations of a ball ... How to store current matrix in a variable? - comp.graphics.api ..... matrix to store the user's current ... RevolutionPlot3D: Specifying the axis of rotation - comp.soft-sys ...easiest way to store orientation and do rotations of a ball ... I also plan to plot it and animate it, and the axis ... user-orientation matrix with the apropriate rotation ... Figure initial position - comp.soft-sys.matlabeasiest way to store orientation and do rotations of a ball ... Currently I'm trying to figure out the best way to store the orientation of a ... Figure initial position ... Is this the best way to store my data? - comp.soft-sys.matlab ...easiest way to store orientation and do rotations of a ball ... Hey guys, I'm currently making a program which imitates physics of a rotating ball. Axis Angle to quaternion and quaternion to Axis angle question ...easiest way to store orientation and do rotations of a ball ... Using Euler angles as the OP seems to do, almost always ... Axis Angle to quaternion and quaternion to Axis ... moving in 3D - comp.lang.c++How to track a ball moving using Kalman filter? - comp ... Say I have a 6x6 matrix - what is the easiest way of moving ... How to store current matrix in a variable? - comp ... [comp.publish.cdrom] CD-Recordable FAQ, Part 1/4 - comp.publish ...Archive-name: cdrom/cd-recordable/part1 Posting-Frequency: monthly Last-modified: 2008/10/09 Version: 2.71 Send corrections and updates to And... matrix multiplication - comp.graphics.api.opengl... library probably is the most clean way to do ... too much, you don't want to make it easy ... where I multiply the current user-orientation matrix with the apropriate rotation ... Haas mill advice - comp.cad.solidworksI used a 1/16 diameter carbide ball end ... 12K is not as critical. 12K is a good way to go, I do a ... probe Work offset, Macros, Spindle orientation Coordinate rotation and ... easiest way to store orientation and do rotations of a ball ...Hey guys, I'm currently making a program which imitates physics of a rotating ball. Currently I'm trying to figure out the best way to store the orientation of a ball ... Maths - Rotations - Martin BakerWhen simulating solid 3D objects we need a way to specify, store and calculate the orientation and subsequent rotations ... angles and Axis and Angle are intuitive easy to ... 7/26/2012 5:34:28 PM
|