• Complain

Petzold - 3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation

Here you can read online Petzold - 3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. City: Sebastopol, year: 2010, publisher: Microsoft Press, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

No cover
  • Book:
    3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation
  • Author:
  • Publisher:
    Microsoft Press
  • Genre:
  • Year:
    2010
  • City:
    Sebastopol
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Get a focused introduction to programming 3D graphics with the Windows Presentation Foundation 3D API. Complementing his book Applications = Code + Markup, award-winning author Charles Petzold builds on XAML essentials, teaching you how to display and animate 3D graphics under the Microsoft .NET Framework 3.0 and Windows Vista. Youll get expert guidance and code samples in XAML and Microsoft Visual C-- helping you master the skills you need to create high-fidelity user interfaces. Discover how to:Define complex 3D objects with triangle meshesEnhance the illumination of 3D surfaces with light a.;Table of Contents; Introduction; The Role of WPF 3D; Your Background; System Requirements; Code Samples; Petzold. Media3D and Other Tools; Support for This Book; Questions and Comments; Authors Web Site; Special Thanks; Chapter 1. Lights! Camera! Mesh Geometries!; Three-Dimensional Coordinates; Points in Space; Introduction to Vectors; Defining the 3D Figure; Lights and Camera; The Viewport3D and Its Constituents; Variations in Code and Markup; Fields of View; Defining Flat Rectangles; Defining Solid Figures; Balancing Light Sources; The Orthographic Projection; Why Not Share the Vertices?

Petzold: author's other books


Who wrote 3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation? Find out the surname, the name of the author of the book and a list of all author's works by series.

3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make

Get the practical introduction for programming 3D graphics using the Windows Presentation Foundation. This definitive reference builds on the essentials, demonstrating how to effectively create 3D graphics for Windows. Includes code samples in XAML.

"/>
3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation
Charles Petzold

Copyright 2010 Charles Petzold (All)

Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at .

Microsoft, Microsoft Press, DirectX, IntelliSense, Internet Explorer, Visual Studio, Win32, Windows, and Windows Vista are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Other product and company names mentioned herein may be the trademarks of their respective owners.

The example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious. No association with any real company, organization, product, domain name, e-mail address, logo, person, place, or event is intended or should be inferred.

This book expresses the author's views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book.


Introduction

Microsoft Windows Vista is the first version of Windows to have built-in support for three-dimensional graphics. This 3D graphics support is integrated with the Microsoft Windows Presentation Foundation (WPF), the client application programming interface (API) that was introduced in 2006 as part of the Microsoft .NET Framework 3.0. Although .NET 3.0 is automatically included in Windows Vista, you can also install it under Microsoft Windows XP with Service Pack 2 or Windows Server 2003 with Service Pack 1.

This book shows you how to write programs targeting the 3D graphics API of the Windows Presentation Foundationor "WPF 3D," as it is known to its friends. This book is essentially a comprehensive examination of virtually all the classes and structures in the .NET namespace System.Windows.Media.Media3D , with plenty of code and markup examples.

The Role of WPF 3D

WPF 3D is not intended for graphics-intensive point-of-view games; nor is it suitable for producing the next big-screen epic featuring three-dimensional rodents or ogres. Programmers who want to pursue those types of applications might be happier looking at Microsoft DirectX rather than WPF 3D.

WPF 3D is instead intended to give programmers the ability to integrate 3D into their client Windows applications. This use of enhanced graphics might be as subtle as fashioning a control that has a 3D appearance, or using 3D to display complex information, or mimicking real-world objects (such as books). The last chapter of this book has some examples of WPF applications incorporating 3D that I hope will inspire you.

Although WPF 3D is not intended for complex games or movies, it is definitely built for animation. WPF includes an extensive animation API and you can use that API with your 3D graphics. In this book I begin demonstrating animation in and I never let up. Somewhat related to animation is data binding. You can move or transform 3D figures by binding them to controls such as scrollbarsanother of my favorite activities in this book.

Although WPF 3D runs on both Windows Vista and Windows XP with .NET 3.0 installed, you don't get exactly the same features. Even on Windows Vista, the quality of 3D graphics is dependent on the video board you have installed in the computer. A video board with a better on-board graphics processing unit (GPU) can accomplish some feats that are too slow to be done entirely in software. WPF graphics capabilities are categorized by "tiers" that are described on this Web page:

http://msdn2.microsoft.com/en-us/library/ms742196.aspx

In particular, only with a Tier 2 video board installed under Windows Vista do you get anti-aliasing in 3D. (Anti-aliasing is the use of shades of color to minimize the stark "staircase" effect caused by using discrete pixels to represent continuous lines or surfaces.) In the grand scheme of things, anti-aliasing might not sound like an important feature, but it makes a big difference when 3D graphics are animated.

You might want to get a new video board for your forays into 3D graphics, but if you're writing applications for other users, you might also want to be aware of the limitations that some of your users may experience when they run your programs.

Your Background

In writing this book, I have assumed that you already have experience programming for the Windows Presentation Foundation using the C# programming language and the Extensible Application Markup Language (XAML) that was introduced as part of .NET 3.0.

If you're a beginning programmer, I recommend that you learn C# first by writing console programs, which are character-mode programs that run in the Command Prompt window. My book Programming in the Key of C#: A Primer for Aspiring Programmers (Microsoft Press, 2003) takes this approach.

If you're a programmer who has a previous background in C or C++ but has not yet learned about programming for the .NET Framework with C#, you might want to begin with my short book .NET Book Zero: What the C or C++ Programmer Needs to Know About C# and the .NET Framework. The book is free and is available for reading or downloading from the following page of my Web site:

http://www.charlespetzold.com/dotnet

If you're familiar with earlier manifestations of .NET but haven't yet tackled .NET 3.0, WPF, and XAML, my book Applications = Code + Markup: A Guide to the Microsoft Windows Presentation Foundation (Microsoft Press, 2006) is a comprehensive tutorial. Several aspects of WPF programming are more crucial for 3D than others. These are:

  • XAML syntax, including data binding and resources.

  • Dependency properties.

  • Animation and storyboards.

  • Two-dimensional brushes.

If you are an experienced WPF programmer but you prefer to code in Microsoft Visual Basic .NET or another .NET-compliant language, I can only tell you that many of the programming examples in this book are in XAML rather than C#. Learning at least to read C# code and mentally translate it into your preferred language has become a vital skill in .NET programming.

Three-dimensional graphics programming necessarily involves mathematics, but I've tried to presume a minimum of background knowledge. For example, I've provided refreshers on vectors, matrix algebra, and imaginary numbers, but I've assumed that you have no previous knowledge of quaternions.

However, I do want you to come to this book with a basic facility with trigonometry. I don't need you to reel off lists of common trigonometric identities, but you should have a good working knowledge of angles, radians, sines, cosines, and tangents. If you know without thinking too hard that there are radians in 180 degrees, that the sine of 90 degrees equals 1, that the cosine of zero degrees also equals 1, and that the tangent of 45 degrees equals 1 as well, you should be in good shape.

Some of the WPF 3D classes are specifically intended to insulate you from heavier mathematics going on under the covers. Consequently, I cover those classes early in the book. Not until relatively late in the book do I get into the more mathematics-laden topics of matrix transforms and quaternions. Depending on your ambitions and aspirations regarding 3D graphics programming, you might find these chapters challenging or altogether too scary. Books are great for conflicts like that because:

Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation»

Look at similar books to 3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation»

Discussion, reviews of the book 3D Programming for Windows: Three-Dimensional Graphics Programming for the Windows Presentation Foundation and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.