From Blender to the Web
summary
Brings a Blender model into a web React app, exporting export glTF with Draco compression and loading it as a component. Uses react-three-fiber + drei + three.js inside a Canvas, adds ambient and spotlight, enables shadows (noting their heavy cost), and animates with useFrame: a sine-wave bob for Y and small rotations, plus a lerp-based lookAt to follow the mouse. Live code demo runs with minor hiccups but the model renders, lights, shadows and animation all work.
AI-written summary · about
chapters (17)
- 0:00Introduction and setup
- 1:53Why Blender and 3D
- 3:19Blender interface overview
- 5:47Render engines in Blender
- 7:11Exporting to GLTF format
- 8:35Converting GLTF to React component
- 10:01Setting up React and dependencies
- 11:05Displaying the 3D model in React
- 12:08Adding lights to the scene
- 13:53Enabling shadows in 3D
- 14:56Using a stage for lighting
- 15:40Basic animation with useFrame
- 18:50Sine wave animation for movement
- 20:35Rotating the model
- 22:01Making the model follow the mouse
- 23:44Final adjustments and scaling
- 24:25Conclusion and resources
