Project 8: Advanced Computer Graphics: Lighting, doors, triggers, and lifts
Reference for this project:
Chapter 9
- Save the pieces of the project so you can later demonstrate
each one
- Make a directory ~/video/project8 in your home directory
Static Lighting
- In
game design, lighting is often one of the most important effects
imparting realism to a game.
- Take
a level from a previous project and:
- Add a static light and a cube to a room interior
- Demonstrate that the cube casts a shadow on the floor
- Demonstrate that the light fades along the wall
Figure
1. Static lighting with shadow on floor.
Windows with sunlight
- Take
level and:
- Add window cuts in a wall
- Add an exterior hollow cube with sky texture
- Add sky01.wdl
- Adjust the sun azimuth so that the sun comes through windows
- Demonstrate that the sun through windows shines on the floor
- Demonstrate that the sky and mountains are visible through the
windows
- copy Sky01.wdl to your home directory and mountain (from
template_6/code)
- rename mountai to mountain.tga
- edit Sky01.wdl to chaning mount16.pcx to mountain.tga)
Figure
2. Windows with sunlight on floor.
Sliding Doors
- Create
a sliding door between 2 rooms in a level.
- Take
a level from a previous project or create a new level
- Add a sliding door between the 2 rooms
- Use a box mounted in the wall for the trigger, and make sure it
protrudes on both sides of the wall
- Use the metalribbed5
texture for the door (scaled down as described in the book)
- The
final door should look like Fig. 3 below
- Add
a player and 3rd person camers
- Build
and test the door.
Figure
3. Metal sliding door with switch/trigger box.
Lifts
- Take
the previous sliding door example and convert the door to a lift
- Rotate the door and place it on the floor
- Make sure to unclick IgnoreMap
- Have the lift rise 40 to 50 quants
- Build and test the lift, your player should be able to ride the
lift
Report and demonstration:
- Prepare a 10-page report exactly in the following format;
- Cover sheet with names
- 1 Page summary of project<>
- <>1 Page Printout
from running game as in Figure 1 above<>
- <>Printout from WED showng the light location for Fig.
1<>
- <>1 Page Printout from running game <>as in
Figure 2 above.<>
- <>Printout from WED showng the Exterior room and windows
corresponding to Fig. 2
- 1 Page Printout from running game
as in Figure 3 above with door closed
- 1 Page Printout from running game
as in Figure 3 above with door open
- 1Page Printout from running game showing lift on floor
- Shadow cast as in Fig 1
- Shadow cast, windows, and mountains as in Fig 2
- sliding door
- lift
Copyright © 2005 by Thomas Paul Weldon
ACKNEX,
WED, MED, and 3D GameStudio are trademarks of Conitec Corporation.
Microsoft, DOS, MS-Dos, Windows, DirectX,
Halo, and
Direct3D are trademarks of Microsoft, Inc.
PAC-MAN trademarks or registered trademarks of Namco Limited
Nintendo, Mario, are trademarks of Nintendo
Atari, Pong, are trademarks of Atari
Intel, 8086, are trademarks of Intel Corporation
id, DOOM, and Quake are trademarks or registered trademarks of Id
Software, Inc.
Autodesk, 3D Studio, and 3ds Max are trademarks or registered
trademarks of Autodesk, Inc.
Alias and Maya are trademarks or registered trademarks of Alias Systems
Corp.