Results 1 to 2 of 2

Thread: Overlaying graphics onto camera image

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2003
    Posts
    3

    Overlaying graphics onto camera image

    How can configure OGL so that computer generated graphical objects are correctly registered with an image coming from a camera?

    The question is related to an augmented reality system where camera position and orientation are known, along with the real world "positions" of the virtual graphics. With correct registration, the virtual objects will seem to be attached to real objects when the camera moves.

    Thanks!

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: Overlaying graphics onto camera image

    Set your projection matrix with glFrustum or gluPerspective to match the camera's lens.
    Position your modelview matrix to have the same position and orientation as your camera.

Similar Threads

  1. How to display image far away from the camera view?
    By Lanfear in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 03-03-2004, 05:59 AM
  2. combining an image with 3d graphics
    By showman in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-11-2003, 03:20 AM
  3. Overlaying text
    By jhc in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 05-27-2003, 05:08 PM
  4. Camera image behind an Inventor model?
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 10-09-2002, 12:34 AM
  5. Overlaying text
    By SED in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-29-2000, 04:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean