Skip to content

Add option to disable perspective in 3d plots - #540

Merged
nvaytet merged 6 commits into
mainfrom
perpective-in-3d-plots
Mar 5, 2026
Merged

nvaytet merged 6 commits into
mainfrom
perpective-in-3d-plots

Conversation

@nvaytet

@nvaytet nvaytet commented Mar 4, 2026 •

Copy link
Copy Markdown
Member

Using perspective=False will replace the default PerspectiveCamera with an OrthographicCamera, where everything is parallel along the line of sight.

Screenshot_20260304_205908



Note:
It was not trivial to toggle perspective or none via a button click in the toolbar because in pythreejs, once a camera is added to a renderer, it is not easy to replace it with another.
So we left this functionality out, and just rely on the kwarg at construction.

Fixes #536

@ikibalin

@nvaytet
nvaytet merged commit bdd88c1 into main Mar 5, 2026
4 checks passed
@nvaytet
nvaytet deleted the perpective-in-3d-plots branch March 5, 2026 08:14
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

Successfully merging this pull request may close these issues.

Allow orthographic projection in 3d scenes

2 participants