Article View: att.lang.c++
Article #2903d orientation
From: Slice
Date: Wed, 03 Dec 1997 00:00
Date: Wed, 03 Dec 1997 00:00
21 lines
1304 bytes
1304 bytes
The 3d lib I'm using has a function that points the camera at any point in
space. How can I use this function (along with a Roll variable) to control
Pitch and Yaw?
The Function (we'll call it functionX(); ) has the following prototype:
functionX(Camera,float x,float y,float z);
^
Ignore Camera
you supply the function with the x,y,z of the point you wish to point the
camera at.
How do I make functions for changing Yaw and Pitch using this function?
the functions have to take into account Roll. so that no matter what the
orientation, Pitching up will always be pitching up etc.
I really need this info... and would appreciate it very much... thank you
Richard L. Overman
Technical Details
Message-ID:
<01bcffac$05ab4720$3e659dcc@richard>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,79b2fb5488912ee1,start X-Google-Attributes: gid109fba,public X-Google-Thread: 108717,79b2fb5488912ee1,start X-Google-Attributes: gid108717,public X-Google-Thread: 10d4ba,79b2fb5488912ee1,start X-Google-Attributes: gid10d4ba,public From: "Slice" <overman@wolfenet.com> Subject: 3d orientation Date: 1997/12/03 Message-ID: <01bcffac$05ab4720$3e659dcc@richard> X-Deja-AN: 294753428 Organization: Wolfe Internet Access, L.L.C Newsgroups: att.lang.c++,comp.lang.c++,comp.programming