Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions website/src/components/CubeModel.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
import useBaseUrl from '@docusaurus/useBaseUrl'
import { useGLTF } from '@react-three/drei'
import React, { useRef } from 'react'
import React from 'react'

export const CubeModel = ({ props }) => {
const group = useRef()
const gltfPath = useBaseUrl('/model/toiocorecube_v003.gltf')
const { nodes, materials } = useGLTF(gltfPath)
const glbPath = useBaseUrl('/model/toiocorecube_v003.glb')
const { nodes, materials } = useGLTF(glbPath)
return (
<group ref={group} rotation={[Math.PI / 2, 0, Math.PI / 2]} {...props} dispose={null}>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

この ref は使っていなかったので削除

<group rotation={[Math.PI / 2, 0, Math.PI / 2]} {...props} dispose={null}>
<mesh
castShadow
receiveShadow
Expand Down
2 changes: 1 addition & 1 deletion website/src/components/ModelDownloadButtonGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import styles from './ModelDownloadButtonGroup.module.css'
const MODEL_LIST = [
{ label: 'FBX', path: '/model/toiocorecube_v003.fbx' },
{ label: 'OBJ', path: '/model/toiocorecube_v003.obj.zip' },
{ label: 'GLTF', path: '/model/toiocorecube_v003.gltf' },
{ label: 'GLTF', path: '/model/toiocorecube_v003.glb' },
{ label: 'STL', path: '/model/toiocorecube_v001.stl' },
{ label: 'STP', path: '/model/toiocorecube_v001.stp' },
]
Expand Down
Binary file added website/static/model/toiocorecube_v003.glb
Binary file not shown.