Hi,
I am new at this but I think I have not seen any topic like this.
Is is possible to fix the camera in a position and change the target with the mouse. Like in VR.
Thanks in advance.
Hi,
I am new at this but I think I have not seen any topic like this.
Is is possible to fix the camera in a position and change the target with the mouse. Like in VR.
Thanks in advance.
There is no first person navigation mode in the platform yet but you can develop any custom functionality in the JavaScript application. This API call updates camera position and target:
api.scene.camera.updateAsync({
position: {
x: 0,
y: 0,
z: 1.5
},
target: {
x: 0,
y: 1,
z: 1.8
}
})
See more in the API Reference:
https://viewer.shapediver.com/v2/2.27.0/doc/module-CameraApi-CameraApi.html#updateAsync