" IndexedQuadArray(8, GeometryInfo.COORDINATES);"
use GeometryArray.COORDINATE
"setCoordinatesIndices "
use setCoordinateIndices (argh crazy methods with Coordinate or Coordinates !!!)
" bg.addChild(iqa)"
you have to set your geometry in a shape3D before :
Shape3D myShape3D = new Shape3D();
myShape3D.setGeometry(iqa);
bg.addChild(myShape3D);
return bg;
Well I think looking quickly your code that the declaration of geometry should be
IndexedQuadArray iqa = new IndexedQuadArray(24, GeometryArray.COORDINATES, 24);
because there are 6 * 4 = 24 points to render
J�rgen Vansteelant <[EMAIL PROTECTED]> wrote:
Hello,I'm making an applet that supposed to render a Cube, but he doesn't.This is what I get as output:CubeTest.java [19:1] cannot resolve symbol
symbol : variable COORDINATES
location: class com.sun.j3d.utils.geometry.GeometryInfo
IndexedQuadArray iqa = new IndexedQuadArray(8, GeometryInfo.COORDINATES);
^
CubeTest.java [42:1] cannot resolve symbol
symbol : method setCoordinatesIndices (int,int[])
location: class javax.media.j3d.IndexedQuadArray
iqa.setCoordinatesIndices(0, indices);
^
CubeTest.java [44:1] addChild(javax.media.j3d.Node) in javax.media.j3d.Group cannot be applied to (javax.media.j3d.IndexedQuadArray)
bg.addChild(iqa);
^
3 errors
Errors compiling CubeTest.If anyone could give me a hint fo what I'm missing here?!Thanx> ATTACHMENT part 2 application/octet-stream name=CubeTest.java
Do You Yahoo!?
Yahoo! Greetings - send greetings for Easter, Passover
