Jure,
If you don't mind, change line 435 in the ColorCube class from
pointArray = new PointArray(length*width*height,
PointArray.COORDINATES|PointArray.COLOR_4);
to:
pointArray = new PointArray(length*width*height,
PointArray.COORDINATES|PointArray.COLOR_3);
Then re-compile, it's another one I missed.
(I'm making the change here and uploading it again in the ColorCube.zip
file)
-----Original Message-----
From: Jure Zabkar [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 20, 2001 8:58 AM
To: Casteel, Don
Subject: Re: [JAVA3D] ColorCube Volume example, revision #3
Don,
> Recent experience though, has shown that this doesn't mean the program is
> right, only that it runs on my machine : )
I still get the same exception as with the previous code:
java.lang.IllegalStateException: GeometryArray: must be in COLOR_3 mode
to use this method
at javax.media.j3d.GeometryArray.setColor(GeometryArray.java:1163)
at ColorCube.mapParticles(ColorCube.java:200)
at ColorCube.graph(ColorCube.java:438)
at ColorCube.createGraph(ColorCube.java:408)
at ColorCube.objectGraph(ColorCube.java:367)
at ColorCube.init(ColorCube.java:164)
at ColorCube.main(ColorCube.java:498)
Exception in thread "main"
Thanks anyway,
Jure
===========================================================================
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".