Azure Product
浏览模式: 普通 | 列表
分类: 地形教程 | 1

地形教程 - 模拟光照的实现细节

[ 2007-04-24 10:53:06 | 作者: Admin ]
如有转载,请注明:
http://www.azure.com.cn/

Terrain Tutorial
地形教程


Simulating Lighting - Implementation Details
模拟光照 - 实现细节


The terrain library has a set of functions to deal with this problem. The following variables were defined to store the required values.
地形库里有一个函数集来处理这个问题。下面的变量储存了相关的需求值。
static float terrainLightPos[4] = {0.0,0.1,0.1,0.0};
...

阅读全文...

推荐日志 地形教程 - 模拟光照计算

[ 2007-04-10 14:52:33 | 作者: Admin ]
Terrain Tutorial
地形教程


Simulating Lighting Computations
模拟光照计算


Lighting a surface can be a costly operation. In this section it will be shown how to compute the colors of a vertex as if it was being lit by a light source. For the sake of simplicity only the diffuse component will be taken into account. Two types of light sources will be considered: Directional and Point lights.
...

阅读全文...

推荐日志 地形教程 - 法线的计算

[ 2007-04-05 10:54:53 | 作者: Admin ]
如果转载,请注明:
http://www.azure.com.cn/

Terrain Tutorial
地形教程


Computing Normals
法线的计算


To apply lighting to a terrain, either using OpenGL lights, or simulating them, it is necessary to first compute normals. A normal is a vector that defines how a surface responds to lighting, i.e. how it is lit. The amount of light reflected by a surface is proportional ...

阅读全文...

推荐日志 地形教程 - 从图像到高度图

[ 2007-04-02 15:33:01 | 作者: Admin ]
Terrain Tutorial
地形教程


Height Maps From Images
从图像到高度图


Now that we know how to load an image lets see how to create and draw a height map. This section presents a set of functions from the terrain library that deal with height maps. First lets see how we can build a height map from an image.
既然我们知道如何加载一张图片了,让我们看看如何来创建和绘制高度图。这个章节展示了一些地形库中的函数,用来处理高度图。我们首先来看看如何从一张图像上创建高度图。
...

阅读全文...

推荐日志 地形教程 - TGA库源代码

[ 2007-03-30 16:25:56 | 作者: Admin ]
如有转载,请注明:
http://www.azure.com.cn/

Terrain Tutorial
地形教程


Source Code for the TGA library
TGA库源代码


You may use this library for whatever you want. This library is provide as is, meaning that I won't take any responsability for any damages that you may incur from its usage.
你可以随便怎么使用这个库,但我不承担这个库的bug给你带了的损失。
#include <stdio.h>
#include <stdlib.h>
...

阅读全文...

地形教程 - 一个TGA库

[ 2007-03-29 14:53:35 | 作者: Admin ]
如有转载,请注明:
http://www.azure.com.cn/

Terrain Tutorial

A TGA library
一个TGA库


This library is introduced here in order to make this tutorial self-contained. The library is pretty simple, handling only uncompressed images, RGBA or greyscale. No support for color palettes is provided. If you're interested in a full-blown TGA library I would suggest a ...

阅读全文...

推荐日志 地形教程 - 介绍

[ 2007-03-28 18:18:43 | 作者: Admin ]
原文来自:http://www.lighthouse3d.com/opengl/terrain/index.php3?introduction
如有转载,请注明:
http://www.azure.com.cn/

Terrain Tutorial
地形教程

Introduction
介绍

Terrain in computer graphics is certainly a hot topic. Since this is a fast growing field and there are many algorithms, this tutorial will always be work in progress. ...

阅读全文...
1
ħ˽ ħ˽ : ϲ ϲվ ϲʿ ϲʿ ϲʿ ϲվ ϲ ϲվ ϲ ϲ ͸۾ ˽ ѾѾַ document.write("");