Advertisement

S.O.S - unfinished engine

Started by October 22, 2000 03:08 PM
2 comments, last by pauljg 24 years ago
Ok guys Cards on the table.. I`ve got this small engine I`m trying to develop. The camera roams about quite freely, but the only object in the 3d world (a cube) just doesnt rotate or move in the correct way. I`m totally lost as to what the problem can be (and not experienced enough) I`ve had some leads that its to do with not Normalizing the vectors - whatever that means.. But I`m just not good enough to understand it, can someone please take a look through it for me ? http://homepage.ntlworld.com/paul.gerfen/Programming/openglstuff/unzipme.zip Use the Cursor to zoom around Q and A to tilt. < > W S to rotate the shape, and SPACE to move the shape. I want the shape to move forwards in the direction the side is facing. Although the code was written with the Dev-C++ compiler it will work on MSVC.. Any help or advice would be VERY appreicated. Thanks Paul
you''re using euler angles right
its impossible to rotate an object perfectly along the 3 angles using euler angles theres heaps of info on the net have a search for
why but angles are stuffed up, why euler angles dont work etc

http://members.xoom.com/myBollux
Advertisement
You got to use a matrix, so you don''t rotate the object alone, but you rotate it around pseudo axis that rotate with the model
(you can find me on IRC : #opengl on undernet)
I`ve sorted it out now..

Many thanks to Marco Monster !

Cheers Guys - the latest source is available to download at my website www.gamecoding.co.uk

Paul.

This topic is closed to new replies.

Advertisement