Alejandro Allievi wrote:
Hi All,

I get this exception:

Exception in thread "main" java.lang.IllegalStateException:
GeometryArray: must be in TEXTURE_COORDINATE_3 mode to use this method
        at
javax.media.j3d.GeometryArray.setTextureCoordinates(GeometryArray.java:2281)

But I have set the TEXTURE_COORDINATE_3 as:

      super(2*4*10*10 + 2*4*10,
               GeometryArray.COORDINATES |
               GeometryArray.COLOR_4 |
               GeometryArray.TEXTURE_COORDINATE_3); //Default is 100 cells

where super() refers to QuadArray.

Any clues why this happening?
No clue, if super() is invoke before setTextureCoordinates()
vertexFormat should set before the checking.

Please send us a test case.

- Kelvin
------------
Java 3D Team
Sun Microsystems Inc.

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