🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: att.lang.c++
Article #288

Re: 3D movement

#288
From: Dennis Weldy
Date: Wed, 26 Nov 1997 00:00
26 lines
1995 bytes
I'd recommend looking at foley-van damm - fundamentals of computer graphics.


Slice wrote in message <01bcfa12$9879b680$60659dcc@richard>...
>    I'm having trouble with some 3D programming.  I'm sure its a well
>documented problem and would appreciate it if someone could email me the
>answer.  The Problem is that I don't know how to make it so that when I
>rotate a viewpoint, Pitch and Yaw still correspond to looking up or down
>and left or right.  For example, say I Roll 90 degrees.  This makes my
>Pitch and Yaw trade places... Pitch becomes Yaw and vice versa.  The Same
>scenario applies to pitching 90 degrees and trying to Yaw.  Yaw and Roll
>Switch Places.
>    The Other situation I have is translation of the Viewpoint responding
>to Yaw Pitch and Roll.    I want to be able to move the viewpoint forward,
>backward, up, down, left, and right (6 DOF), but When I roll 90 degrees,
>moving side to side becomes moving up and down... and pitching 90 degrees
>makes up-down and forward-backward switch places... while Yawing 90 Degrees
>switches left-right and forward-backward.
>
>I know the way to fix this has something to do with sin/cos and PI, but I
>can't figure it out.   If anyone has this information I would greatly
>appreciate it if you would email it to me at overman@wolfenet.com
>
>Thank You
>Richard L. Overman
Technical Details
Message-ID: <e3UR8Qo#8GA.163@news2.ingr.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bcfa12$9879b680$60659dcc@richard>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 108717,d58abacb774e35bd
X-Google-Attributes: gid108717,public
X-Google-Thread: 10d4ba,d58abacb774e35bd
X-Google-Attributes: gid10d4ba,public
X-Google-Thread: 109fba,d58abacb774e35bd
X-Google-Attributes: gid109fba,public
From: "Dennis Weldy" <nojunkmail@ever.com>
Subject: Re: 3D movement
Date: 1997/11/26
Message-ID: <e3UR8Qo#8GA.163@news2.ingr.com>
X-Deja-AN: 292884541
References: <01bcfa12$9879b680$60659dcc@richard>
X-MimeOLE: Produced By Microsoft MimeOLE V4.71.1712.3
Organization: Intergraph
Newsgroups: att.lang.c++,comp.lang.c++,comp.programming