Hi Michael,
[EMAIL PROTECTED] wrote:
> It's probably a simple question but I didn't find it:
>
> How do I change the background/clear color for the rendering? I want a
> white background instead of a black one ...
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
-------------------------------------------------------------------------
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