Project 5: Geometry Primitives Showcase
3D Engineer
Builds on these lessons
Step 1 of 2
Project
Different Geometry Types
boxGeometry and sphereGeometry are two of Three.js's built-in shape primitives — each takes different constructor arguments.
🎯 Your Task
Please add the exact code shown in the light gray box below to your editor.Do not delete your previous code, just insert these new lines in the correct place!
export default function Scene() {
return (
<Canvas>
<ambientLight intensity={0.6} />
<mesh position={[-2, 0, 0]}>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color="orange" />
</mesh>
<mesh position={[0, 0, 0]}>
<sphereGeometry args={[0.7, 32, 32]} />
<meshStandardMaterial color="skyblue" />
</mesh>
</Canvas>
);
}