Title: RE: [JAVA3D] Texture MipMap Level0 and BaseLevel???

The following code works for me:

ImageComponent imageComponent =
        new ImageComponent2D(ImageComponent.FORMAT_RGBA, bImage, true, true);
Texture2D t2d = new Texture2D(Texture2D.BASE_LEVEL,
        Texture.RGBA, bImage.getWidth(), bImage.getHeight());
t2d.setBoundaryModeS(t2d.WRAP);
t2d.setBoundaryModeT(t2d.WRAP);
t2d.setMinFilter(t2d.BASE_LEVEL_LINEAR);
t2d.setMagFilter(t2d.BASE_LEVEL_LINEAR);
t2d.setImage(0, imageComponent);
t2d.setEnable(true);
mAppearance.setTexture(t2d);

I have not tried 1.3beta1 though.

Yuri


-----Original Message-----
From: Joachim Diepstraten
[mailto:[EMAIL PROTECTED]]
Sent: Monday, December 03, 2001 4:51 PM
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Texture MipMap Level0 and BaseLevel???


Hi

Hmm I've got a question concerning Textures and MipMap.
If I set the MIPMAP-Mode of a Texture to Texture.BASE_LEVEL. Which
means it has only one Texture and add a ImageComponent2D to the Texture by
using this line :

texMap.setImage(0,imageComp);

I get an exception:

Texture: mipmap image not set at level0

?????

I wonder know what's level 0 then when it's not zero? I tried 1 but then
I'll get an index out of bounds exception.

Any clue what's wrong? I couldn't find a predefined field for level0
either.

EOF,
 J.D.

--
Jmark2k+1 (http://www.antiflash.net/jmark)
Test the performance of your PC online!

===========================================================================
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".

Reply via email to