Project 3: Camera Framing Demo
3D Engineer
Builds on these lessons
Step 1 of 2
Project
Positioning the Camera
Canvas accepts a camera prop controlling where you're viewing the scene from and its field of view (fov).
🎯 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 camera={{ position: [0, 0, 5], fov: 50 }}>
<ambientLight intensity={0.6} />
<mesh>
<boxGeometry args={[1, 1, 1]} />
<meshStandardMaterial color="orange" />
</mesh>
</Canvas>
);
}