Consider a point that lies on a unit sphere centered at the origin. What is the unit-length surface normal of the sphere at ?
Consider the cylinder depicted here:
This cylinder has radius 1 and height 2 and is centered at the origin. Recall that in our mesh viewer, the , , and axes are red, green, and blue, respectively. Your job is to derive a conversion from parametric representation of the cylinder's shell (i.e., the round outside part, excluding the top and bottom caps) to , , cartesian coordinates. Let be the angle between the axis and the point, measured in the plane with positive angles going towards the axis. Let be distance in the direction from the bottom cap. In terms of and , give expressions for , , and coordinates of a point on the cylinder.
Starting with your OBJ file from last lecture, add texture coordinates to make the pyramid look as follows:
The texture we'll use looks like this. Notice that the coordinates of a texture map range from to , even if the texture is not square. You can get a clean, unlabeled version of the texture for testing here.
Your pyramid should be textured so the bottom appears concrete and all the sides appear to be made of brick. Each side will have identical texture to the others. Since the sides are triangular, some of the brick texture will not map to any part of the object: