Results 1 to 3 of 3

Thread: OpenGL move the camera

  1. #1

    Question OpenGL move the camera

    Hi,

    I'm trying to create an object in 3D. This all works but I want to change the camera. Not the object. So there is a static room and I'm walking trough it.

    I tried to use GluLookAt in the helloGL example on in the qt examples but nothing seems to happen.

    Any ideas?

    thnx in advance,
    rullzer

  2. #2
    Join Date
    Jan 2006
    Location
    Ohio
    Posts
    332
    Thanks
    37
    Thanked 8 Times in 4 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: OpenGL move the camera

    You would probably be better served asking this question in the OpenGL forums located at www.opengl.org. Qt only provides the context to render the OpenGL code inside but everything else is dealt with OpenGL data and has nothing to do with Qt.

    Unfortunately, I personally have never used gluLookAt, I just deal with changing my glViewport and glOrtho to draw my data.

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: OpenGL move the camera

    When did you call qluLookAt? Before you draw anything or after?

Similar Threads

  1. OpenGL and Qt Question
    By ToddAtWSU in forum Qt Programming
    Replies: 2
    Last Post: 18th April 2009, 18:04
  2. Qtopia Core & OpenGL ES?
    By zelko in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 28th May 2007, 07:21

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.