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

Animations start on the wrong frame #16

Closed
WAUthethird opened this issue Mar 4, 2021 · 15 comments
Closed

Animations start on the wrong frame #16

WAUthethird opened this issue Mar 4, 2021 · 15 comments

Comments

@WAUthethird
Copy link

WAUthethird commented Mar 4, 2021

Having an issue with MB3D (latest) where all animations start their render position a few frames after the set start.

Below is an image I rendered of the actual first frame of an example animation. It is the first frame I set for the animation. (The camera is moving left in this example)
test

And here is the first image it output after starting the animation render.
new000001

This problem seems to occur all the way back to v1.99.0, and I would assume 1.98 as well.
It is very irritating, as my workflow requires very very precise timing in regards to frames - I sync to music.

@bezo97
Copy link

bezo97 commented Mar 4, 2021

I'm pretty sure this bug was present in a lot earlier versions too, way before the 1.9x releases.

@thargor6
Copy link
Owner

thargor6 commented Mar 4, 2021

I'm also pretty sure that I did not change there anything during the last years.
Unfortunately, I could not even duplicate the problem. Added two keyframes and it worked as expected. What else is requiered?

@WAUthethird
Copy link
Author

WAUthethird commented Mar 4, 2021

That's it, really. I changed nothing from the default aside from the image type.
You're sure it worked as expected? As in, you rendered the first frame both as a standalone render and as an animation to compare?

@WAUthethird
Copy link
Author

Here's a test .m3a that exhibits the problem.
test.zip

@thargor6
Copy link
Owner

thargor6 commented Mar 5, 2021

I rendered the whole animation as single frames (which btw. did never stop, might this be a bug, too?) Which setting exactly would be "as animation"?
Thanks for the file, will check that later.

@WAUthethird
Copy link
Author

WAUthethird commented Mar 5, 2021

Yeah, I rendered as single frames as well. What I'm referring to is a render in the main program (i.e. sending the first position to the main program) versus an animation via the animations window. The never stopping issue is another problem; it does eventually stop but only after quite a few extra frames past the supposed stop number.

@bezo97
Copy link

bezo97 commented Mar 5, 2021

I was able to replicate it, it's easier to see on a formula that's supposed to be symmetrical in the very first frame, such as Menger3:
image

@WAUthethird
Copy link
Author

@thargor6 No pressure, but do you have any updates regarding this? I have a slightly time-sensitive project I'd really like to get going on.

@thargor6
Copy link
Owner

I'm currenty very busy with other projects and hoping for a free time-slot soon...

@thargor6 thargor6 pinned this issue Mar 12, 2021
@thargor6
Copy link
Owner

could be then combined with the feature request regarding animation frames

@WAUthethird
Copy link
Author

Hi again. I really don't want to come off as rude (I know you're doing this for free) but I'm just wondering if you have any updates on this?

@thargor6
Copy link
Owner

So I had a look at your example file.
The reason seems to be Bezier interpolation (a Bezier curve does not exactly hit the interpolation points).
There seem at least three workarounds:
a) use linear interpolation
b) insert a keyframe with the same position before the first keyframe
c) start with the camera a little bit more at the left
Does this make sense to you?

@WAUthethird
Copy link
Author

Yes, that makes sense.
I tested linear interpolation and inserting a keyframe with the same position before the first keyframe.
Linear interpolation exhibits none of the problems that Bezier interpolation does, however this comes at the cost of clean movement, so for me at least, it is not an option.
Inserting a keyframe with the same position data as the first before the first keyframe does work provided I set the number of frames calculated to 1 (don't want it to render the same frame 50 times) but it does work.

However, there is another issue with the program that suggests this is a bug. On every animation render I do, the program usually keeps going past the set framelimit for a while before stopping. This means that camera movement is slower than accounted for, which makes syncing to music very difficult.
I have a suspicion that these two are connected, as the fact that the counter keeps going up (i.e. it'll say "584 out of 500 done") tells me there's something going wrong.

Perhaps this is related?

//new: step midpos back to camera! ... direct header H1..H3 manipulation is not allowed!

@thargor6
Copy link
Owner

I see, and also faced this problem a long time ago. But looking at this code, I have to conclude that it would be easier to rewrite it than to understand it with all its hard coded values and many commented out parts. It seems that the original author also tried many things and then stopped somewhere.
Maybe you could switch to Mandelbulber?

@WAUthethird
Copy link
Author

Yeah. That definitely makes sense.
Okay, I'll probably try to use your workarounds for a while before trying to get myself to finally learn Mandelbulber haha

Thanks for the help!

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

No branches or pull requests

3 participants