Hello 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 ...
you want a SolidBackground. If you use the SimpleSceneManager you can
set it by something like (this is untested):
SimpleSceneManager *ssm;
ViewportPtr vp = ssm->getWindow()->getPort(0);
SolidBackgroundPtr sb = SolidBackground::create();
beginEditCP(sb, SolidBackground::ColorFieldMask);
sb->setColor(Color3f(1.0f, 1.0f, 1.0f));
endEditCP(sb, SolidBackground::ColorFieldMask);
beginEditCP(vp, Viewport::BackgroundFieldMask);
vp->setBackground(sb);
endEditCP(vp, Viewport::BackgroundFieldMask);
Hope it helps,
Carsten
-------------------------------------------------------------------------
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