donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.09k stars 534 forks source link

Incorrect camera view #307

Closed prajwalshelar closed 1 year ago

prajwalshelar commented 1 year ago

Hello, I am exporting camera views in glTF from my application. But I don't get the expected views in the viewer. I have added added a single orthographic camera in it. For the camera position, I have added the 'translation' property in the node which references the camera. These are actually the coordinates of the 'eye' of the camera obtained from my application. Is this the correct way?or Am I missing something here? Attached gltf file, expected and result views. ChairCamView.zip Thanks, Prajwal

donmccurdy commented 1 year ago

Hi! The result is the same in any glTF viewer; it appears that this model is not correctly set up to give the result in your 'expected' image. Continuing discussion in https://github.com/KhronosGroup/glTF/issues/2202