Jump to content
  • Advertisement
Sign in to follow this  
kkc0923

OpenGL How to implement globe style mouse only camera control?

This topic is 1478 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

Share this post


Link to post
Share on other sites
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.

Edited by AvengerDr

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!