Download Cutting-Edge Direct 3D Programming by Stan Trujillo PDF

By Stan Trujillo

A person who desires to grasp Direct3D as fast and painlessly as attainable.

Show description

Read Online or Download Cutting-Edge Direct 3D Programming PDF

Best media books

The No-Nonsense Guide to Global Media (No-Nonsense Guides)

Introduces readers to the political economic system of the foremost media – movie, tv, radio, recording, publishing, and the web – taking a look at the focus of possession and the convergence of applied sciences and media capabilities. whereas analyzing the dominant media Peter Steven emphasizes the range of neighborhood media creation and media audiences all over the world.

TYPO3 4.3 Multimedia Cookbook

Over 50 nice recipes for successfully coping with multimedia content material to create an geared up site in TYPO3 Create remarkable websites via including photograph, video, and audio records to a TYPO3-driven website and customizing their demonstrate arrange you site by way of successfully handling your multimedia content material on your TYPO3 website increase your CMS through including diversified processing features similar to parsing metadata and changing records on your website a part of Packt's Cookbook sequence: every one recipe is a gently prepared series of directions to accomplish the duty as successfully as attainable intimately TYPO3 is likely one of the world's best open resource content material administration structures, written in Hypertext Preprocessor, that are used to create and customise your site.

Media für Manager alles, was Sie über Medien und Media-Agenturen wissen müssen

Dieser praktische Leitfaden hilft Produkt- und Marketingmanagern, gegenüber Media-Anbietern und -Agenturen kompetent und souverän aufzutreten. Sie erfahren, wie Agenturen arbeiten und wie Sie von Ihrer Agentur eine optimale Leistung einfordern, used to be eine erfolgreiche Media-Planung ausmacht und welche Mediengattungen und Werbeformen Sie kennen sollten.

Social Media Retrieval and Mining: ADMA 2012 Workshops, SNAM 2012 and SMR 2012, Nanjing, China, December 15-18, 2012. Revised Selected Papers

This booklet constitutes the refereed lawsuits of the ADMA 2012 Workshops: The foreign Workshop on Social community research and Mining, SNAM 2012, and the overseas Workshop on Social Media Mining, Retrieval and advice applied sciences, SMR 2012, Nanjing, China, in December 2012. The 15 revised complete papers offered have been rigorously reviewed and chosen from a number of submissions.

Additional info for Cutting-Edge Direct 3D Programming

Sample text

30 DirectDraw, 402 Parallel light, 217–225 adding to a scene, 76 defined, 43 SpaceDonut demo, 217–225 Perspective transformation defined, 43 working with a viewing frustum, 44 Phong shading defined, 48 Picking, 354–365 defined, 354 MeshPick demo, 355–365 Plane defined, 27–28 Point light, 202–9 adding to a scene, 76 defined, 43 Firefly demo, 202–209 Pointers avoiding dangling pointers, 139 Target demo pointer release dilemma, 286 Program execution phases, 94–95 creating a scene, 108–115 functions involved, 108–115 initializing Direct3D, 95–108 maintaining a scene, 115–23 functions involved, 115–23 shutting down, 123–124 using the OnDestroy function, 123–124 Programming Windows vs.

