Jefferson Samuel wrote:

Hi All,

Now I'm changing the appearance of an object & enabling lights
outside the updateData() method.Does sun have any plans to
change this in the future?

Bug 4686527 (Deadlock between MasterControl
and user thread when using ByRef updateData())
sounds a bit disappointing.


There is no plan to fix it currently. Note that this callback
is mainly for the purpose of updating geometry but not others.

I am implementing "Vertex Data" animation in our system.
To do this I have to use the GeometryUpdater and I also
have to use GeometryArray By-Ref mode.Since I'm trying to
use this with the models coming in from my Loader,
GeometryArray By-Ref Shape3D's are created in one class
and are loaded by another class that implements GeometryUpdater.

I don't have a reference to floatVerts[] in the second class
and cannot update the Shape3D automatically.
I'm using getCoordRef3f & setCoordRef3f to update the vertex data.

Eg-:
((GeometryArray)(Shape3D.getGeometry())).setCoordRef3f(m_OrgPoint3f);

My Question is this:
1)Is there any performance cost in updating the data vertex directly in
 the vertex array vs setCoordRef3f?? If so, Is there another workaround?

If you have only one component (color/normal/vertex) to update, using
setCoordRef3f() should have comparable performance with updateData().
Otherwise using updateData() is more efficient.


The animation I wish to perform in my system needs to update vertex data of more than one Shape3D and also changes its appearance properties at the same time.


My Question is this: 1) Can updateData() update only one Geometry at a time? Do we have something like Java3D threads to achieve this simultaneously? Pls redirect me to some examples if any.


Each Geometry should have its own GeometryUpdater, the method
updateData() of it should only modify current Geometry.

Check out examples/GeometryByReference/GeometryByReferenceTest
and GeometryByReferenceNIOBuffer


Thanks Alessandro & Kelvin for your valuable insite.





- Kelvin
------------
Java 3D Team
Sun Microsystems Inc.

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