|
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
|
- [JAVA3D] how do I set an image for bgd? Chris Gates
- Re: [JAVA3D] how do I set an image for bgd? Ching Lai
- Greg Hopkins
