From Kevin Wafer · 1996-04-14 14:38 · #69319 in DRIVING
Hi all, ive rewritten this message, i hope it makes sence now :)
Im doing a little 3D engine for fun, ive got my poly filler, rotation,
surface normals, hidden plane removal and eveyrthing else sorted.
But I have been stuck on camera rotation for about a week, and can't see
to suss it out. :(
CUBE
----
<---
_-\
____ _- \_ ____ ______
| | \ _- | | /\ | | |
|____| \- |----| || |_|____|
|____|
<--==X
NOTHING ROLL 45' PITCH 45' YAW 45'
I'm doing rotation around Z,X,Y for the object matrix and camera matrix
in Y,X,Z order. Do I need another rotation or something for the camera
matrix?
Because for example when I ROLL the camera 90' the screen(objects) ROLL
globally, if i reset the ROLL and I PITCH 90' the screen(objects) PITCH.
which is correct. but when i ROLL the camera 90' and hold it there,
and then PITCH , instead of PITCH pitching, PITCH is YAWing.
This is the correct behavoir of an object being rotated. but not a came
view (how the objects should appear when the camera rotation is added to
Any tips would be appriecated. cheers
--- WILDMAIL!/WC v4.12
* Origin: Wall Street - Stocks'n'Shares - (2:2502/1000.0)