Project 2: Advanced Computer Graphics: a simple example
Reference for this project:
Chapter 2 (Link to page of draft book
chapter.)
WARNING:
Due to some complexities in our
afs filesystems, you may have to re-open any of
your game files using the path:
"U:/pc/win_data/whoever'sDocuments/mydirectory/"
instead of from the "MyDocuments"
folder. Otherwise you may find that you get an
error such as "damaged at line -1"
when trying to open the file. So, it may be safest
to always open and save files in
"U:/pc/win_data/whoever'sDocuments/mydirectory/ "
instead of "MyDocuments." It
may be necessary to adjust/add your wdl script path such as:
path "U:\\pc\\win_data\\my
documents\\3dGameStudio07\\p7"; // Path to game
directory
- On the university filesystem, check the location
I:\apps\winnt\3DGStudio\3DGStudio
- Make a directory ~/video/project2 in your home directory
- Copy the xhero.mdl file to your
directory and use it for your player. (You may need to press the
control or shift key on your browser when clicking the link, to force
the file to download.)
- Run the level editor (or world editor, WED) from the MOSAIC menu:
- 3dGamestudio->LevelEditor
- From the menu bar begin a new level (or world):
- Save the file at this point (otherwise the next step may not work)
- File->Save ~/video/project1/game1/game1.wmp
- Create a new script for your new level
- File->MapProperties->Script
- Use the NewScriptButton in the
pop-up
- And select the _A6TemplateProject
- Ceate a floor upon which your player will stand:
- Object->AddPrimitive->Misc->PlateLarge
- Add standard textures to your project by selecting the Presets
Tab in the Project Panel, right-click the
texture folder, and select Add WAD. In the pop-up menu, select the
standard.wad.
- Add a texture to your PlateLarge
Select the plate (use the select button to set
your mouse into select mode). When the plate is selected it
should be surrounded by a red box outline.- Click on the textures
Tab .
- Click on the standard.wad button .
- DoubleClick the stone blocks texture to result in the following
textured PlateLarge:
- Insert a model for your player
- Object->LoadEntity
~/video/project1/game1/extramodels/hero.mdl
- Position him so that his feet rest on the plate using
the
move button as below:
- Add the "Player Biped" Script to your hero
model.
- Add this by using the MenuBar->File->ProjectManager
command, selecting the Add Tab, choosing the
BipedPlayer01 script from the dropdown script selection menu, and
finally clicking the
AddScript button.
- Attach "PlBiped01" player-biped action to theplayer model. First
Select the hero, then
- Right-click mouse->Properties
- Select Behavior tab in popup
- Select the file folder icon in the
"Action" field of the popup
- Add a "3rd Person Camera" Script
- Add this by using the MenuBar->File->ProjectManager
command, selecting the Add Tab, choosing the
3rdPersonCamera01 script from the dropdown script selection menu,
and finally clicking the
AddScript button.
- Rebuild level (and rebuild/ Update
Entities)
- and Run with run button .
- Hopefully you will see your first "game" as below:
- Most likely the default game will be too dark. To brighten the
game,
run the command MenuBar::File::MapProperties and select the SunTab in
the popup. Set the sun level to (192, 192, 192) in the pop-up window.
The azimuth and elevation of the sun should remain the default values
of 0 and 60 degrees. Also, set the ambient lighting level for the game
to (128, 128, 128). Rebuild and rerun the game.
Report and demonstration:
- Prepare a 6-page report exactly in the following format;
- Cover sheet with names
- 1 Page summary of project
- 1 Page Printout of first page of game1.wdl
- 1 Printout of level in WED
- 1 Page Printout of your gamescreen (with brigher ambient
settings)
- 1 Page Short answers to the following questions:
- What company created Wolfenstein and DOOM, and what year was
Wolfenstein released?
- What CPU is used in the Xbox, and what is the CPU clock
speed and how many bits?
- The Xbox 360 console has three procesors; what company
is making the new processor, and what is the clock speed?
- What clock speed is the emotion engine CPU of the PS2, and
how many bits?
- The new PS3 console will use a Cell Processor with 7 SPUs
(synergistic processing elements); what is the clock speed and how many
bits wide are the SPEs?
- What is a DOOOM WAD file?
- What computer language is the source code for the Torque
game engine in, and what computer language is the source code for the
OGRE game engine in?
- Can Autodesk 3DS Max software be used to create animated
models (Yes/No), and can Alias Maya software be used to create animated
models (Yes/No)?
- What is Milkshape3D software for?
- A BSP Tree results from subdividing a gamespace into smaller
partitions. What do the initials BSP stand for?
- Demonstration
- Show your final game
- Show your game1.wdl code
Copyright © 2005 - 2007 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.