Like this:-
 
 // Create the root of the branch graph
 BranchGroup objRoot = new BranchGroup();
 
 // Create a bounds for the background and lights
 BoundingSphere bounds =
     new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
 
 // Set up the background
 TextureLoader bgTexture = new TextureLoader("../images/bg.jpg", this);
 Background bg = new Background(bgTexture.getImage());
 bg.setApplicationBounds(bounds);
 objRoot.addChild(bg);
(from the Appearance demo program)
 
Greg Hopkins
-----Original Message-----
From: Chris Gates <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: 14 June 2000 14:36
Subject: [JAVA3D] how do I set an image for bgd?

How do I set an image as the background of a scene?
 
Much thanks in advance,
CG

Reply via email to