Hello !

I've got a problem in a program using Quad Array geometries with Java 3D v 1.3 and 
Direct3D 8.1

I used to work on Java 1.2.1 (Direct3D) and everything worked perfectly but now I 
switched to 1.3 (Direct3D) and I get "Fail to create Vertex Buffer - 
D3DERR_INVALIDCALL" when rendering scenegraph containing this kind of code :

---
Point3f[] face=new Point3f[4];
face[0] = new Point3f(-1,-1,0);
face[1] = new Point3f(-1,1,0);
face[2] = new Point3f(1,-1,0);
face[3] = new Point3f(1,1,0);

com.sun.j3d.utils.geometry.GeometryInfo ground= new 
com.sun.j3d.utils.geometry.GeometryInfo(com.sun.j3d.utils.geometry.GeometryInfo.QUAD_ARRAY);
ground.setCoordinates(face);
Shape3D s=new Shape3D(ground.getGeometryArray());
mainTransformGroup.addChild(s);
sceneRoot.addChild(mainTransformGroup);
---

Can anyone help me ? :)

Thanks in advance

L�van Sardjev�ladz�

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