Open hhoppe opened 1 year ago
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
Is there any way to hack this for the moment? Cheers
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).