Tina,
Use a unit Sphere as background geometry, generate flipped normals, and
apply your image as a Texture to the Sphere. Should be full screen (well,
all around you!) and a lot better frame rate.
Sincerely,
Daniel Selman
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Tina Manoharan
Valappil
Sent: Tuesday, July 10, 2001 8:08 AM
To: [EMAIL PROTECTED]
Subject: Background Image
Hi all,
I am applying an image to the background this way:
Background sky = new Background(0.8627f, 0.9451f, 0.9529f);
String skyFile = "/texture/bg.jpg";
URL skyURL = Beta.this.getClass().getResource(skyFile);
TextureLoader skyLoader = new TextureLoader(skyURL,
new String("RGB"), this);
ImageComponent2D skyImage = skyLoader.getImage();
sky.setImage(skyImage);
But then the image is not filling the entire background, there is
a gap on the right side as you can see in the attachment.
Can someone please tell me why that is happening?
Thanks
tina
===========================================================================
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".