3d tooltip

This commit is contained in:
iv_vuytsik
2025-12-05 00:17:21 +03:00
parent 2456f21929
commit 60e8ef921d
18 changed files with 382 additions and 50 deletions

View File

@@ -21,12 +21,17 @@ export default function Home() {
setError(errorMessage)
}
const handleSelectModel = (path: string) => {
console.log('Model selected:', path)
}
return (
<div className="relative h-screen">
<ModelViewer
modelPath="/models/your_model_name.gltf" //пока что передаем модель через navigation page
onModelLoaded={handleModelLoaded}
onError={handleError}
onSelectModel={handleSelectModel}
/>
{error && (