Slappo Svensson wrote:
> Is there a way to determine or decide when a scene
> gets rendered? If I transform say three things is
> there a chance that the scene will get be drawn in the
> middle of that,

No. The conceptual model of Java3D is there are two threads. One thread
is doing rendering, the other thread is your code making changes to the
scene graph. At the start of a frame, the rendering thread takes the
complete state of the scene graph and renders it to the various buffers.
  Your code is free to make whatever changes you like. Both threads then
join together at the end of that frame. At the start of the next frame
all your updates from the previous frame are then rendered.

> Second, when you rotate an object I guess the local
> coordinate system gets rotated. If I have a variable
> that keeps track of the direction the object is facing
> what precision would I need to use for my variables if
> this object gets moved alot, in order for the object
> and that variable to not get out of sync?

Do you need to keep that around? Why not set up the scene graph so that
you can query for it whenever you want.

--
Justin Couch                         http://www.vlc.com.au/~justin/
Java Architect & Bit Twiddler              http://www.yumetech.com/
Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
-------------------------------------------------------------------
"Humanism is dead. Animals think, feel; so do machines now.
Neither man nor woman is the measure of all things. Every organism
processes data according to its domain, its environment; you, with
all your brains, would be useless in a mouse's universe..."
                                               - Greg Bear, Slant
-------------------------------------------------------------------

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