Tải bản đầy đủ (.pdf) (10 trang)

3D Game Programming All in One- P31

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (578.61 KB, 10 trang )

Index 807
state handlers, 570
state machine, 565
statements
assigned, 52
compound, 52
defined, 52
if
nested if statements, 79–80
overview, 75–76
if-else, 76–79
return, 71
switch, 81–82
StaticShape class, 735
Statistics command (UVMapper Help menu), 408
Step control (Paint Brush tool), 295
stone textures, 275, 359
Stop tool (Audacity tool), 543
StopHeartbeat() function, 719
StopRecording() function, 720
StopServerQuery() function, 720
storms
lightning, 529–531
materials, 528–529
perfect storm effects, 532–533
rain effects, 531–532
sound effects, 524–528
straight lines, creating, 294
strategy games, 7–8
Strchr() function, 720
Strcmp() function, 720–721


string constant token, 737
strings
assignment operators, 59
concatenation operators, 59
defined, 59
double-quoted, 124
null, 255
single-quoted, 124
standard, 124
tagged, 60, 124
Stripchars() function, 721
StripMLControlChars() function, 721
StripTrailingSpaces() function, 721
Strlen() function, 721
Strlwr() function, 722
Strpos() function, 722
Strreplace() function, 722
Strstr() function, 722
environmental, 578–579
footsteps, 560–563
gunshot sound-effect waveform, 21
hardImpactSound property, 576
idle engine, 576
interface, 578–579
koob utility, 555–558
musical, 580–582
OpenAL open-source audio, 550
softImpactSound property, 576
soundButtonDown property, 580
soundButtonOver property, 580

storm effects, 524–528
utterances, 563–565
vehicle sounds, 572–578
weapon sounds, 565–572
world sounds, 559
SourceForge.net Web site, 747
SpamAlert function, 242
SpamMessageTimeout method, 242
spamming, 242
spawn point system, 609
SpawnPlayer method, 151
special characters, in find function, 37
Special Data Transfer Standard (SDTS), 367
special materials (MilkShape), 460–463
Specular & Specular Slider button (MilkShape
Materials tab), 402
speedDamageScale property, 184
Sphere button (MilkShape Model tab), 399
sphere model example, 94
Sphere tool (MilkShape), 481
Spherical unwrapping method, 413
spinRandomMax property, 601
spinRandomMin property, 601
spinSpeed property, 601
Split command (Audacity File menu), 547
split planar mapping option, 411
spread facets at poles cap mapping option, 412
spread facets at poles spherical mapping option,
413
spread of terrains, 366

SquealSound command, 619
Standard macro, UltraEdit-32, 43–44
standard strings, 124
StartGame function, 178
StartHeartbeat() function, 719
StartRecording() function, 719
Team LRN
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Index808
tagged strings, 60, 124
tags, 133
TCPObject class, 735
technological textures, 277
TellAll() function, 207
TelnetSetParameters() function, 723
Terraformer class, 735
Terrain Editor, 534–537, 590–592
Terrain Editor Settings command (Mission Editor
Edit menu), 588
Terrain File function, 537
Terrain Terraform Editor, 592
Terrain Texture Editor, 592–593
terrains, 20
blur effects, 374
covers, 369, 378–380
creating, 371–377
DEM (Digital Elevation Model), 367
external method approach to, 367
fidelity, 366
freedom of, 366

height-maps, 367–368
internal method approach to, 368
mirroring, 594
SDTS (Spatial Data Transfer Standard), 367
sizes, 377
spread of, 366
Terrain Manager, 368
TessSurface/TessShore property, 535
test editors, 31
testing
alpha test phase, 661
beta test phase, 661
gun creation, 495–496
methodologies, 660
play testing, 661
regression, 660
rock creation, 483
test harnesses, 661
tree creation
billboard trees, 489–490
solid trees, 487–488
vehicle models, 477–478
TestShape() function, 109
text
anti-aliasing, 306
fonts, 306
StrToPlayerName() function, 723
structures
bridges, 505–508
houses, 508–511

