Ok, I get an Illegal ArgumentException when I try tu run my app. It says:
2D texture coordinates not specified...

here's my code:

TexCoord2f tp1 = new TexCoord2f( 0.0f, 0.0f);
TexCoord2f tp2 = new TexCoord2f(25.0f, 0.0f);
TexCoord2f tp3 = new TexCoord2f(25.0f, 5.0f);
TexCoord2f tp4 = new TexCoord2f( 0.0f, 5.0f);

TexCoord2f[] texCoordArr = new TexCoord2f[24];

texCoordArr[0] = tp1;
texCoordArr[1] = tp2;
texCoordArr[2] = tp3;
texCoordArr[3] = tp4;
texCoordArr[4] = tp1;
texCoordArr[5] = tp2;
...

gi.setTextureCoordinates(0, texCoordArr);

gi is the geometry info...

I know I've missed something...could nayone help me with this??

Thank you

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