3D Modeling

Shapes and Materials

THREE.BoxGeometry(width, height, depth) makes a box shape. THREE.MeshStandardMaterial({ color, roughness, metalness }) makes a realistic, light-reacting material — roughness controls how blurry reflections look (0 = mirror-sharp, 1 = chalky), metalness controls how metallic it looks (0 = plastic/matte, 1 = metal).

A Mesh combines the two: new THREE.Mesh(geometry, material). Without at least one light in the scene, a MeshStandardMaterial renders pitch black — materials need light to bounce off of.

Your turn

Change the box's color, roughness, and metalness, and try swapping BoxGeometry for THREE.SphereGeometry(radius, widthSegments, heightSegments) instead.

Output shows up here when you Run.
Ask JARVIS for a hint