I just tried, for the first time, specifying an image for the Background.
It works O.K., but...
Performance is now *really* bad. Scene rotations (rotating the
ViewPlatform) is now very jumpy.
I coded
ImageComponent2D ic =
new TextureLoader("C:/G/J3DProjects/nch5/NCH5/classes/nch5/test.jpg",
this).getScaledImage(AB.ScreenProperties.width,
AB.ScreenProperties.height);
AB.theBackground.setImage(ic);
As soon as I remove the background image, performance returns to normal.
1) Why should this be?
2) If I just do a getImage instead of the getScaledImage, the background
image does not fill the entire canvas and is positioned in the upper left
corner. How can I move it to the center of the canvas?
3) And keep it in the center as I change the canvas window size by dragging
the edge of the window with the mouse? (I can code an onresize event, but I
am wondering is there is something in Background that I don't know that
would do this automatically.)
Cheers,
Bob Gray
===========================================================================
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".