Previous Assignments
Roger
W. Webster, Ph.D.
Department of Computer Science
TANK WARS translation and rotation laboratory assignment:
Write an OpenGL program to move tanks (boxes) around a 3D world:

Roger
W. Webster, Ph.D.
Department of Computer Science
Radiocity Laboratory Assignment
Write an OpenGL program to create the radiocity lighting vertex colors a 3D world:

CS375 Graphics and Virtual Reality
Roger W. Webster, Ph.D.
Department of Computer Science
3D Modeling and 3D Graphics
Programming
· Read Chapters 1-5, 8 and 18 in your textbook.
· Read all the research papers and all hands outs given in class.
· Using the 3D model of a town where a pizza delivery car driving game might take place, make a 2D collision map tool.
· A 2D collision map tool is a data structure where 1 unit point on the floor is a point in the data structure. Each point has its position, whether or not there is a road, a building, a car, etc. Collision detection can then be very fast by taking your point in the ds and then comparing the neighboring points to see if you can go there (building, road, etc,). It can also be used to know where other people in the game are (influence maps). Use the MURect& GetBoundRect() call in muopengl to determine the maximum distance the entire town is, then scale in 3ds to the appropriate scale. Write the 2D collision map data structure out to a file. For any 3ds world we have a city.3ds file and the collisionmap.txt file.
· Use the 2D collision map tool (read the data structure in from file) to drive a car around the city and not be able to drive through buildings and other cars.
· Make sure your 2D collision map tool will work for any city.3ds file as long as the buildings are Y > 10.
· Add sound to the game (collision sound, driving sound, etc.).
· Add the use of a USB joystick to drive around (see demo code).
· When your car collides with a building make the haptic force feedback joystick rumble (see demo code for examples).

Roger W. Webster, Ph.D.
Department of Computer Science
OpenGL programming, write a C++ program using the MUOpenGL toolkit API to:

Roger
W. Webster, Ph.D.
Department of Computer Science

Laboratory assignment:
Write an OpenGL program to move around a 3D world:
Check the following for downloads of demos: http://cs.millersville.edu/~webster/cs375/openglstuff/
CS375 Graphics and
Virtual Reality
Roger W. Webster, Ph.D.
Department of Computer Science
Getting started: Programming 3D objects.

Good Luck!
CS375 Graphics and Virtual Reality
Roger W. Webster, Ph.D.
Department of Computer Science
Getting started: Modeling 3D objects.
Texture Mapping and Modeling in a Modeler (3D Studio Max)
CS375 Graphics and Virtual Reality
Roger W. Webster, Ph.D.
Department of Computer Science
Lab Exercise 1 -> 3D Modeling
1. Read Ch. 1-3 in your textbooks.
2. Read all the research papers and all hands outs given in class.
3. Create your dorm or apt room in 3DS Max with geometry such as: desk, bed, chair, computer, etc.
4. Add textures to the geometries so that is looks somewhat real.
5. All textures must be in tga file format (to be able to load in MUopengl toolkit).
6. The walls can be one 3D box with textures on the walls (flip normals).
7. Write a C++ program to load the room into the Muopengl application world.

Good Luck