I am trying to set up a Background using a texture from a JPG file,
so I tried to adapt the BackgroundGeometry demo that comes with
Java 3D. This demo reads its texture from a file containing an image
of some clouds, maps it as a texture onto a unit sphere and then
applies this texture to the Background. The problem is that the
image that appears in the background is magnified enormously
compared to the original image in the file.

My question is: how can I produce a tiled background image that is
the same size as the image in the original JPG file? I tried
using setImage() in the Background class which *does* produce
a background the same size as the image, but the image only appears
once - it doesn't tile the background. Adding a TransformGroup
with a scaling to the branch containing the background doesn't seem to work
either, presumably because the background image is assumed to be drawn
at infinity.

Thanx for any help.

Glenn.

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