Ask Your Question
2

Changing the zoom argument in tachyon plots is moving the graphics objects being shown. Why?

asked 2022-02-24 14:45:55 +0200

I have a plot I'm working on. It looks the way I want when I plot it with the tachyon renderer, but its a bit small. When I zoom in the object moves to the side, and I have to axes on, so I can see that the object have actually moved relative to the origin. How is this possible? It makes no sense.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
3

answered 2022-02-25 17:21:37 +0200

Sébastien gravatar image

Few years ago, I was also surprised by the behavior of Graphics3dobjects with respect to the coordinate system used in the tachyon output. I wanted to move the camera on a circle around a 3d object. It was just impossible. I found another way (rotating the object): the video I made is available at https://en.wikipedia.org/wiki/Dancing... on which you can see the wiggle in the camera because of the way Graphics3d object are turned into Tachyon string and how the camera is placed.

This is because of the _prepare_for_tachyonmethod of a Graphics3D (https://git.sagemath.org/sage.git/tre...) object which basically change the coordinate system to make sure the camera is placed and zoom in a way that we always see the object. I never like that choice because the coordinate system in the tachyon string is not the same as the one defining the Graphics3d. Also, there is no way to place camera else where, and adding an argument to the user to place the camera is just impossible since we don't know the new coordinate system.

If you want to improve this code in sage, I will be willing to review your changes.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2022-02-24 14:45:55 +0200

Seen: 208 times

Last updated: Feb 25 '22