Skip to main content
GameDev.net gamedev.net
🔒 Locked

3D space sim movement

Started by Naku Dec 6, 2002 at 6:36 PM 2 replies 1.1k views
Original Post
Naku
Naku
Does anyone have any good sources of info or provide some tips for 3D space sim style free movement, preferably using DX8 but I should be able to follow OGL aswell, its just been a while? I''ve tried around 5 different ways of controlling my camera but I always end up with the same results, the camera rotating the wrong way when its already been orientated. For example I when I move the mouse left and right the camera pans left and right but when it looks up it still rotates around the y-axis and looks more like the camera''s rolling than panning. Can any help please?
Dak Lozar
Dak Lozar
Not much help... but, I think you can find the Freespace 2 source code... you might want to check that out.

Dave "Dak Lozar" Loeser
Dave Dak Lozar Loeser
"Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning."--anonymous
Dobbs
Dobbs
The problem you''re encountering is called gimbal lock, it''s usually a consequence of trying to use euler angles for 3d orientation. Do a search on Google for more info, or look in Articles & Resources. A possible solution is using matrices or quaternions to represent orientations.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.