Replies: 2 comments
-
Hi @thsmit — for the PicoGK-based screenshots, I usually render out repeated screenshots as TGA, and then convert them to an animation using Quicktime (Open Frame Sequence) or another tool. Since Quicktime doesn't understand TGA, it's a bit of a pain to convert to PNG or something else first. I didn't want to burden the core PicoGK with further submodules, so I did not implement PNG natively in regular PicoGK. The more nice renders were done in Blender, and I wish Blender had a nice C-type interface that we could use to automate it. Unfortunately it seems to only support Python code that is executed from within Blender. I am thinking of adding some clever inter-process communication between PicoGK and Blender as setting up stuff takes forever. But for now, that's how I do this. Let me know if this helps. PS: To convert the TGAs to PNGs, which can directly be loaded in Quicktime, you can add the following code (Requires the SkiaSharp NuGet package). All you do is load the TGA from the screenshot into an image, and save it again as PNG. Then you can delete the TGA. It's on my list of things I will change for a more extended version of PicoGK, I am working on.
|
Beta Was this translation helpful? Give feedback.
-
Hi @LinKayser, Thanks for the explanation and the code, this helps a lot! Converting from .tga to .png works nicely using the code you suggested. The Blender part I will save for a later point in time ;) Herewith the function to loop though a folder and convert all .tga files to .png. Maybe it helps anyone.
|
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I am experimenting with nicely outputting animations and visualizations of parameter sweeps like:
I am getting quite a long way with
Ex_TimelapseAnimation.cs
but how can we output these animations. Do we need to save screenshots and make a git out of that or is there some other rendering involved? I am keen to learn more how this is done :)Best, Thijs
Beta Was this translation helpful? Give feedback.
All reactions