Hi Andreas, I'm trying this with 2.0 - the stage-core doesn't allow me to do a manual glClear, does it? But I found this one already filed as Ticket #137... I'll try the mentioned workaround with a PolygonBackground.
Thomas -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Andreas Zieringer Sent: Sunday, February 11, 2007 10:45 AM To: [email protected] Subject: Re: [Opensg-users] How to change the background/clear color Hi Thomas, > Dirk Reiners schrieb: >> It is a simple question: you need to create and assign a new >> Background. ;) >> >> Example: >> >> #include <OpenSG/SolidBackground.h> >> SolidBackgroundPtr bgr = SolidBackground::create(); >> beginEditCP( bgr ); >> bgr->setColor( Color3f( 1.0, 1.0, 1.0 )); >> endEditCP( bgr ); >> mgr->getWindow()->getPort(0)->setBackground( bgr ); >> >> (from Tutorials/27RationalSurface.cpp). There are other, more >> interesting Backgrounds, too. >> >> Hope it helps >> >> Dirk >> > Another one on background color: > How do I clear the alpha value to 0.0? What I want to achieve is > rendering an FBO-Object with transparent background!? you can use a PassiveBackground and call glClearColor and glClear yourself. We could also add a setAlpha method to the SolidBackground. Andreas > Thanks! > > Thomas > > ---------------------------------------------------------------------- > --- Using Tomcat but need to do more? Need to support web services, > security? > Get stuff done quickly with pre-integrated technology to make your job easier. > Download IBM WebSphere Application Server v.1.0.1 based on Apache > Geronimo > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=1216 > 42 _______________________________________________ > Opensg-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/opensg-users > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier. Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
