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

render with GLTF Camera not work #313

Open wasabia opened 1 year ago

wasabia commented 1 year ago

select Camera001_Orientation

https://raw.githubusercontent.com/wasabia/three_dart_example/main/untitled.glb

donmccurdy commented 1 year ago

Comparing in Blender and https://sandbox.babylonjs.com/, it doesn't seem to me like this camera is in the correct orientation:

Screen Shot 2022-09-27 at 9 00 12 AM
wasabia commented 1 year ago

image

image

image

blender and babylonjs vs three-gltf-viewer

@donmccurdy

donmccurdy commented 1 year ago

Thanks! I'll reopen this. I'm not sure what's happening yet, and whether it's a bug in the viewer, three.js, or simply a difference in adapting the glTF camera aspect ratio to the actual aspect ratio of the page.