From d46b5ca3d633232f70d273acfd0d46ecd3597cb2 Mon Sep 17 00:00:00 2001 From: crosstyan Date: Wed, 26 Mar 2025 10:19:35 +0800 Subject: [PATCH] Update Z-up to Y-up conversion matrix in App.tsx to correct axis orientation. Remove default camera view rendering from Scene component to streamline camera setup. --- src/App.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 74903a4..d2391ba 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -24,8 +24,8 @@ const CV_TO_GL_MAT = new THREE.Matrix4().set( // Z-up to Y-up conversion matrix // Rotate -90 degrees around X axis to convert from Z-up to Y-up const Z_UP_TO_Y_UP = new THREE.Matrix4().set( - 1, 0, 0, 0, - 0, 0, 1, 0, + -1, 0, 0, 0, + 0, 0, -1, 0, 0, -1, 0, 0, 0, 0, 0, 1 ) @@ -210,7 +210,6 @@ const Scene = () => { const far = (1 / fov_x) * 20 return })} - ) return (