Hi Ivailo,
I'm not sure what's wrong with your code, because the section you list
below does not look like it would compile. For an example of using
background image, check out the AppearanceTest example that is shipped
with Java 3D.
Doug Twilleager
Java 3D Team
> X-Lotus-FromDomain: NEMETSCHEK_BG
> Mime-Version: 1.0
> Content-Disposition: inline
> Subject: [JAVA3D] Problems making image background
> To: [EMAIL PROTECTED]
>
> 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".
===========================================================================
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".