Hi All!

Thank u Brad & Jack for ur valuable advise.

How to deform Shape3D with smooth animation??

I created my Shape3D like this:

QuadArray qa2 = new QuadArray(4, QuadArray.COORDINATES
 | QuadArray.COLOR_3 | QuadArray.BY_REFERENCE);
qa2.setCoordRefFloat(floatVerts);
qa2.setColorRefFloat(floatClrs);
qa2.setCapability(GeometryArray.ALLOW_REF_DATA_WRITE);

In my custom behavior (processStimulus method) I call
((GeometryArray)(qa2.getGeometry())).updateData(this).
UpdateData() is a method of GeometryUpdater Interface.
I override this method to change the values in floatVerts
and set the new geometry to the Shape3D.Though the Shape3D
is deforming from one state of Points to another
state of Points this animation is not smooth.
The Shape jumps from one state point to another b’coz
I have only two point states.

I have created my own interpolater to move the
coords to the new positions over time.
The movements from say one point of the shape to
another new point to deform the same shape is very fast.

Any kind of help is greatly appreciable. Thank u.

With regards
Jeffy

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