We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
It doesn't seem possible to set the 3D camera field of view (fov).
(Re: my post to Stackoverflow.)
Looking at the source code, I see that:
In https://github.com/plotly/plotly.js/blob/master/src/plots/gl3d/scene.js, it uses glPlot3d.createScene and sets the options in proto.prepareOptions.
glPlot3d.createScene
proto.prepareOptions
In https://github.com/gl-vis/gl-plot3d/blob/master/scene.js#L179, the allowed options include the field-of-view parameter fovy (field-of-view in the vertical direction), which defaults to Math.PI/4 (45 degrees).
fovy
Math.PI/4
For 3D graphics, a 45-degree vertical field-of-view typically gives an exaggerated perspective. It corresponds to about a 28mm camera lens.
It would be nice for plotly.graph_objects.layout.scene.Camera to include a fovy parameter (in radians).
plotly.graph_objects.layout.scene.Camera
The text was updated successfully, but these errors were encountered:
Is there any way to hack this for the moment? Cheers
Sorry, something went wrong.
No branches or pull requests
It doesn't seem possible to set the 3D camera field of view (fov).
(Re: my post to Stackoverflow.)
Looking at the source code, I see that:
In https://github.com/plotly/plotly.js/blob/master/src/plots/gl3d/scene.js, it uses
glPlot3d.createScene
and sets the options inproto.prepareOptions
.In https://github.com/gl-vis/gl-plot3d/blob/master/scene.js#L179, the allowed options include the field-of-view parameter
fovy
(field-of-view in the vertical direction), which defaults toMath.PI/4
(45 degrees).For 3D graphics, a 45-degree vertical field-of-view typically gives an exaggerated perspective. It corresponds to about a 28mm camera lens.
It would be nice for
plotly.graph_objects.layout.scene.Camera
to include afovy
parameter (in radians).The text was updated successfully, but these errors were encountered: