> From: Glenn Rowe <[EMAIL PROTECTED]>
>
> I am trying to set up a Background using a texture from a JPG file,

Try this:

        // set up the BoundingSphere for the Background
        BoundingSphere bounds = new BoundingSphere(new Point3d(), 100.0);

        // set up the image
        java.net.URL bgImageURL = // URL for your image
        TextureLoader bgTexture = new TextureLoader(bgImageURL, this);

        // Create a background with the static image
        Background bgImage = new Background(bgTexture.getImage());
        bgImage.setApplicationBounds(bounds);

Doug Gehringer
Sun Microsystems

===========================================================================
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".

Reply via email to