Hi Florin,

As I have mentioned earlier my Java3D program loads a scene by reading values from a 
data file. To draw a scene my data file has got three important information.
1)Four points to draw a Quad & the fifth point to denote the PART
  to which  this shape3D belongs.
2)Three points to draw a Triangle & the fourth point to denote the PART
  to which this shape3D belongs.
3)Number of Parts in the whole scene.

A single PART in the scene might contain Quads & Triangles. My data file presents lot 
of parts (approx. 15), quads (approx. 1000)  & triangle (approx 700). I�m creating all 
these shapes using
1)QuadArray(4, QuadArray.COORDINATES)
2)TriangleArray(3, TriangleArray.COORDINATES)

So this constitutes the whole scene.

Then come the deformation of the all the shape3D�s in the scene...
I�m having another data file to read that has all the new values for each Quad & 
Triangle. Now that I have the old values of the Shape3D and also the new values of the 
Shape3D I need to deform the Shape3D between these two values. One important issue is 
that the deformation of the Shape3d�s is an animation (with frames and animation 
rate). So If I want to animate the deformation of a shape3D in 10 frames I generate 10 
intermediate values between the old & the new values. I�m applying different colors to 
the Shape3D�s in each frame.

The whole process is working fine, but I would like to know form anyone of you whether 
there is any other good way to improve my performance.

1)Animation is very slow b�coz of the larger number of shape3d�s.
2)Applying color-using setAppearance doesn�t look impressive.

I think I can�t use morphing in my case for two reasons.

1)I need to create a duplicate copy of all these Shape3D�s, which
   might slow down the process further.
2)I want to change the appearance of the shape3d during deformation.

Can Contours help me in this??

Pls correct me if I�m wrong.

With regards
Jeff





On Thu, 30 Jan 2003 09:24:37 +0100, Florin Herinean <[EMAIL PROTECTED]> wrote:

>For 1.
>
>Use geometry-by-reference and update the shape only from within the
>GeometryUpdater.updateData method. That works well. But I still don't
>understand why you don't like morphing ? It should do exactly what you want!
>
>For 2.
>
>What do you mean by "contour surface" ? If the data you are reading contains
>6 quads describing a cube, what should be the contour surface in that case ?
>
>Florin
>
>
>-----Urspr�ngliche Nachricht-----
>Von: Jefferson Samuel [mailto:[EMAIL PROTECTED]]
>Gesendet: Donnerstag, 30. Januar 2003 04:47
>An: [EMAIL PROTECTED]
>Betreff: [JAVA3D] Contour Surface & deform shape
>
>
>Hello All,
>
>Someone please direct me to some useful information
>on how to create contour surface.
>
>I'm creating Java3D loader, which reads data values
>from a stored file and creates lots of Shape3D's
>using Geometry classes (TriangleArray ,QuadArray & LineArray).
>
>I deform the shape3D's with the new set of point data's
>& apply color to the deformed Shape3D.
>
>Like this:
>m_OriginalGeometryArray = (GeometryArray) shapeq4[parti][
>quadj].getGeometry( ); //get the value
>shapeq4[parti][quadj].setGeometry(m_OriginalGeometryArray);//set new value
>shapeq4[parti][quadj].setAppearance(bulbApp[parti][quadj]); //set new
>appearance
>
>1) Deforming the shape as a animation (Threads) slows down the process.
>
>     Can any one suggest some other good idea to
>     deform a shape with animation?
>
>     I don't want to morph or interpolate two Shape3D's.
>     I want the same Shape3D to be deformed.
>
>2) How to create contour surface?
>
>   Anyone can direct me to some demo or example coding.
>
>Please help!
>
>With regards
>jeff
>
>==========================================================================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