Two things. First your ViewPlatform and your object are both
at the origin so you won't see anything. You need to move one
of these objects away from the other. Here's a quick fix added inside
your constructViewBranch method:
>
> TransformGroup myTransformGroup = new TransformGroup();
Transform3D myTransform = new Transform3D();
myTransform.set(new Vector3d(0.0, 0.0, 1.0));
myTransformGroup.setTransform(myTransform);
> ViewPlatform myViewPlatform = new ViewPlatform();
Second, in order for your background to have an effect, you need to set
its ApplicationBounds. In your constructContentBranch method:
> Background backGround=new Background();
backGround.setApplicationBounds(
new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0));
> backGround.setColor(1.0f,0.8f,1.0f);
Dan Petersen
Java 3D Team
Sun Microsystems
** Look for the newsgroup: comp.lang.java.3d **
===========================================================================
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".