Advertisement

I cannot get it. Anyone can help?

Started by September 27, 2002 05:20 AM
1 comment, last by Krohm 22 years, 5 months ago
Greetings Well, I am trying to write down a class which handles the camera but I''m not able to get what I want. I am extracting head and pitch from a vector which is the direction the camera is facing. This vector is always right. Checked it out. The extracted ''head'' parameter seems to be ok. Checked out too. The problem is that I am not able to get correct pitch. I may go for alot o discussions but I don''t like to span a ton of msgs on forums. Anyone can help me? If someone is interested, please contact me at frag_dz8@libero.it Keep in mind that I always planned to share this ''CameraObject'' with the others. It is almost free and it was designed to be used in those small programs everyone does.

Previously "Krohm"

Have you compared it with the camera tutorial at www.gametutorials.com ?

@mikaelbauer

Super Sportmatchen - A retro multiplayer competitive sports game project!

Advertisement
All right, I am chekcing it out but I fear it won''t help me, I already tryied so many ways I am actually hopeless...

I am looking at the third example. Mine approach is different and at the moment, even simplier. Other successive classes will be built on top of this which won''t be modified anymore.

If I use gluLookAt everything is ok, the problem is that I also want to be able to use eulerian angles to manually place the camera.

I checked gluLookAt and I am sure it works. It points exactly where I want to in all the cases I''ve tested.

When it comes to use eulerian angles, it screws up a little. I checked out that HEAD is ok, but PITCH it''s not (ROLL doesn''t matter since it doesn''t change where you''re looking at).

All in all, I could just leave everything as is and move to other more useful stuff but I like the idea of being able to use the object as I wish.

Previously "Krohm"

This topic is closed to new replies.

Advertisement