Hi Kelvin

> >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.
> >
> This happen if imageComp = null.
> If not, please send us a test program for further
> investigation.
Well it's not null and I'm sorry I was not precise I'm actually using the
new TextureCubeEnvironment and not just Texture.

So the real line is:

TextureCubeMap texCmap = new
TextureCubeMap(Texture.BASE_LEVEL,Texture.RGB,128,128);

BufferedImage bImage1 = new
BufferedImage(128,128,BufferedImage.TYPE_INT_RGB);
ImageComponent2D imageC1 = new
ImageComponent2D(ImageComponent.FORMAT_RGB,bImage1);

texCmap.setImage(0,TextureCubeMap.POSITIV_X,imageC1);

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