Results 1 to 3 of 3

Thread: Arcball with OpenGL

  1. #1
    Join Date
    Aug 2010
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Arcball with OpenGL

    Hi

    I am trying to implement an arcball view of a heightmap I created using OpenGL and Qt4 in c++. I have looked at various sites, with example projects but I can't make sense of it. Why do they use quaternions? Is this necessary? I don't quite know how the whole glRotate call should look, because some sites say I must perform the operation on the Model matrix and others say the projection matrix. Can someone please give me a good explanation or link.

    Thanks

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Arcball with OpenGL

    Here: http://nehe.gamedev.net/
    You will know answer to all your questions and a lot more. Just try to learn OpenGL and graphics programming step by step. Dont copy-paste the code and be happy it works, its useless. Also, you must be familiar with linear algebra, without it graphics programming will be really painful (if not impossible).

    Why do they use quaternions?
    Because using quaternions is efective way to represent and calculate rotations in 3D.
    Is this necessary?
    No. You can use matrices.

    Oh, almost forgot: http://www.opengl.org/sdk/docs/man/

  3. #3
    Join Date
    Aug 2010
    Posts
    5
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Arcball with OpenGL

    Hi

    thanks for the links, I am new to graphics programming, and do not have time to start with basic examples as I have a project to do for varsity, which gives me 3 weeks for quite an advanced graphics program. I have a good knowledge of linear algebra, (part of my course). I believe that NeHe has the answers I need.

    Many Thanks

Similar Threads

  1. Replies: 0
    Last Post: 6th December 2009, 00:41
  2. Qt with OpenGL ES for ARM9 - All OpenGL ES tests have failed!
    By vinpa in forum Qt for Embedded and Mobile
    Replies: 1
    Last Post: 3rd December 2009, 10:10
  3. Problem from OpenGL to QT OpenGL
    By nuts_fever_007 in forum Newbie
    Replies: 5
    Last Post: 15th May 2009, 09:37
  4. Qt OpenGL ES
    By ^NyAw^ in forum Qt Programming
    Replies: 1
    Last Post: 30th April 2009, 11:21
  5. Qt and OpenGL
    By ToddAtWSU in forum Qt Programming
    Replies: 8
    Last Post: 15th June 2006, 21:37

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.