Results 1 to 2 of 2

Thread: Background Image in perspective mode

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2009
    Location
    USA
    Posts
    14

    Background Image in perspective mode

    Hi,

    I am rendering a scene with option to use Orthographic projection as well as perspective projection.

    I am able to draw full screen background image using orthographic projection, but I don't know how to do it in perspective mode. In perspective mode the background image appears very small as I am rendering on a screen size rectangle with background texture mapped to it, near far clipping plane

    Any ideas?

    Thanks a lot

    -Prasad

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2003
    Location
    Los Angeles
    Posts
    374

    Re: Background Image in perspective mode

    Quote Originally Posted by PJDIXIT
    I am rendering a scene with option to use Orthographic projection as well as perspective projection.

    I am able to draw full screen background image using orthographic projection, but I don't know how to do it in perspective mode. In perspective mode the background image appears very small as I am rendering on a screen size rectangle with background texture mapped to it, near far clipping plane. Any ideas?
    An image can be generated with some elements in ortho mode and other elements in persp mode. I suggest you start in ortho mode (with Z-buffer off), draw the background image, then switch to persp or ortho to draw the rest of the scene.

    I do something similar in my texture loading demo, where I draw the OpenGL logo in the upper left hand corner of the screen in ortho mode, then draw an earth and floor in perspective mode. See the routine 'Render_Scene' in the file 'source.cpp' at:

    Texture & Image Loading Demo
    Am I doing your homework for you?

Similar Threads

  1. Replies: 1
    Last Post: 07-09-2017, 07:07 AM
  2. Projection in perspective mode and lookAt : Newbie questions
    By babaOroms in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 08-16-2013, 07:38 AM
  3. Render Text in perspective Mode?
    By 11&2 in forum OpenGL ES
    Replies: 1
    Last Post: 04-23-2011, 04:19 AM
  4. Selection mode from the driver's perspective
    By 3dcgi in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 04-29-2003, 07:15 AM
  5. An image for the background....
    By Boubou in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 01-30-2001, 12:29 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