Texture Assignment
Required Figure
- Texture-map some textures on the walls and roof of the barn. Use wood
or brick or some kind of reasonable "wall-like" material for the sides,
and similarly for the roof.
- Note that the front and back of the barn are pentagons. You'll have
to figure out the best way to deal with that.
- Use the "modulate" mode for the surfaces and put a light in your scene
so that you can see the interaction of lighting with texture-mapping.
- Don't forget the surface normals for the faces of the barn!
- If you'd like, you can texture-map, using "decal," on one face of the
barn, just for fun. You won't have to worry about surface normals on this
unlit face.
Your target is:
~cs307/pub/assignments/texture-barn
Things to note about the barn:
- You can toggle texture-mapping to see the underlying shading by using
the "t" key.
- If you like my textures, you can use the ones in that directory
(siding*.ppm and roofing*.ppm). I just found them online using a Google
search for images; you can probably find better ones.
Please name your finished program texbarn.cc and drop it using
the "drop" command.
Remember: When you drop this assignment, you must also drop the
textures you used, unless you use ones from the tw/textures/
directory.
Creative Figure
Create a scene, or modify some existing scene from your semester
project, so that there are some texture-mapped surfaces. I'd like you to
use material and lighting and I'd like to see examples of both decal and
modulate, since the latter is pretty interesting to try to control. A
really good project would also load several textures and use binding.
Remember: When you drop this assignment, you must also drop the
textures you used.
Written by Scott D. Anderson
scott.anderson@acm.org

This work is licensed under a Creative Commons
License.