Hi all,
        I'm using the openGL version of java1.2.1_03 and I cannot get the
size of my points in a pointarray to change size.  I'm using the
pointAttributes class and the setPointSize(float size) method but when I
create my shape3D, the point is always the default size.  Is this a bug in
java3d?  I checked the bug listings but couldn't find anything. Here's a
sample of my code...

 public Shape3D buildParticle() {

     /*** Set up the geometry of the rain drop ***/
     PointArray point = new PointArray(1, PointArray.COORDINATES);
     point.setCoordinate(0, particle.getPosition());  /** position is 0,0,0
**/

     /*** Set up the appearance of the rain drop ***/
     Appearance appear = new Appearance();
     appear.setCapability(appear.ALLOW_POINT_ATTRIBUTES_READ);
     appear.setCapability(appear.ALLOW_POINT_ATTRIBUTES_WRITE);
     PointAttributes pa = new PointAttributes();
     pa.setPointSize((float)particle.getSize());
     appear.setPointAttributes(pa);

     Shape3D particle_shape = new Shape3D(point, appear);
     return particle_shape;
}


Shaun Shepherd

Applied Research Associates

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