How to implement globe style mouse only camera control?

Started by
2 comments, last by kkc0923 9 years, 7 months ago

Hi. Im working on 3D visualization application using DirectX and OpenGL cuustom renderer. I implemented simple object-centered rotation camera controller, but I found very cool camera control system at MeshLab (http://meshlab.sourceforge.net/).

It works like a globe, so I can controll camera view to any direction using only mouse!. Side walk is also available using Wheel click- dragging. How to implement camera controller like this globe style? Is there any resource or samples?

thanks.

Advertisement

You have to search for "Arcball" rotation. Here is a very basic implementation. That will change the object's orientation. If you want to orbit around it, you can try this one.

--Avengers UTD Chronicles - My game development blog

You can also find a simple orbit/pan camera in my demos: http://dl.dropboxusercontent.com/u/45638513/sdx/Tut08.zip

That is exactly what I want to know. Thanks!

This topic is closed to new replies.

Advertisement