Course Links

Resources

External

The goal of this homework is to practice texture mapping in 3D.

Octahedron

Building on Lab 10, first create a regular octahedron (from scratch -- you may not use the built-in octahedron geometry for this homework) and then texture map it using the texture below:

octahedron label texture

Requirements:

Textured Scene

In the next part we will create a fixed "room" or "scene" using textures. You may include the octahedron in the scene, or do this portion in a separate file. First make a "floor" similar to the one shown below (octahedron not shown). You may need some transformations to move the floor to the correct spot. Then make the "walls" or "background". Finally, you could create a "ceiling" or "sky" (not shown). Alternately, you can add a "skybox" around the whole scene.

Feel free to use your imagination here to create a scene that is visually interesting, perhaps including objects or a more complicated structure than a simple box. Work that goes beyond the basic requirements listed here may be considered for extra credit.

Requirements:

An example image is shown below, omitting the octahedron.

room

Repeating Textures

For a large region, usually we want to "tile" the texture instead of using one scaled image. To do this, we can set the repeat number of the texture in each direction (u and v). Example code is shown below:

var loader = new THREE.TextureLoader();  // don't repeat this if you've already done it
var texture = loader.load( 'mytexture.jpg' );
texture.wrapS = THREE.RepeatWrapping;
texture.wrapT = THREE.RepeatWrapping;
texture.repeat.set( 2, 3 ); // twice in u and three times in v

Completion

Include a checklist in a comment at the top of your file telling me where to look for each requirement you have met.

Submit your html file, a representative screenshot of your scene, and all of your texture files.