Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: beginner question about "camera" in openGL

  1. #1
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    18

    beginner question about "camera" in openGL

    I'm new to openGL,I wonder whether the job as below openGL can do,if yes,and how to:
    in a scene rendered by openGL,if I can put a camera(I don't know if there is a concept also called camera in openGL?I just consider it a kind of camera in real life) in the scene,and get image from it,then process the image by any other program.

    thanks for any replying!
    best regards.

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,655

    Re: beginner question about "camera" in openGL

    Yes of course, render your scene, glReadPixels the result (like a screenshot), and use whatever image i/o library to create a file with this raw pixel data.

  3. #3
    Member Regular Contributor
    Join Date
    Oct 2010
    Location
    France
    Posts
    466

    Re: beginner question about "camera" in openGL

    you can use gluPerspective to mimics real life view perspective and gluLookAt to mimics camera.

  4. #4
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    18

    Re: beginner question about "camera" in openGL

    ZbuffeR,thanks,I'll try it.
    you can use gluPerspective to mimics real life view perspective and gluLookAt to mimics camera.
    hello,arts,is there any spec about this two function?

  5. #5
    Advanced Member Frequent Contributor
    Join Date
    Jan 2007
    Posts
    964

    Re: beginner question about "camera" in openGL


  6. #6
    Junior Member Newbie
    Join Date
    Jan 2011
    Posts
    18

    Re: beginner question about "camera" in openGL

    sorry.I mean any good tutorial or book.I read the super bible recently,and search the book,find no gluPerspective related subject.any way,thanks,google should be the first way

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •