Millersville University Department of Computer Science 
Dr. Roger W. Webster

CS375 Graphics and Virtual Reality Assignments


Previous Assignments


CS375 Graphics and Virtual Reality
Laboratory Assignment Six

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:


CS375 Graphics and Virtual Reality
Laboratory Assignment Five

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:

 


Assignment Four

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).

see http://cs.millersville.edu/~webster/cs375/openglstuff/muopengltesterapps/DOTNET/

for ShellDemo and WASDdemo

Good Luck


CS375 Graphics and Virtual Reality
Laboratory Assignment Three

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

OpenGL programming, write a C++ program using the MUOpenGL toolkit API to:

Good Luck!


CS375 Graphics and Virtual Reality
Laboratory Assignment Two

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/

Good Luck


Assignment Two

CS375 Graphics and Virtual Reality
Roger W. Webster, Ph.D.
Department of Computer Science

Getting started: Programming 3D objects.

  1. Load the 3ds models for a backhoe into your opengl world
  2. Make a virtual backhoe simulator using attachments, add the dirt, and make it work!
     

Good Luck!


Laboratory Assignment One

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)

  1. Run 3D Studio Max to familiarize your self with 3D Studio (optionally create the objects specified in the 3ds max tutorial).
  2. Make a 3ds model of a series of connected rooms with texture maps.
  3. Use texture mapping to make it look photo realistic.
  4. The rooms must have 2 levels
  5. Connected rooms must be stitched together to be seamless (Boolean 2 boxes in 3ds max).
  6. Some rooms should have some object(s).
  7. At least 6 rooms.

 


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