Share

GLUI User Interface Library

Subscribe

Will pay for help with small arcball problem

  1. 2009-09-11 20:11:58 UTC

    Hi all,

    I'm having a small problem integrating the Arcball class into a project of mine. Specifically, when I try to apply the inertia, I get a strange wobble.

    I don't think this would be a hard problem to solve for someone very experienced with matrix math.

    Also, I'm a bit confused by the quat class. For some reason, this works:

    mat4 tmprot = arcball->qnow.tomat4(); glMultMatrixf( (float*) &tmprot[0][0] );

    ...but this doesn't:

    glRotatef(qnow.getangle(), qnow.getaxis()[0], qnow.getaxis()[1], qnow.getaxis()[2]);

    I would think these two snippets should yield exactly the same result, but they do not. Does anyone know why?

    Thank you very much for reading, and if you think you can help, please do contact me.

    Kind regards, -joshua

  2. 2009-11-05 16:36:53 UTC

    Hello Joshua,

    I think I can help you. I work on a similar project :) and use yours as its dependence :))

    Alexandru

  3. 2009-11-05 17:25:06 UTC

    Greetings Alexandru,

    Do you use Skype? My username is "cometlinear".

    My email address is: joshua "at" spacescience.com

    I hope to hear from you! Best, -joshua

  4. 2009-11-05 18:56:54 UTC

    Hi,

    glad to see your quick reply. My mail is alpopa at gmail dot com. My yahoo mess address is alexanderpopa My skype name is al.popa

    Unfortunately, I don't speak English as well as I write it, so I prefer to discuss by e-mail and / or mess

    I take a look at quat class used by you and write down the matrix computed in glMultMatrixf. Now I'm processing the matrix computed by glRotatef. Let's see, if these two are identic.

    I'm in skype now. See you

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.