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

New Message Reply Date view Thread view Subject view Author view

From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 04/25/2002 07:41:09


If my memory serves me you also have to set the face culliing to frontface

glCullFace(GL_FRONTFACE); // or something like this

in a draw callback

Mario

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.
>
> pfMatrix mat;
> pfScene *scene;
> pfGroup *scenegrp;
> pfSCS *scs;
>
> mat.makeScale(1.0f, 1.0f, -1.0f);
> scs = new pfSCS(mat);
> scs->addChild(scenegrp);
> scs->flatten(0);
> scs->removeChild(scenegrp);
>
> scene->addChild(scenegrp);
>
> Brian
>
> Thomas Proell wrote:
> >
> > Hi!
> >
> > Is it possible to mirror a scene? It is not sufficient to change the
> > point of view...
> >
> > 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 : Thu Apr 25 2002 - 07:41:45 PDT

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