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

For the next part you will create a fixed scene using textures. The scene may be simply a room, or you can do something more creative as long as it fulfills the requirements below. Put your work for this section in a file called scene.html. A comment at the top of the file should include your reflections and documentation of where each requirement is met.

Requirements:

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.

A simple example image is shown below, including both tiled and 3D textures.

room

Repeating Textures

Here are some details on the tiling requirement above. 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

Your reflection must include a checklist telling me where to look for each requirement you have met.

Submit your two HTML files, a representative screenshot of your scene, and all of your texture files.