DOS, 5 main() function, 5 WinMain() function, 5 R Ray-tracing defined, 48 illustrated, 48–49 Rendering methods, 46 flat, 46–47 Gouraud, 47–48 how they affect light sources, 190 Phong, 48 ray-tracing, 48 unlit, 46 wireframe, 46 Retained Mode defined, 56 RMWin class background, 93–94 constructing scenes, 108–115 30 31 helper functions 124–125 maintaining scenes, 115–123 object creation functions, 98–108 shutting down, 123–124 RMWin class (modified for full-screen apps) adding display mode support, 406 class definition, 404, 405 member functions, 407–429 palette support, 407 removing obsolete functions, 405–406 surface support, 407 RMWin class (modified for multiple views), 384–386 class definition, 384–385 ConfigViewport function, 390–391 CreateDevice function, 386–389 CreateViewport function, 391 OnSize function, 393–394 Render function, 391–393 viewport functions, 394–395 Rocket demo, 267–278 illustrated, 267 overview, 267 techniques demonstrated, 268 updating the scene, 276 RocketWin class, 268–278 animation functions, 276–278 CreateScene function, 269–270 creating a frame for the rocket mesh, 275 creating the animation sequence, 272–275 creating the rocket mesh, 27–272 source code, 269–270 class definition, 268 speed functions, 278 UpdateScene callback function, 276 Rotating objects, 36–37 S Scaling objects, 34–36 textures, 39 Scenes constructing, 108–115 creating a mesh, 111–112 creating a spotlight, 112–114 creating a viewport, 114, 115 functions involved, 108–115 maintaining, 115–23 functions involved, 115–23 shutting down, 123–124 using the OnDestroy function, 123–124 SetVertices function, 83 31 32 Shading methods, 46 flat, 46–47 Gouraud, 47–48 Phong, 48 ray-tracing, 48 unlit, 46 wireframe, 46 Shadow demo, 238–249 CreateScene function creating a frame for the floor mesh, 245 creating a frame for the fork mesh, 245–246 creating a point light source, 246–247 creating an ambient light source, 246 creating and applying the floor mesh texture wrap, 244–245 creating the floor mesh texture, 244 creating the fork mesh, 245 creating the mesh to represent the floor, 243–244 creating the shadow object, 247 creating the viewport, 247–248 illustrated, 239 overview, 238–239 ShadowWin class, 239–240 AdjustSpin callback function, 248 class definition, 239–240 CreateScene function, 240–248 render functions, 248–249 techniques demonstrated, 239 Shadows, 238–249 adding to scenes, 77 limitations, 77 creating, 77 Shadow demo, 238–249 ShadowWin class, 239–240 AdjustSpin callback function, 248 class definition, 239–240 CreateScene function, 240–248 creating a frame for the floor mesh, 245 creating a frame for the fork mesh, 245–246 creating a point light source, 246–247 creating an ambient light source, 246 creating and applying the floor mesh texture wrap, 244–245 creating the floor mesh texture, 244 creating the fork mesh, 245 creating the mesh to represent the floor, 243–244 creating the shadow object, 247 creating the viewport, 247–248 source code, 240–243 render functions, 248–249 ShowRoom demo, 178–186 CreateScene function creating and applying the texture wrap, 184–185 creating and loading the cube mesh, 184 creating the frame, 185 creating the interface, 185 32 33 creating the textures, 184 illustrated, 179 overview, 178–179 techniques demonstrated, 179 using callbacks to install a new texture, 185–186 ShowRoomWin class, 179–180 class definition, 180 CreateScene function, 180–185 creating and applying the texture wrap, 184–185 creating and loading the cube mesh, 184 creating the frame, 185 creating the interface, 185 creating the textures, 184 using callbacks to install a new texture, 185–186 SpaceDonut demo, 217–225 CreateScene function applying the texture to the mesh, 223 creating and attaching the frame, 223, 224 creating and loading the frosting texture, 222 creating the donut mesh, 221–222 creating the light source and its frame, 224–225 creating the viewport, 225 illustrated, 218 overview, 217 techniques demonstrated, 217 SpaceDonutWin class, 217–219 class definition, 218 CreateScene function, 219–225 applying the texture to the mesh, 223 creating and attaching the frame, 223–224 creating and loading the frosting texture, 222 creating the donut mesh, 221–222 creating the light source and its frame, 224–225 creating the viewport, 225 source code, 219–221 SpaceStation demo, 210–217 CreateScene function creating a frame for the light source, 215 creating a frame for the space station mesh, 214 creating a viewport, 215–217 creating the light source, 214 creating the space station mesh, 213 illustrated, 210 overview, 210 techniques demonstrated, 210 SpaceStationWin class, 211 class definition, 211 CreateScene function, 211–217 creating a frame for the light source, 215 creating a frame for the space station mesh, 214 creating a viewport, 215–217 creating the light source, 214 creating the space station mesh, 213 source code, 212–213 33 34 Spotlight, 226–238 adding to a scene, 76 adjusting with a callback function, 122–123 creating, 112–114 defined, 43 penumbra angle, 43, 226–227 illustrated, 226 setting, 76 Spotlight demo, 227–238 umbra angle, 43, 226–227 illustrated, 226 setting, 76 Spotlight demo, 227–238 CreateScene function creating a frame for the light source, 233–234 creating a viewport, 234 creating and positioning a frame for the meshes, 232–233 creating the light source, 233 intializing the pointers, 232 loading the spherical mesh, 231–232 overview, 227–228 techniques demonstrated, 227 SpotlightWin class, 228–229 beam functions, 237–238 class definition, 228–229 CreateScene function, 229–234 creating a frame for the light source, 233–234 creating a viewport, 234 creating and positioning a frame for the meshes, 232–233 creating the light source, 233 intializing the pointers, 232 loading the spherical mesh, 231–232 source code, 229–231 MoveLight callback function, 234–235 render functions, 235–237 T Target demo, 279–289 CreateScene function creating multiple frames for the missile mesh, 287–288 creating the animation sequence, 284–285 creating the frame for the target mesh, 286 creating the missile mesh, 287 loading the target mesh, 284 illustrated, 279 overview, 279–280 pointer release dilemma, 286 techniques demonstrated, 280 TargetWin class, 280–281 callback functions, 288 CreateScene function, 281–288 34 35 creating multiple frames for the missile mesh, 287, 288 creating the animation sequence, 284, 285 creating the frame for the target mesh, 286 creating the missile mesh, 287 loading the target mesh, 284 source code, 281–283 class definition, 280 MoveTarget callback function, 288 OrientFrame back function, 288 OrientFrame callback function, 289 Texture applying to faces, 70 controlling the number of colors used in, 72 creating, 71 defined, 38 texture wraps, 73 using decals, 72–73 using existing DirectDraw surfaces as textures, 71 Texture animation, 41–42, 171–186 defined, 41 ShowRoom demo, 178–186 single texture vs.

30 DirectDraw, 402 Parallel light, 217–225 adding to a scene, 76 defined, 43 SpaceDonut demo, 217–225 Perspective transformation defined, 43 working with a viewing frustum, 44 Phong shading defined, 48 Picking, 354–365 defined, 354 MeshPick demo, 355–365 Plane defined, 27–28 Point light, 202–9 adding to a scene, 76 defined, 43 Firefly demo, 202–209 Pointers avoiding dangling pointers, 139 Target demo pointer release dilemma, 286 Program execution phases, 94–95 creating a scene, 108–115 functions involved, 108–115 initializing Direct3D, 95–108 maintaining a scene, 115–23 functions involved, 115–23 shutting down, 123–124 using the OnDestroy function, 123–124 Programming Windows vs.

Download PDF sample

Rated 4.50 of 5 – based on 26 votes