Skip to main content

RFE: wait for scene updates

4 replies [Last post]
mikofclassx
Offline
Joined: 2003-07-02

To the Java3D team:

why don't you give us a way to control the updates status of the scenegraph ?

We would simply need a single method (i.e. waitSceneUpdates()) to wait/check if the scene updates are complete before taking a picture of it.
This would be really useful for the rest of us deeply using offscreen rendering.

Mik

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mike Pilone

Although the method would be convenient, you should be able to create the
behavior that you want by using a Behavior with WakeupOnElapsedFrames.
Create the behavior that wakes on 3 elapsed frames (so all changes can
propagate). Create a method that enables the behavior, then does a wait()
for notification. In the behavior, notifyAll() to wake the sleeper back up
and disable itself. Make sure the frame behavior is not passive so it forces
rendering.

-mike

-----Original Message-----
From: java3d-interest@javadesktop.org
[mailto:java3d-interest@javadesktop.org]
Sent: Tuesday, September 14, 2004 5:39 AM
To: interest@java3d.dev.java.net
Subject: [JAVA3D-INTEREST] RFE: wait for scene updates

To the Java3D team:

why don't you give us a way to control the updates status of the scenegraph
?

We would simply need a single method (i.e. waitSceneUpdates()) to wait/check
if the scene updates are complete before taking a picture of it.
This would be really useful for the rest of us deeply using offscreen
rendering.

Mik
---
[Message sent by forum member 'MikOfClassX' (MikOfClassX)]

http://www.javadesktop.org/forums/thread.jspa?messageID=28068&#28068

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

mikofclassx
Offline
Joined: 2003-07-02

ADDENDUM:

alternatively it could be nice to call stopRender() / startRender() even on offscreen canvases.

Mik

Mike Pilone

It is my understanding that offscreen canvases will only render when
requested, so why would you want a stop and start on them?

-mike

-----Original Message-----
From: java3d-interest@javadesktop.org
[mailto:java3d-interest@javadesktop.org]
Sent: Tuesday, September 14, 2004 5:40 AM
To: interest@java3d.dev.java.net
Subject: [JAVA3D-INTEREST] Re: RFE: wait for scene updates

ADDENDUM:

alternatively it could be nice to call stopRender() / startRender() even on
offscreen canvases.

Mik
---
[Message sent by forum member 'MikOfClassX' (MikOfClassX)]

http://www.javadesktop.org/forums/thread.jspa?messageID=28070&#28070

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

---------------------------------------------------------------------
To unsubscribe, e-mail: interest-unsubscribe@java3d.dev.java.net
For additional commands, e-mail: interest-help@java3d.dev.java.net

mikofclassx
Offline
Joined: 2003-07-02

I'm doing a lot of small scene changes (mostly transforms and Appearance) through a gui.
I often get snapshots of the offscreen canvas that are not in synch with the gui settings. When I'm onscreen I always get the expected results.
That's why I would like to get snapshots only when the scene is completely up to date. In my case I would stop the renderer during gui operations and start it again before taking a snapshot.

Mik