Ability to snapshot scene every frame - listening to scene rendering events

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: None
    • Component/s: javafx
    • None

      Hi,

      I am wondering if there is an API in JavaFX that allows me to be notified when a frame into a scene has been completely rendered.

      This would allow me to take snapshots or "do something" for each frame being completed. Imagine saving a JavaFX scene to a media file. It would be even better to be notified before starting and after finishing a frame.

      Something like:

      scene.addRenderListener(renderListener);

      and

      // called before scene creation
      renderListener.onInit(scene,time)

      // called before rendering the frame
      renderListener.onFrameStart(scene,time)

      // called when the frame is completely rendered
      renderListener.onFrameEnd(scene,time)

      // called after scene destruction
      renderListener.onDispose(scene,time)

            Assignee:
            Unassigned
            Reporter:
            Michele Puccini (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Imported: