-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ScreenShooter improvements #442
Comments
Related issue #441 |
My suggestion would also be to make the ScreenShooter a view. This makes it much more intuitive and at the same time gets rid of those evil render hooks. Additionally, giving the ScreenShooter view an additional input which offers another module a callback function to trigger the recording of a screenshot, would allow us to put all functionality into a single module. As to the issue of changing the filename, I would add parameters to the ScreenShooter that allow for a continuous numbering of output files to prevent overwriting. This also makes editing the filename field at runtime superfluous for most cases. |
I've encountered several problems, when I wanted to produce a screenshot series:
The data can be found here: The first screenshot is okay - but showing the menu bar: The 2nd screenshot doesnt show my particles any more, but Log Console and Parameter gui came up again:
|
Hi, concerning your second point: |
mmSetConfigValue semantics are a mmconsole feature that is not yet supported by megamol.exe. |
Thanks for the hint! Can you pls give an example? |
Aaah, okay. I was not aware of the option "Save GUI State", and therefore missed this information in my saved project file. Thanks! |
@pramathe Just for clarification: Do you start MegaMol using |
I use megamol.sh, so megamol.exe |
CLI: Lua: |
Thanks for the examples! 1|OpenGL_GLFW_Service: WindowManipulation::set_framebuffer_size() could not enforce window size to achieve requested framebuffer size of w: 1920, h: 1080. |
But CLI option works fine! |
Ping @moritz-h for Linux GLFW support |
Can you provide one such truncated screenshot file, maybe with a screenshot of the corresponding MegaMol window? It would also be helpful to have a minimal Lua project example to reproduce this. |
Under the following link you can find a *.lua file, a small test data set, a screenshot of my megamol window, and two truncated png files generated by the screenshooter service: I launched megamol on Ubuntu 20.04 by the following command: |
IMHO, the
ScreenShooter
module has several design and usability quirks. In the following I will try to list a few issues and possible solutions:Relation to the graph
The module is disconnected from the rest of the graph and requires a "view"-param to be set. This leads to some trickery in terms of code and usablity
One solution would be to convert the module to a View, so that it is very clear which parts of graph are recorded, i.e., everything to the right.
ALT+PRINT screenshots are "faster" sometimes
If code runs slow, the GUI becomes really difficult to use below 15FPS. In those cases ALT+PRINT becomes more usable than the ScreenShooter, i.e., ALT+PRINT -> Paint -> Save As is faster than searching for
ScreenShooter::filename
-> edit path ->ScreenShooter::trigger
.An easy fix would be to split "trigger" into "Save" and "Save As", and open a dialog respectively. See tiny file dialogs. Problem with <1FPS screenshots remain unsolved - this would probably require threading and caching.
External triggering and animation
Some modules and plugins (ask @straubar and @braunms) want to trigger screenshots externally, either for recording animations or for recording during rendering (partially solved by making this thing a View?). It would be nice if there is only "one solution" to do this in terms of code.
The text was updated successfully, but these errors were encountered: