Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7020743
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:21:29+00:00 2026-05-27T23:21:29+00:00

In my OpenGL application I need to use ArcBall rotation to rotate objects using

  • 0

In my OpenGL application I need to use ArcBall rotation to rotate objects using mouse.

I relized that I have to go with Quaternions after reading this article – http://www.gamedev.net/page/resources/_/technical/math-and-physics/quaternion-powers-r1095

And I found an easy to use implementation at here – http://www.codeproject.com/KB/openGL/virtualtrackball.aspx

But my problem is I also need to animate my object between saved two status.
That is –

State(1)= (Postition X1,Position Y1,Position Z1, Rotation 1);

State(2)= (Postition X2,Position Y2,Position Z2, Rotation 2);

*These ‘Rotations’ are rotation matrices

And the animation is done in n steps.

Something like shown in this video – http://www.youtube.com/watch?v=rrUCBOlJdt4

If I was using 3 seperate angles for three axises(roll, pitch, yaw) I could easily interpolate the angles.
But ,since ArcBall uses rotation Matrix , how can I interpolate the rotations between State 1 and State2 ?

Any suggestions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T23:21:30+00:00Added an answer on May 27, 2026 at 11:21 pm

    Either use Matrix or Quaternion for rotation representation internally. With roll/pitch/yaw you could interpolate the angles in theory, but this will not work every time – read up on Gimbal lock.

    With Quaternions the rotation interpolation is easy – just interpolate the individual coordinates (just as you would with r/p/y angles), normalizing when necessary. You’d have to then adjust your rendering function to work with quaternions (but I assume you already did that since you mention quaternions youself).

    With Matrixes the interpolation is not so nice, I’ve struggled with it several years back and all I can remember it that I finally decided to go with quaternions. So I can’t advice on this, sorry.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an iPhone OpenGL application, and I need to use some textures with
I have a simple OpenGL application where I have 2 objects displayed on screen:
I have an iPhone application that is mostly using standard controls. There is one
I am implementing an application in opengl es2.0. I need to use pushmatrix() and
I'm trying to use GLUT (freeglut) in my OpenGL application, and I need to
I'm writing an application that needs to use OpenGL, on the Mac, in C++.
I have an android application. I want to use OpenGL to render my images
I'm writing a simple OpenGL application that uses GLUT . I don't want to
What are the basic steps to compile an OpenGL application using GLUT (OpenGL Utility
I'm writing a basic planet viewer OpenGL Perl application, just for fun. I have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.