RealtimeTerrainEngine

所属分类:DirextX编程
开发工具:Visual C++
文件大小:2649KB
下载次数:18
上传日期:2010-07-14 16:50:20
上 传 者voyager_l
说明:  要想从头开始建立一个引擎的话,我们首先得需要有良好的基础。在这一部分,我们将 介绍最新的DirectX 9.0 并且好好看一下其SDK 里提供的DirectX 示例框架。出于简化的考虑, 我们将把引擎建立在微软提供好的一些类上。除此以外,我们还将研究一下DirectX9.0 的一 部分,Direct3D 扩展库(D3DX)。这个工具库将满足我们对3D 数学库的基本需要,同时也 给我们提供了加载,维护我们游戏资源的方法。 在DirectX 9.0 中,我们也将深入地研究HLSL 语言,HLSL 语言是类似与C 语言的开 发语言,它可以使着色器程序员在不借助底层汇编渲染代码的情况下编写顶点和像素着色器。 这是介绍我们今天的图形硬件3D 着色器编程的好方法。鉴于其易用性和可读性,这本书将 集中介绍HLSL 语言的使用而非底层汇编语言。 对于那些想要学习底层汇编语言的读者,HLSL 也可以作为一种辅助的学习手段。DirectX SDK 里的命令行式的HLSL 编译器(fxc.exe)通过使用/Fc 命令选项可以将HLSL 程序转换为汇 编语言文件。通过编写HLSL 代码和查看对应的汇编代码,读者就能够更加了解这两门语言。 将某些特定的代码改由汇编代码编写也可以大大地提高HLSL 代码的效率。
(To build an engine from scratch, we must first need to have a good foundation. In this section, we will introduce the latest DirectX 9.0 and take a look at the DirectX SDK provides an example in the framework. For simplification reasons, we will provide a good engine built on Microsoft, a number of class. In addition, we will also look at part of DirectX9.0, Direct3D Extension Library (D3DX). The tool library will meet our basic needs of 3D math library, but also provides us with a load, maintenance of our game resources. In DirectX 9.0, we will study in depth HLSL language, HLSL language is similar to C language development language that allows programmers shader rendering code compiled without the aid of the underlying case of the preparation of vertex and pixel shader. This is to introduce today s graphics hardware 3D shader programming a good way. Given its ease of use and readability, this book will focus on the use of language rather than the underlying HLSL assembly language. Fo)

文件列表:
实时地形引擎.pdf (2769972, 2009-10-11)

近期下载者

相关文件


收藏者