You are reading Tres v1 docs. Head over tresjs.org for V2 docs.
Skip to content
On this page

useFBX

A composable that allows you to easily load glTF models into your TresJS scene.

Usage

ts
import { useFBX } from '@tresjs/cientos'

const model = await useFBX('/models/AkuAku.fbx')

Then is as straightforward as adding the scene to your scene:

html
<Suspense>
  <TresCanvas shadows alpha>
    <TresScene>
      <TresMesh v-bind="scene" />
    </TresScene>
  </TresCanvas>
</Suspense>