Hi hi, happy new year
When you originally posted this question in reddit Yvee1 noticed and it produced this discussion in Slack:
- Yvee1: https://www.reddit.com/r/OPENRNDR/comments/rsq808/can_you_make_pictures_headless_apps_on_windows/
- edwin: headless on windows. that is a good question
- Yvee1: I wonder if headless is needed for their use case. it seems they just want to output a picture which can be done with e.g. the SingleScreenshot extension right
- edwin: I think there should be an added option to not make a window, run the draw loop once and exit
- well yes the saving would then be supported by single screenshot or something similar
- actually single screenshot already does the exiting part for us
- which is great because I like the minimal amount of scenarios Application has to be aware of
So as I mentioned in reddit, currently
There’s no need to draw to a visible screen buffer, you can draw to a non visible RenderTarget OPENRNDR GUIDE (that’s like a PGraphics in Processing) and save it.
This should work on Linux, Windows and Mac. If you try and get stuck feel free to ask here.
If what @edwin mentioned above gets implemented, then there would be not even a window appearing but the program just starting, saving something to disk and closing.
The headless mode you linked above currently only works on Linux and is used (afaik) to generate screenshots and videos on GitHub when something gets committed to the repo. This is used to generate documentation media automatically.
BTW. welcome to the forum!