Thanx Jeremy, I think you're right... haven't called the setTextureCoordinateParams(texCoordSetCount, 2) method...
I'll try that and see if it works..thanx!
From: Jeremy Booth <[EMAIL PROTECTED]> Reply-To: Discussion list for Java 3D API <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [JAVA3D] texture coords exception... Date: Tue, 6 Jan 2004 17:07:27 -0000
Flavius said: > Ok, I get an Illegal ArgumentException when I try tu run my app. It > says: 2D texture coordinates not specified...
According to the javadoc that is thrown if : if texCoordSet < 0 or texCoordSet >= texCoordSetCount, or the texture coordinate parameters were not previously set by calling setTextureCoordinateParams(texCoordSetCount, 2).
texCoordSet == 0 so thats fine, i'm guessing you havn't called setTextureCoordinateParams(texCoordSetCount, 2) which sets up the number of texture coordinate sets and the number of dimensions your textures have (i'm guessing your using 2d textures).
It's all a guess, but it would explain it, check the javadoc for GeometryInfo for more help, I admit the javadoc isn't great, but it's a good start.
HTH
Jeremy
--
Homepage: http://www.computerbooth.com/ Codepage: http://www.newdawnsoftware.com/
=========================================================================== 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".
_________________________________________________________________ Hitta rätt på nätet med MSN Sök http://search.msn.se/
=========================================================================== 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".