1. Trang chủ
  2. » Công Nghệ Thông Tin

3D Game Programming All in One- P31

10 352 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề 3D Game Programming All in One- P31
Chuyên ngành 3D Game Programming
Định dạng
Số trang 10
Dung lượng 578,61 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

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

Trang 1

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

Trang 2

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

Trang 3

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

Trang 4

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

Trang 5

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

Trang 6

Weld Together command (MilkShape Vertex menu), 393

WheeledVehicleData properties, 618–619 WheelImpactSound command, 619 wheels, vehicle models, 476–477 while keyword, 54, 736

while loop, 64–65 white space, 86, 645 widgets, 336 width property, 164 wildcards, search capabilities, 36 willFirstRespond property, 225, 342–343 wind, cloud layers, 521

windCoefficient property, 601 windEffectPrecipitation property, 521 Window menu (MilkShape 3D), 397 Windows operating system, 8, 10 windVelocity property, 521

Winter, David A (Maximum Football), 7

wooden textures, 275, 279–281, 361 working environment, MilkShape 3D, 382 World Editor Settings command (Mission Editor Edit menu), 588

World menu (World Editor), 590 world objects, 26

world sounds, 559 world space, coordinate systems, 91 world units (WU), 378

World War II Online, 22

WorldEditor class, 735 Wotsit's Format Web site, 747

WU (world units), 378

X

XYZ-axis system, 90–93

Z

z-flat shading, 99 Zoom In command (Audacity View menu), 547 Zoom Normal command (Audacity View menu),

547

zoom options, MilkShape 3D, 383 Zoom Out command (Audacity View menu), 547 Zoom tool (Audacity toolbar), 543

vertex shaders, 101 Vertex tool (MilkShape), 488 vertSizing property, 164 VideoSetGammaCorrection() function, 260, 726 View menu (Audacity tool), 545, 547

Viewport tab (Preferences dialog box), 404 Viewports command (MilkShape Window menu),

397

visibility tracks, animation, 27 visible property, 339

visibleDistance property, 520 volume control, Audacity tool, 541 volume property, 551

volumetric fog, 523 vScrollBar property, 225, 343

W

Wahwah command (Audacity File menu), 549 walk animation sequence, torque-supported, 444 Warn() function, 83, 727

warped images, 518 water block effects, 533–534 water textures, 276 WaterBlock class, 735 waterfall effects, 602–604 waveforms, sound effects, 21 WeaponImage function, 570 weapons

control/server/weapons/crossbow.cs module, 190–197

control/server/weapons/weapon.cs module, 186–190

gun creation model building, 490–494 skins, 494–495

testing, 495–496 sound effects, 565–572

Web sites

game development, 743–747 GarageGames, 27

Linux tool sources, 749 Macintosh tool sources, 749

as support infrastructure, 21 Torque-related, 741–742

Trang 7

GOT GAME?

COMING SPRING 2004!

Call 1.800.354.9706 to order

Programming Role Playing Games with DirectX, 2nd Edition 1-59200-315-X $49.99

Beginning C++

Game Programming 1-59200-205-6 $29.99

The Dark Side

of Game Texturing 1-59200-350-8 $39.99

Shaders for Game Programmers and Artists 1-59200-092-4 $39.99

PHP Game Programming 1-59200-153-X $39.99

Trang 8

Take Your Game to the

XTREME!

Xtreme Games LLC was founded to help small game developers

around the world create and publish their games on the commercial market Xtreme Games helps younger developers break into the field

of game programming by insulating them from complex legal and business issues Xtreme Games has hundreds of developers around the world If you’re interested in becoming one of them, then visit us

at www.xgames3d.com.

www.xgames3d.com

Trang 10

By opening the sealed disc container in this book, you agree to the following terms and con-ditions If, upon reading the following license agreement and notice of limited warranty, you cannot agree to the terms and conditions set forth, return the unused book with unopened disc to the place where you purchased it for a refund

License:

The enclosed software is copyrighted by the copyright holder(s) indicated on the software disc You are licensed to copy the software onto a single computer for use by a single user and to a backup disc You may not reproduce, make copies, or distribute copies or rent or lease the software in whole or in part, except with written permission of the copyright hold-er(s) You may transfer the enclosed disc only together with this license, and only if you destroy all other copies of the software and the transferee agrees to the terms of the license You may not decompile, reverse assemble, or reverse engineer the software

Notice of Limited Warranty:

The enclosed disc is warranted by Course PTR to be free of physical defects in materials and workmanship for a period of sixty (60) days from end user’s purchase of the book/disc combination During the sixty-day term of the limited warranty, Course PTR will provide a replacement disc upon the return of a defective disc

Limited Liability:

THE SOLE REMEDY FOR BREACH OF THIS LIMITED WARRANTY SHALL CONSIST ENTIRELY OF REPLACEMENT OF THE DEFECTIVE DISC IN NO EVENT SHALL COURSE PTR OR THE AUTHOR BE LIABLE FOR ANY OTHER DAMAGES, INCLUDING LOSS OR CORRUPTION OF DATA, CHANGES IN THE FUNCTIONAL CHARACTERIS-TICS OF THE HARDWARE OR OPERATING SYSTEM, DELETERIOUS INTERACTION WITH OTHER SOFTWARE, OR ANY OTHER SPECIAL, INCIDENTAL, OR CONSEQUEN-TIAL DAMAGES THAT MAY ARISE, EVEN IF COURSE PTR AND/OR THE AUTHOR HAS PREVIOUSLY BEEN NOTIFIED THAT THE POSSIBILITY OF SUCH DAMAGES EXISTS

Disclaimer of Warranties:

COURSE PTR AND THE AUTHOR SPECIFICALLY DISCLAIM ANY AND ALL OTHER WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING WARRANTIES OF MER-CHANTABILITY, SUITABILITY TO A PARTICULAR TASK OR PURPOSE, OR FREEDOM FROM ERRORS SOME STATES DO NOT ALLOW FOR EXCLUSION OF IMPLIED WAR-RANTIES OR LIMITATION OF INCIDENTAL OR CONSEQUENTIAL DAMAGES, SO THESE LIMITATIONS MIGHT NOT APPLY TO YOU

Other:

This Agreement is governed by the laws of the State of Massachusetts without regard to choice of law principles The United Convention of Contracts for the International Sale of Goods is specifically disclaimed This Agreement constitutes the entire agreement between you and Course PTR regarding use of the software

Ngày đăng: 08/11/2013, 00:15

TỪ KHÓA LIÊN QUAN