Well I haven't used billboards, but if you want the size of the image, you can
use the ImageIcon class to import it and get the info:
ImageIcon image = new ImageIcon(filename);
int w = image.getIconWidth() ;
int h = image.getIconHeight() ;
Then, presumably you can construct the billboard to the appropriate size for
that image.
HTH,
-Gary
Rakesh Kotecha <[EMAIL PROTECTED]> on 04/29/99 07:27:52 AM
To: [EMAIL PROTECTED]
cc: (bcc: Gary Moss/arl)
Subject: [java3d] Loading pictures(gifs) into billboards
This may sound like an easy thing to do... but im really struggling
with it...
does anyone know how i could easily have a picture (gif files) as a
billboard without knowing the size... included in a j3d application?
i.e. i just want to create a billboard with the picture on it... (and
the billoboard sizes itself to the picture being loaded) and include it
in my scene graph
the only way i can think of doing it is to create a square out of
polygons and load it as a texture...
and then adding that square to a billboard transform
is their a simpler way of doing this
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/