Brandon,

We did something very similar to what your are trying to do for JavaMet (our
slider was a custom JComponent with an upper and lower thumbs for setting a
high/low threshold).

[With Swing and Java 3D you probably don't want to start creating multiple
threads. You should read the Swing multi-threading issues before you do.]

We updated the state of our Java 3D objects (10s of thousands of points)
within a JSlider notification without any noticeable problems.

However, there would not be anything to stop you from adding your own
behavior that automatically synchronized your 3D scene with your UI every N
frames, or that you manually woke-up (and put itself back to sleep when
done).

I don't really see many differences either way. The updates will either
occur within your UI thread or within the Behavior thread. I guess it
depends how complex your updates need to be.

Sincerely,

Daniel Selman

[EMAIL PROTECTED]
http://www.tornadolabs.com

> -----Original Message-----
> From: Discussion list for Java 3D API
> [mailto:[EMAIL PROTECTED]]On Behalf Of Brandon Kohn
> Sent: 04 November 1999 22:22
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] Using behaviors...
>
>
> I'm attempting to change the opacity of an array of points (pointarray)
> based on the value of a JSlider (swing component).  I'm looking
> into the use
> of behaviors, but they seem to support only AWT component events.  Does
> anyone know of a better way to do something like this? I would like to use
> the behavior class if possible (so as to avoid writing my own threaded
> mess).
>
> Thanks
> Brandon
>
> ==================================================================
> =========
> 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