Skip to content
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

How to render optical flow between two non-adjacent frames? #1011

Open
ootts opened this issue Dec 2, 2023 · 1 comment
Open

How to render optical flow between two non-adjacent frames? #1011

ootts opened this issue Dec 2, 2023 · 1 comment
Labels

Comments

@ootts
Copy link

ootts commented Dec 2, 2023

Describe your feature request

Suppose we have three frames, where either objects or camera moves, resulting optical flow.
Let's say we have frame1, frame2, and frame3. Using blenderproc, we can obtain flow1 and flow2, where flow1 connects frame1 and frame2, and flow2 connects frame2 and frame3.
But I am wondering if it is possible to render a flow image that connects frame1 and frame3?

Describe a possible solution

A possible solution without blenderproc would be warpping flow2 using flow1, resulting in warped_flow2, and then add warped_flow2 with flow1 to obtain the flow image between frame1 and 3. But this would involve interpolation. If we have a large number of frames and we do a chain of warping, there may be error accumulation. Thus, a native support from blenderproc would be nicer.

@ootts ootts added the enhancement New feature or request label Dec 2, 2023
@cornerfarmer
Copy link
Member

Hey @ootts,

unfortunately, blender does only allow rendering optical flow for non-adjacent frames. Therefore the only recommendation I can give you is to change the keyframes such that the frames of which you want to render the optical flow are next to each other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants