Sketchfab Forum

Camera settings via API or in uploaded 3D scene

viewer-api
api

(Mfedyukov) #1

Hi,
I see I can set up camera settings (initial camera view via Save View button and FOV) in 3D Settings interface.
It seems we can set up initial camera view and FOV via Viewer API, but it requires adding not only iframe, but also javascripts: in our integrated system we can provide only iframe, there are no ways to add any javascripts in the system.
So is there any way to set up these camera parameters either via setting the camera in uploaded FBX file, or via Data API?


#2

Hi,

At the moment, you can set a new orientation with the Data API:

https://docs.sketchfab.com/data-api/v3/index.html#!/models/patch_v3_models_uid_options

This allows you to set a new up-axis, but you cannot currently define a new camera position or FOV specifically.