CS458 program 1

house built using a range of techniques

Write a program and data to create a small house. One wall is to be textured mapped with a picture of you or other externally entered picture. One Wall is to be color mapped with the function f(x) = x * sin(x). In front of the house and to its right should be your initials, in large letters. In front of the house and to its left should be your name and "PROGRAM 1" and the month/day/year you wrote the program. The special items, images and function maps, can be placed next to the walls of the house, rather than be integrated into the wall.

Turn is a listing of the c++ program and a printout of the image. See Writing a VTK Program, Running a VTK Program and Turning in a PROGRAM for help.

All of the VTK material can be found in ~juell/vtk312 on the sod cluster.

An example of showing text is alphaFreq.cxx. Be sure to run the program to see how it works. To run this program, you will need to supply a file with text in it.
e.g.
alphaFreq some-file

Examples of displaying an object with a texture map can be found in TPlane.cxx. I have copied TPlane.cxx to temp.cxx and changed the image reference to a local image file (s-s55.ppm).