Course lesson
Connect a TresJS Model with Vue State
In this TresJS lesson you will see how to connect a 3D model to your application state. You'll learn to:
- Duration
- 3 min
- Access
- Included
- Transcript
- Retained from source evidence
In this TresJS lesson you will see how to connect a 3D model to your application state. You'll learn to:
- Access your model's material colors using the
materialsproperty fromuseGLTF - Use Vue's
watchfunction to update the model's colors when the user changes the selection in the UI
This allows you to create an interactive 3D experience that responds to user input.