Results 1 to 4 of 4

Thread: Mirrors

  1. #1



    One simple question:
    How to make a mirror in room?

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2002
    Melbourne, Australia

    Re: Mirrors

    orthogonal mirror is very simple
    say you want mirror parallel to XY plane, that's one of general 2 solutions I know (without stencil buffer):

    1. draw everything with inversed Z coordinate, thus if your whole mirror has all Z coordinates = some_z you need to replace z coordinate of your objects with
    (-z + 2*some_z)
    2. clean z-buffer
    3. draw alpha-blended poly over the mirror
    4. draw everything

    hope it helps

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Reutlingen, Germany

    Re: Mirrors

    Go to
    There is a very good tutorial about mirrors (Using the stencil buffer).

    GLIM - Immediate Mode Emulation for GL3

  4. #4
    Member Contributor
    Join Date
    Jul 2002
    Seri Kembangan, Selangor, Malaysia

    Re: Mirrors

    viewport also is a solution method

Similar Threads

  1. Multiple mirrors
    By misi444 in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-29-2012, 05:06 AM
  2. Mirrors
    By KRONOS in forum OpenGL: Advanced Coding
    Replies: 5
    Last Post: 10-09-2002, 11:13 AM
  3. skybox and mirrors...
    By zwaffle in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-18-2002, 12:09 PM
  4. Mirrors and portals
    By mfugl in forum OpenGL: Advanced Coding
    Replies: 72
    Last Post: 03-05-2001, 05:24 AM
  5. Mirrors in 3-d models
    By BBrown in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 10-18-2000, 01:37 PM

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