Do I have to? Because I don't set TriangleArray.COLORS flag in the
constructor. The shape has appearance with coloring attributes set. In the
case where I don't use BY_REFERENCE flag it works.


At 07:29 AM 11/4/2004 -0600, you wrote:
Don't you have to set the vertice colors as well?

----- Original Message -----
From: "Ilya Zelker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, November 03, 2004 10:41 AM
Subject: [Norton AntiSpam] [JAVA3D] Geometry by reference


> Hi, > > I have a problem displaying a geometry by reference, where nothing is > displayed. The code below doesn't work: > > TriangleArray arr = new TriangleArray(vertices.length, > TriangleArray.COORDINATES | TriangleArray.NORMALS | > TriangleArray.BY_REFERENCE); > arr.setCoordRefFloat(vertices); > arr.setNormalRefFloat(normals); > > > When I use code below everything is ok and I can see the geometry on the > screen: > > TriangleArray arr = new TriangleArray(vertices.length, > TriangleArray.COORDINATES | TriangleArray.NORMALS); > arr.setCoordinates(0, vertices); > arr.setNormals(0, normals); > > Do you guys have any suggestions? > > Thanks a lot, > Ilya > > =========================================================================== > 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".

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

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