Hi!
I want to get a snapshot from a scene. I create scene and display it using view.renderOnce(). After that in the same program method I call view.getSnapshot(canvas, “c:/snapshot”). I really get a snapshot saved in the file. Then I try to use the same part of code in the MouseListener method mouseClicked. The method really works, I get printed supplementary comments into console but I obtain a black square in place of scene snapshot in the file.
How can I get a snapshot from a scene at some mouse (or other) event?