Hello colleagues,

I want to make an image background in Java3D through the following piece of
code.

Group scene = new Group( );

ImageComponent2D imageComponent = new ImageComponent2D;
TextureLoader texLoader = new TextureLoader( "clouds.jpg", this );
imageComponent = texLoader.getImage();

BoundingSphere worldBounds = new BoundingSphere( new Point3d( 0.0, 0.0, 0.0
 ), 5000.0 );

Background background = new Background( );

background.setImage( image );
background.setApplicationBounds( worldBounds );

scene.addChild( background );

The scene then is added to the root.
The program is compiled without any problems, the scene appears but with no
 background at all.
No exceptions occurred. Everything seems to be allright, but it's not.
Could anybody make some suggestions about the reason of such a problem?

Thanks.

Ivailo Velikov

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