interior, 499
moving, 606
Strupr() function, 723
stub routines, 138
Style button (Materials palette), 291
Sub flag (special materials, MilkShape), 462
Subdivide 3 command (MilkShape Face menu),
394
Subdivide 4 command (MilkShape Face menu),
394
subscripts, arrays and, 59
substructures, 275–276
subtraction (-) operator, 61
Subtraction brush (Torque Map Editor, QuArK),
509
subtree control, 129, 133
superclasses, 129
support infrastructure
administrative tools, 22
auto-update programs, 22
bulletin boards, 22
databases, 22
forums, 22
Web sites, 21
surfaceOpacity property, 535
SurfaceParallax property, 535
surfaces, 94
surfaceTexture property, 535
SuSe Linux distribution, 11
switch keyword, 54, 736

switch statement, 81–82
SwitchBitDepth() function, 723
syntax highlighting, 31
T
tab character (\t), 124
tabs
Groups (MilkShape toolbox), 400
Joints (MilkShape 3D), 403
Materials (MilkShape toolbox), 400, 402
Misc (Preferences dialog box), 404
Model (MilkShape toolbox), 398–400
Viewport (Preferences dialog box), 404
Team LRN
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Index 809
Thermal Erosion function, 537
thetaMax property, 600
thetaMin property, 600
ThinkTanks, 3
Third-Person Point-of-View (3rd PPOV) games, 3
thumb widgets, 336
thunder, lightning effects, 530
tilde (~), 39, 231
Tile command (UVMapper Edit menu), 408
tiles, terrains, 365–366
tiling
images, 359–360
terrains, 369, 371
Time Shift tool (Audacity toolbar), 543
timeMultiple property, 599

times property, 601
TireEmitter command, 618
Toggle Camera command (Mission Editor Cam-
era menu), 589
Toggle3rdPPOVLook function, 175
ToggleFullScreen() function, 723
ToggleInputState() function, 724
ToggleMessageBox function, 637
ToggleNPatch() function, 724
ToggleState method, 655
tokens, 737
Tool Bar, Torque GUI Editor, 347
toolbox, MilkShape
Groups tab, 400–401
Joints tab, 403
Keyframer tool, 403–404
Materials tab, 400, 402
Model tab, 398–400
tools
assemblers, 46
as support infrastructure, 22
Tools command (UVMapper Edit menu), 408
Tools menu (Milkshape 3D), 395
top-down approach, problem decomposition, 66
top property, 164
top view, MilkShape 3D, 382
topographical shape mapping, 417
Torque
Torque Game Engine
3D world rendering system, 26

bandwidth strategies, 28
bitmap support, 25
console library, 24
kerning, 306
leading, 306
Texture Browser Button button (MilkShape
Materials tab), 402
Texture button (Materials palette), 291
Texture Coordinate Editor command (MilkShape
Window menu), 397
Texture Coordinate Editor dialog box, 494–495
Texture Coordinate Editor (MilkShape), 406
texture mapping, Texture Coordinate Editor
feature, 406
textured polygon rendering, 16
textureName property, 601
textures. See also skins
brick, 359
cloud, 522–523
discussed, 20
distant objects, 278
fabric, 362
files, saving, 284–285
glass, 278
irregular, 360
metal, 277
metallic, 362
as mood alteration, 351
patterned, 362
pebbled, 361

plastic, 362–363
reflective, 362
rock, 276
rough, 361
scaling issues, 358–359
seamless, 397
sidewalk, 281–283
sky, 276–277
smooth, 361
sources for
artwork, 357–358
photography, 352
stone, 275, 359
substructures, 275–276
technological, 277
terrain accents, 277
texture mapping, 275
vehicle, 278
water, 276
wooden, 275, 279–281, 361
The Incredible Machine series, 6
Team LRN
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.
Index810
translations
overview, 97
programmed movement, 107–111
simple direct movement, 105–106
transparency, 289
Transparency Slider button (MilkShape Materials

tab), 402
Transparent button (Materials palette), 291
trees, creating
billboard trees, 488–490
discussed, 483
solid trees, 485–488
Tribes 2, 17
Trigger class, 735
trigger events
animation, 209–210
area, 209
creating, 620–621, 623
kill tracking, 629–630
onEnterTrigger, 621
onLeaveTrigger, 621
onTickTrigger, 621
player event control, 210–211
scoring
CheckProgress method, 624
coins, 625–627
deaths, tracking, 628–629
DoScore method, 624
laps and checkpoints, 622–625
SetImageTrigger method, 629
TriggerData class, 735
Trim() function, 724
true keyword, 54, 736
Tubetti Enterprises, 4
Turbolinux distribution, 11
Turbulence function, 537

