Hi,
I created mipmaps in the following method:
private Texture[] makeTexture(Image[] img, int groesse){
int imghoch,imgbreit,imglvl;
TextureLoader texloader=null;
Texture[] textures=new Texture[img.length];
for(int i=0;i<img.length;i++){
BufferedImage BUF = new
BufferedImage(groesse,groesse,BufferedImage.TYPE_INT_ARGB);
Graphics g = BUF.getGraphics();
g.drawImage (img[i],0,0,new JLabel());
texloader = new TextureLoader(BUF, TextureLoader.GENERATE_MIPMAP);
ImageComponent2D image2=texloader.getImage();
imghoch=image2.getHeight();
imgbreit=image2.getWidth();
textures[i]=new Texture2D(Texture.MULTI_LEVEL_MIPMAP,
Texture.RGBA,imgbreit,imghoch);
imglvl=0;
textures[i].setImage(imglvl,image2);
while(imgbreit >1 || imghoch
>1){
imglvl++;
if(imgbreit>1) imgbreit /=2;
if(imghoch>1) imghoch /=2;
image2=texloader.getScaledImage(imgbreit,imghoch);
textures[i].setImage(imglvl,image2);
}
}
return textures;
}
during runtime I am unable to see any differences, also when I change
the texture of my landscape (1024x1024 textur)
and fly far away nothing changed...but I believe it has to change to a
higher mimaplevel...
is there something I lost to do? I found some examples which explain
mipmapping in the way I did [as I believe..:-) ]
I try to set the minimum and maximumLOD of each texture...but without
changing any result...
any ideas hints and so far?
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".