Hi Dean,

Dean Iverson wrote:

> > Canvas3D listeners? Do you mean simple Mouse(Motion)Listeners? If not,
> which
> > listeners do you mean? If so than I can spare two Behaviors :-)
>
> That is correct.  I asked that question a couple of weeks ago and Kelvin
> Chung replied that it was indeed safe to update a live scenegraph from a
> keyboard/mouse listener attached to the Canvas3D

Thanks for your reply, it indeed is working :-) I think this is a fairly
reusable part of code. But I think I should better document it before it can be
sent out to public. With this ConstrainedMouseRotater I got no feedback so I
don't know if it was not working for others, or they did not like it or it was
unusable because they did not know how to use it.

Anyway, this is a kind of translator, or proxy for mouse events. you can
register there as a listener with the shapes, mousebuttons and events you are
interested and get the canvas events as well as for example intersections with
one of your shapes for mouseMoved and mouseClicked.

> What's not clear to me is if I have, for example, a server that is sending
> me object position/orientation updates at 60 Hz, and I have a thread in the
> client that is receiving those updates, how do I quickly and safely update a
> live scenegraph (also in the client) from the network thread?

Hm, if you have to do it through a behavior, what about a bevaior which wakes up
every frame an looks if there is something to do? or you can have a behavior
with a method updateSceneGraph(parameters) which stores the data and then post
an ID to that Behavior so that it wakes up asap.

Just some ideas,

Andreas

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