Results 1 to 2 of 2

Thread: create mirror image of framrbuffer

  1. #1
    Junior Member Newbie
    Join Date
    May 2007
    Posts
    15

    create mirror image of framrbuffer

    hi there,
    I'm using glCopyTexSubImage2D to copy pixels from the framebuffer into a two-dimensional texture image, I need to get the mirror image of this buffer, how can I do it???


    ////***** *****////
    ******** ********
    -----**** ------> ****-----
    ******** ********
    ******** ********

    I'm really new into OGL and takes me alot of time to figure how to do something. I work under VegaPrime (c++/OGL) I have a camera/channel that shows me the rear view of the car, now I need to put this channel/camera into the rear view mirror. but because the camera is rotated 180 relative to the car I get a wrong view. (I get the mirror image of the image I need)

    10x

  2. #2
    Senior Member OpenGL Pro k_szczech's Avatar
    Join Date
    Feb 2006
    Location
    Poland
    Posts
    1,107

    Re: create mirror image of framrbuffer

    Do not mirror the texture - just use reversed texture coordinates when using this texture
    You may also use glScalef(-1, 1, 1) on projection matrix when rendering th this texture if you still want to mirror it.

Similar Threads

  1. Displaying an image as its mirror image
    By ssyybbyy in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-19-2014, 01:22 PM
  2. glOrtho() Mirror Image
    By Pan007 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-19-2011, 01:45 AM
  3. Vincent gives upside down mirror image output!!!
    By GreatApe in forum OpenGL ES
    Replies: 4
    Last Post: 04-26-2005, 05:09 PM
  4. create a 3D image from a bitmap
    By snupinokyo in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 03-13-2003, 06:52 AM
  5. mirror,mirror tell me who is beautifull?
    By Sylvain in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 01-19-2001, 06:41 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