Re: [info-performer] Mirror a scene...

New Message Reply Date view Thread view Subject view Author view

From: Brian Furtaw (brian++at++sgi.com)
Date: 05/13/2002 03:31:05


So a couple of options you could turn off back face culling, or traverse
the scenegraph and recompute all the normals or you could tell OpenGL to
reverse it sense of normals.

So in the pfChannel draw callback,

pfClear();

glCullFace(GL_FRONT);
glEnable(GL_CULL_FACE);

pfDraw();

or

..recompute the normals..

or

pfClear();

glFrontFace(GL_CW);

pfDraw();

Brian
Thomas Proell wrote:
>
> Brian Furtaw wrote:
> >
> > You could place a pfSCS at the top of your scene graph which specifies
> > -1.0 for the axis you wish to mirror the scene about.
>
> Unfortunately that didn't work. The DCS was mirrord, okay - but the
> normals of the polygons were mirrored, too. So, all the objects seemed
> to be transparent, because you could see through the front side.
>
> Thomas
>
> --
> Dipl.-Inform. Thomas Pröll
> Lehrstuhl für Steuerungs- und Regelungstechnik
> Technische Universität München
> Tel.: +49 89 289-23404 Email: Thomas.Proell++at++ei.tum.de

-- 
    ----oOOo----    ----oOOo----    ----oOOo----    ----oOOo----

Brian Furtaw (brian++at++sgi.com) Mailstop: DSE-2612 Graphics Guru Office:(301)572-3293 Fax: (253)323-8182 12200-G Plum Orchard Drive OpenGL/Performer/OpenInventor/ImageVision Silver Spring, Maryland 20904 Volumizer/Optimizer/React/PCI Device Drivers


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon May 13 2002 - 03:45:01 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.