BrokenSource / DepthFlow

🌊 Images to → 2.5D Parallax Effect Video. A Free and Open Source ImmersityAI alternative
https://brokensrc.dev
MIT License
438 stars 27 forks source link

dolly -r for reverse seems to have no effect #37

Closed mnlkrp closed 1 month ago

mnlkrp commented 1 month ago

🔘 Operating system

Windows 10

🔘 Runtime enviroment

PyPI Wheels (pip, poetry, pdm, rye, etc)

🔘 Python version

Python 3.12

🔘 GPU Vendor

NVIDIA Desktop

🔘 Description

dolly -r for reverse seems to have no effect. tested with different settings, just putting in the picture + "dolly -r main" but it doesn't reverse the playback.

🔘 Traceback

No response

Tremeschin commented 1 month ago

thanks for the report,

I'll soon revisit the animation system as a whole, as it's the first iteration of it I've written a few weeks ago, I'm not surprised there's some edge cases and inconsistencies across the board, and I know there's other random stuff like bad frames on it (zero divisions)

mnlkrp commented 1 month ago

Thank you very much! I'm looking forward to it :)

Tremeschin commented 1 month ago

Took a quick look on this one as well, the code is indeed reversing the time, or so it thinks.. the problem happens on the phase of the wave, uhm, sorta.. let me explain


See this desmos graph, the blue line is the starting point, the red is the end point of the isometric effect, the wave inside can either be a sine (default) or triangle, but the idea is the same (being periodic and symmetric)

that is something so obvious I've never seen on my whole electrical engineering life LOL


We could start the video mid-way through (I think immersity does this) - maybe even to avoid this same problem -, would you expect it to start all zoomed out or in, or it's ok if it's a perfect loop but starting at the middle of the animation?

(asking for the animation system v2.0, as this evidently will be a problem

mnlkrp commented 1 month ago

We could start the video mid-way through (I think immersity does this) - maybe even to avoid this same problem -, would you expect it to start all zoomed out or in, or it's ok if it's a perfect loop but starting at the middle of the animation?

I think starting in the middle of the loop would be my expected behaviour :)

Tremeschin commented 1 month ago

Just made the change, it now starts at the middle of the thing with a 'zoom forward', and reverse makes it to 'zoom backwards' at the start

Tremeschin commented 1 month ago

Should be fixed on v0.7.0, dolly now starts at the middle of the animation!

Feedback appreciated! 🙂