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 3 of 3

Thread: 2d rectangle in a 3d world

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    16

    2d rectangle in a 3d world

    Hi!

    Please, see the images below to understand my problem (my english is so bad...)

    I'm trying to paint a 2d rectangle in a point of a 3d world. I need that this rectangle doesn't have any deformation and i need it with a know size (in pixels). Now i can do that painting with the projection gluOrtho2D, but i have a problem, the Z Buffer doesn't work (i know that its no correct). Any idea how to do that?

    Now:


    Expected:


    thanks in advance!

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

    Re: 2d rectangle in a 3d world

    Search billboarding

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2006
    Posts
    16

    Re: 2d rectangle in a 3d world

    Orienting the polygon based on the view direction is called billboarding...
    (First entrance at google)

    Now i know what was my problem

    A lot of thanks, zbuffer!

Posting Permissions

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