Turn Edge command (MilkShape Face menu), 394
type property, 551
U
U-V Coordinate Mapping, 309–310
UEPM (UltraEdit Project Maker), 32
UltraEdit-32
bookmark capabilities, 41
configuring, 33–35
discussed, 31
Find in Files feature, 38
control flow, 23
extrapolation strategies, 28
input model, 24
installing, 29
interior library, 27
interpolation strategies, 28
networking design, 27–28
platform layer, 23
prediction strategies, 28
resource manager, 25
script code fragment example, 17–19
shapes and animation, 27
simulation, 24
strings, 124
terrain library, 26–27
Torque Script console language, 24
utility functions, 25
Torque GUI Editor
Content Editor, 345–346
Control Inspector, 347

Control Tree, 346
creating interfaces using, 348–349
keyboard commands, 348
launching, 345
Tool Bar, 347
Torque Map Editor (QuArK)
Cube brush, 505
Portal brush, 510
Roadbed brush, 506
Subtraction brush, 509
Torque-related Web sites, 741–742
torso
character models, 423–430
skeletal animation, 448–450
total frames box (Keyframer tool), 404
totalizers, 63
Trace() function, 141, 724
Track Delete tool (Audacity tool), 544
Track menu (Audacity tool), 544
Track Panel tools (Audacity tool), 544
Track Types (Audacity tool), 544
transformation
full, 97
getTransform() method, 109
overview, 95
rotation, 96
scaling, 96
translation, 97
Team LRN
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.

Index 811
unwrapping methods
Box method, 409, 411
Cylindrical, 409, 412
Cylindrical Cap method, 410, 412
list of, 407
Planar method, 409, 411
Spherical method, 413
V
ValidateMemory() function, 724
variable property, 341, 344
variable token, 737
variables
case-sensitivity, 54
defined, 53
identifiers, 54
keywords, 53
member, 127
vector images, 288–289
vector layers, 291
vector triplets, 97
VectorAdd() function, 725
VectorCross() function, 725
VectorDist() function, 725
VectorDot() function, 725
VectorLen() function, 725
VectorNormalize() function, 726
VectorOrthoBasis() function, 726
VectorScale() function, 726
VectorSub() function, 726

vehicle models
body of vehicle, 467–472
collision mesh, 476
collisions, 612–613
fenders, 473–474
mount nodes, 475–476
mounting, 611
sketches, 466–467
skins, 476
sounds, 572–578
testing, 477–478
textures, 278
WheeledVehicleData property, 618–619
wheels, 476–477
velocity property, 599
velocityVariance property, 600
Vertex button (MilkShape Model tab), 399
Vertex menu (MilkShape 3D), 391, 393
grep command capabilities, 39–41
Help feature, 45
installing, 32
macro commands, 43
program setup, 32
Project Setup dialog box, 35
projects and files, setting up, 32
search capabilities, 35–37
UEPM (UltraEdit Project Maker), 32
UltraEdit Project Maker (UEPM), 32
underscore (_), 53
Undo command (Edit menu)

Audacity tool, 547
MilkShape, 392
Mission Editor, 588
Unfloat Palette command (Audacity View menu),
547
Unhide All command (MilkShape Edit menu), 392
Unix-style syntax, search capabilities, 40–41
Unlock Selection command (World menu), 590
unmounting, dismounting, 615–616
Unreal II, 17
Unreal Tournament command (MilkShape Tools
menu), 395
Unweld command (MilkShape Vertex menu), 393
Unweld Radial command (MilkShape Vertex
menu), 393
Update method, 650
UpdateLap method, 621
UpdateLightingProgress function, 266
updates, for loop, 66
Usage() function, 138
UseDepthMask property, 535
useEmitterColors property, 600
useEmitterSizes property, 600
useInvAlpha property, 601
user ID lists, 255
utility functions, Torque Game Engine, 25
utterances, sound effects, 563–565
UV unwrapping, 309–310, 386
UVMapper tool
discussed, 386

hot keys, 410
menus
Edit menu, 407–408
File menu, 407
Help, 407, 409
OBJ export options values, 388
overview, 406
Team LRN
Please purchase PDF Split-Merge on www.verypdf.com to remove this watermark.

×