-
Notifications
You must be signed in to change notification settings - Fork 81
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
[BUG] Zoom parameters aren't applying the correct scaling #377
Comments
Hi there, anim.add_keyframe(0, camera="top", zoom=1)
anim.add_keyframe(3, camera="sagittal", zoom=0.95)
anim.add_keyframe(6, camera="frontal", zoom=1)
anim.add_keyframe(9, camera="frontal", zoom=1.2)
anim.make_video(duration=12, fps=15) This now results in the following video : brainrender_animation.mp4It seems the zoom factor is applied at each frame instead of each view. The animation example seems to work because it's rather short so the zoom does not have time to make the brain very small. In my example above, setting brainrender/brainrender/render.py Line 268 in 78c0426
This worked and I got the expected result. Cheers ! |
Thanks for the extra context @GuillaumeLeGoc! The frame rate observation is going to be very useful in deciphering exactly what's going on. Unfortunately we're stuck in a situation where we need to keep the For now I've done a quick patch exposing the |
Hello ! Yes I saw the release and it indeed works with the exposed |
After #364 the zoom parameter doesn't provide the correct scaling when passed to the
plotter.show
function.The following examples create an animation that first shows
zoom=1
and thenzoom=1.2
using thefrontal
camera.If
resetcam=False
(the current behaviour):brainrender_animation.mp4
If
resetcam=True
:brainrender_animation.mp4
I believe the
resetcam=True
animation is the expected behaviour.The text was updated successfully, but these errors were encountered: