Hi,
I wanna create some woods and so far
I got n images and m coordinates
so the plan is loading the images at first in an Image[]
and then set the image[i] to the TextureLoader,
but the result were just white "Images" - no trees...
so here's the code, if anybody got hints please let me know
loading the images:
Image[] img=new Image[imageurls.length];
URL url=null;
for(int i=0;i<pfad.length;i++){
try {
url=new URL(webpath+imageurls);
}
catch (java.net.MalformedURLException ex) {
System.out.println(ex.getMessage());
System.exit(1);
}
img[i] = getToolkit().getImage(url);
}
setting the Images:
...
Texture tex = new TextureLoader(img[i],japplet).getTexture();
...
but the result is that there're no Images, just white areas in the
recommended size
best regards
rolf
--
Rolf Gabler-Mieck
c/o
LGI-Geographisches Institut der CAU-Kiel
Ludewig-Meyen Str. 14
24098 Kiel
Tel: +49 431-880.2955
FAX: +49 431-880.4658
e-mail: [EMAIL PROTECTED]
===========================================================================
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".