diff --git a/README.md b/README.md index 60046e33d..b32745ee8 100644 --- a/README.md +++ b/README.md @@ -16,8 +16,21 @@ $ yarn dev $ yarn build ``` +## planet + +- deploy : [https://card.syui.ai/planet?g=sun](https://card.syui.ai/planet?g=sun) +- ref : [https://git.syui.ai/ai/star/galaxy-react](https://git.syui.ai/ai/star/galaxy-react) + +``` +$ cd planet +$ npm i +$ npm run start +``` + ## min-react +three-vrm v3 + vrm(unity + vrm v1.0) + anim(vrma) + ``` $ cd min-react $ npm i @@ -33,3 +46,5 @@ $ cd min-ts $ yarn install $ yarn dev ``` + + diff --git a/planet/src/pages/vrm_model.tsx b/planet/src/pages/vrm_model.tsx index 65b2a0429..e8432a9ab 100644 --- a/planet/src/pages/vrm_model.tsx +++ b/planet/src/pages/vrm_model.tsx @@ -62,7 +62,7 @@ interface ModelGlbProps { scale?: number } -const GlbModel: React.FC = ({ url = "./models/solar_system_animation.glb", position = [0, 0, 0], scale = 1, rotation = [0, 0, 0] }) => { +const GlbModel: React.FC = ({ url = "./models/solar_system.glb", position = [0, 0, 0], scale = 1, rotation = [0, 0, 0] }) => { const { scene } = useGLTF(url) scene.scale.setScalar(scale); scene.position.set(...position); @@ -155,7 +155,7 @@ export function Galaxy(props: JSX.IntrinsicElements['group']) { {g === 'sun' && } - {g === 'galaxy' && } + {g === 'galaxy' && }