Joachim Diepstraten schrieb:
> Hi
>
> I've got some problems setting up a background node which just
> contains a different background color than black. (For printing reasons
> I want a white background). But no matter where I set add the background
> node it seems to have no effect. I tried following things:
>
> Add a background node to the BranchGroup where the scene will be attached
> to.
>
> Add a new BranchGroup containing only the Background and add this one to
> the universe
>
> Setting the background manualy to the canvas3d by
> getGraphicsContext3D().setBackground(...)
>
> None of them seem to have any effect.
try this:
background = new Background(0.5f, 0.5f, 0.5f); // this is grayinitially
- make another choice...
background.setCapability(background.ALLOW_COLOR_WRITE);
background.setApplicationBounds(new BoundingSphere(new Point3d(0.0d,
0.0d, 0.0d), 10000.0d)); // just to be safe...
yourBranchGroup.addChild(background);
now, any time you can do:
background.setColor(1.0f, 1.0f, 1.0f); // change color
greetings
Maik Lutterklas
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".