EriKWDev / nanim

Nanim is an easy-to-use framework to create smooth GPU-accelerated animations that can be previewed live inside a glfw window and, when ready, rendered to videos at an arbitrary resolution and framerate.
MIT License
119 stars 3 forks source link

The First Two Frames of a Rendered Animation seem off #3

Closed EriKWDev closed 3 years ago

EriKWDev commented 3 years ago

When compiling a scene and rendering it to a video file with --render, the first two frames of the animation seems to have incorrect scaling as well as some other artifacts. First two frames could probably just be skipped in almost every scenario, but would be nice if the scaling just worked from the get-go.

Don't know what the cause is.

EriKWDev commented 3 years ago

If you use VLC to view the videos, you can jump forward one frame at a time by pausing and then pressing E

EriKWDev commented 3 years ago

It turned out that it was the pattern-creating causing the bug. The old pattern-maker utilized the current context and therefore messed with its transformmatrix . The new implementation doesn't touch the old context and instead uses a temporary one which also actually happens to be a lot more efficient xD