Re: [Flightgear-devel] OpenGL/Plib rotation

2002-02-24 Thread Arnt Karlsen
On Sat, 23 Feb 2002 14:11:59 -0500, David Megginson <[EMAIL PROTECTED]> wrote in message <[EMAIL PROTECTED]>: > I'm having a mental block right now, and would appreciate help on a > simple question. How do I rotate an object (in raw OpenGL or > preferable, plib/ssg) around a point other than t

Re: [Flightgear-devel] OpenGL/Plib rotation

2002-02-24 Thread David Megginson
Christian Mayer writes: > you can put those 3 operations into one 4x4 matrix if you want. That > looks more intuitve but is harder to understand afterwards. Thanks -- I did that as well, using the sg matrix functions from plib. What I did has been in the CVS since yesterday afternoon, but no o

Re: [Flightgear-devel] OpenGL/Plib rotation

2002-02-24 Thread Christian Mayer
David Megginson wrote: > > Curtis L. Olson writes: > > > It's been a while, but as I recall you probably want translate the > > object to the origin (or have it start out there) do whatever > > combination of rotations to orient it properly, and then translate it > > to it's final location.

Re: [Flightgear-devel] OpenGL/Plib rotation

2002-02-23 Thread David Megginson
Curtis L. Olson writes: > It's been a while, but as I recall you probably want translate the > object to the origin (or have it start out there) do whatever > combination of rotations to orient it properly, and then translate it > to it's final location. Yes, that's what I ended up doing. I

Re: [Flightgear-devel] OpenGL/Plib rotation

2002-02-23 Thread Curtis L. Olson
David Megginson writes: > I'm having a mental block right now, and would appreciate help on a > simple question. How do I rotate an object (in raw OpenGL or > preferable, plib/ssg) around a point other than the origin? Do I have > to transform the object to the origin, rotate it, then transform

[Flightgear-devel] OpenGL/Plib rotation

2002-02-23 Thread David Megginson
I'm having a mental block right now, and would appreciate help on a simple question. How do I rotate an object (in raw OpenGL or preferable, plib/ssg) around a point other than the origin? Do I have to transform the object to the origin, rotate it, then transform back again? Thanks, David -