-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
render problem 3d camera distance #975
Comments
Thanks for the report! Sorry to be so late to respond. This is in fact very weird, probably related to how manim handles rotation in 3d. This an hard issue. Just a question, are the kinf of flashs in the gif you provided intentional? |
No worries as stated you can trick yourself around this issue. The flashes weren't intentional and only existent if |
Thanks for the clarification. I don't know if this will be fixed soon, I hope you found a workaround |
Update readme to reflect ManimCommunity#571
I think the Anyway, the flashing issue and curved axes are caused by having objects in the scene with z value too close to the distance value, and can be fixed by setting class DebugCamera(ThreeDScene):
def construct(self):
self.renderer.camera.exponential_projection=True
self.set_camera_orientation(phi=80*DEGREES, theta=45*DEGREES, distance=2)
axes = ThreeDAxes()
s = Sphere()
self.add(axes, s)
self.begin_ambient_camera_rotation(rate=0.2)
self.wait(10) Click for VideoDebugCamera.mp4 |
Description of bug / unexpected behavior
If setting the distance in camera orientation too close to 3d axes
white frames are rendered and the axes are curved.
This can be bypassed by setting the distance further away
or probably with some tricks in scaling, but can be surprising and hard
to debug also.
Expected behavior
Distance of 3d camera shouldn't create rendering problems and not bend the axes.
How to reproduce the issue
Code for reproducing the problem
Additional media files
Images/GIFs
Logs
Everything goes fine even with log level debug.
System specifications
System Details
FFMPEG
Output of
ffmpeg -version
: 4.3.1The text was updated successfully, but these errors were encountered: