Manning Logo
Home | Ordering Info | Shopping Cart | Manage My Account | Login
Attention customers: online shopping is now available exclusively through our main website: http://www.manning.com. Thank you.
The Awesome Power of Direct3D/DirectX

Inside the book

Sample Chapters Table of Contents Errata Index Introduction Book Reviews GamesDomain review

Manning Blog

Why small is sweet?

Author Blogs

Dave Crane more...

Author Calendar

Upcoming Events

Catalog

Java .NET Perl XML All by Subject All by Title

About...

Manning Contact Us Ordering FAQs ebooks Covers Sandbox Forums Distributors Manning Early Access Program (MEAP) Affiliate Program Academia/Publicity User Group Program Press Releases Jobs

Manning Publications Co.
209 Bruce Park Avenue
Greenwich, CT 06830

The Awesome Power of Direct3D/DirectX
Peter J. Kovach

1997 | 840 pages
Includes CDROM
ISBN: 1884777473
$49.45 Softbound print book  

Introduction

The purpose of this book is to help programmers learn how to program 3D applications for such uses as simulations, games, marketing, demonstrations, and computer animated videos. This book describes how to program graphics applications using Microsoft's Direct3D Software Development Kit (SDK).

Many of the books that are released today attempt to make it "easy" for the reader to create his or her first application by developing libraries of commands. These commands are in fact encapsulated command sequences that manage to hide the code design from the end user. Although for the casual experimenter such an approach can be a nice time saver, the end effect is that the user never learns how to properly code in the target environment.

Other books give you numerous little applets, each showing you how to use one, or maybe two, of the features available in the SDK. The problem with these is that they fail to teach you how to use the available commands together to create a real application!

My intent in this book is to provide you with the grounding necessary to develop serious 3D applications using the Direct3D SDK. By showing you how the various commands are to be used, and how they interact with one another, you will learn not just which are the commands available but why they do what they do and how you can best put them to use.

This book will show you how the library of 3D graphic commands in the Direct3D SDK can be used to produce a high quality, high performance, 3D application. A detailed Retained-Mode application is shown and the step-by-step creation process is discussed in detail. This main code example demonstrates how to construct a full first-person perspective walk-around demonstration game scenario in Retained Mode, including full, variable shape object, collision detection.

This first major 3D tutorial application is designed to teach the user how to create Direct3D Retained-Mode applications step-by-step. The user is lead from the creation of the DirectDraw and Direct3D interfaces through the addition of lighting, 3D object loading, mouse/keyboard control, joystick control, 3D object creation, 3D object/viewpoint animation, collision detection, sound, animated objects, shadows, and fog. At the completion of the tutorial, you will have gained the knowledge necessary to create complete Direct3D applications. Only your imagination and time will then limit or enable you to produce awesome 3D applications on your own home PC.

The remaining applications demonstrate critical areas such as shadows and full-screen mode. A second, shorter, tutorial covers the use of Immediate Mode to create an application. This tutorial shows you a step-by-step description of how to write your first Immediate Mode application. I will show you all of the code steps necessary, and there are a lot!

The book also provides a source CD containing the code defined in the body of this text. In addition, 129 excellent 3D objects in both DirectX and 3D Studio format (.x and .3ds) have been included for your use in developing Direct3D based applications. Many of these are better than the objects you would pay more than $100 for commercially. I have also included fifty-two superb textures which you can apply to these objects. A list of the objects, and the textures, included on the CD can be found in the appendix at the back of this book.

You will also notice that I mention 3D Studio several times in this book. This is because it is the easiest tool to use for generating both static and animated objects. These objects can then easily be converted to DirectX File Format using the conv3ds tool included as part of the DirectX SDK on the CD accompanying this book.

Skill level

Because this book takes an exhaustive look at the Retained Mode of the Direct3D SDK, and a detailed look at the Immediate Mode, it will appeal to anyone in the simulation and gaming/graphic world. It will assist any person who has the desire to develop new detailed, high speed, 3D simulations, games, or environments, including artists and designers.

To utilize the information within this book effectively in your own project, you must possess a reasonable knowledge of C and it helps to have a minimal familiarity with C++. This text assumes an intermediate level of experience in the area and does not attempt to teach you C/C++ basics. If you feel you need a refresher on C, you may wish to get a copy of a good C book such as The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie.

This book is designed so that even the most graphically inexperienced reader can understand the subject matter. Advanced graphics programmers will learn the difficult nuances of Direct3D which will greatly assist their development efforts. It is intended that this book help entice the reader to begin or continue to view the development of a graphic application as an exciting endeavor rather than an overwhelming challenge.

Target audience

Professionals: Developers who like to have a reference library on hand to remind them of previously learned knowledge or to enhance their current level of 3D graphic expertise in the usage of Direct3D.

New professionals: Individuals who have recently entered the professional field in the graphics domain. This book will assist these users in learning a new, high performance, graphic library for use in programming advanced 3D applications.

Shareware or hobby programmers: Those who do not have much time for the research but enjoy doing the development. This book will provide a detailed understanding, as well as sample code, to program a 3D application using Microsoft's Direct3D.

A little about myself

I have been involved with computers since the advent of the personal computer. I have owned every type of home computer created, including the original Elf, Exidy Sorcerer, Pet, Apple, Macintosh, every Tandy machine made (literally), and numerous IBM machines/clones, from the 8086 to the Pentium family. I have also owned many of the workstation class machines such as the Silicon Graphics Indigo II Extremes, and so forth.

I have always been fascinated with computer graphics and have been developing systems and algorithms since the 1970s. I started my professional career developing autonomous vehicle and flight simulators for such vehicles as F-15s, F-16s, and Apache helicopters. Recently, I was the vice president of a national firm involved in the development of virtual reality exercise equipment and arcade systems. I am now spending much of my time writing 3D graphic applications and developing 3D animations.

I hope you enjoy this book and find it a valuable resource for your future software development efforts.

Feel free to contact me at kovach@imageman.com or at my website which can be reached from http://www.manning.com/Kovach. I would be happy to discuss the book, 3D animation, or any other graphic issues. I will also continue to post free Direct3D objects, textures, code samples, and tutorials on my website.

Peter Kovach

DESCRIPTION

If you are programming real-time 3D applications for siumlations, games, marketing, demonstrations or computer-animated videos using Microsoft's Direct3D Software Development Kit, this book is for you. Unlike other books, The Awesome Power of Direct3D/DirectX shows you how to build a complete working 3D application, including 3D sound, joystick input, animation, textures, shadows, and even collision detection!

It shows you how to write code using both Retained Mode and Immediate Mode. It does not bury the code in "wrappers" that hide the nuances of the SDK. Nothing is hidden.

What's inside:

  • Complete step-by-step tutorial for Direct3D retained mode (windowed and full-screen) applications
  • All the steps required to create an immediate mode program
  • Basics of DirectDraw
  • How to integrate all DirectX components into a working program
  • Special techniques for shadows and 3D sound
  • Integration of direct input devices like joystick and mouse
  • Comprehensive library of high-quality, free, reusable 3D objects and textures
  • Cross-reference DirectX retained mode library

REVISED PRINTING JUST OUT! Includes 100 new pages covering the new DirectX 5 commands and an expanded CD containing the complete DirectX 5 distribution and all of the demonstration projects. All of the subprojects for the tutorial chapters have been reorganized and rebuilt with MSVC++5.0 and DirectX 5.

CD-ROM contains:

  • More tna 140 DirectX .x objects, some with animation (70 megs)
  • .3ds originals of the .x objects (58 megs)
  • 52 high-quality textures (4 megs)
  • Microsoft's DirectX 5 SDK (356 megs)
  • All the code from the text

WHAT THE EXPERTS SAY ABOUT THIS BOOK...

"I like the style of explaining the code as it is revealed and not hiding it from the reader."
-Jeff Lander, Darwin 3D

"A great book for the technically proficient-- has an excellent reference section with lots of technical information."
-Kyle Lussier, author, Power-3D

"The way the book is divided into a how-to section and a reference section meets the needs ot both less and more experienced programmers and avoids the necessity of keeping around multiple manuals."
-Kevin Hamilton, Georgia Tech

"One of the best of the new books... chock full of useful information and sample code."
-Phil Taylor, Microsoft DRG

ABOUT THE AUTHOR...

An independent developer of 3D graphics applications ane games, Peter J. Kovach has been a vice president with a national developer of virtual reality and arcade systems and CEO of a corporation developing 3D systems for advertising and product development.

Home | Catalog | Privacy Policy | About Manning

© 2003-2006 Manning Publications Co.