Description: nvidia最新的nv40内核显卡支持在vertex shader程序中访问纹理。本代码演示了如何在顶点编程中实现访问一个2维纹理数据.推荐vc7.1+6800显卡。-being the latest ATI graphics kernel support for the vertex shader process visit asked texture. This code demonstrates how to achieve peak Programming visit a two-dimensional texture data. Suggest vc7.1 6800. Platform: |
Size: 1030990 |
Author:王赞纲 |
Hits:
Description: 现在市面上流行的3D游戏画面越来越炫目,不过也有一些为了营造一种特殊的效果而使用了卡通渲染技术,比如PC游戏中的《杀手XIII》,《忍者神龟》;PS2游戏中的《真红之泪》,《犬夜叉》等等。这些游戏的画面看上去很像漫画,感觉比较有趣。下面就介绍一种简单的实现方法。
所谓用卡通渲染技术绘制的三维物体一般都有两个明显的特征,一个特征是物体表面覆盖着大块的单调颜色,而且光影变化比较剧烈;另一个特征是物体拥有粗重的边缘效果。如果能自己控制光照和阴影,就可以达到目的。而DirectX 9.0 中的顶点渲染(Vertex Shaders)提供了这样一个途径,使我们可以实现自己的想法。
顶点渲染与以前的T&L在渲染流程中处于二选一的地位,一段代码最多只能有128条指令,而且不能有循环,判断和跳转指令,全是线性执行指令。每次只能有一个Shader程序是激活的,Vertex Shaders让我们可以实时地控制模型的空间变换,光照处理以及像素渲染。
那么现在先来解决第一个问题。我们可以用光线的亮度值作为物体的纹理坐标,这就产生一种带状纹理的效果,然后再调整相应的颜色即可。-now the fashion for 3D games more compelling picture, But there are also some in order to create a special effect and the use of the cartoon rendering technology, PC games such as the "killer XIII," "Turtles"; PS2 game of "truth red tears," "two characters." These games comic picture looks like, I feel more interesting. Now, on a simple method. Using the so-called cartoon rendering of 3D rendering objects normally have two obvious feature a surface characteristics of an object covered with chunks of dull colors, but more dramatic changes in the Universe; Another characteristic is heavy objects have the edge effect. If the ability to control their own light and shadow, we can achieve the aim. DirectX 9.0 vertex Rendering (Vertex Shaders) provide such Platform: |
Size: 662528 |
Author:倪明 |
Hits:
Description: Creates, compiles and links two simple shaders. The vertex shader mimics the fixed function
* pipeline and computes standard model view projection transformations. The fragment shader sets
* the colour of fragments by reading the current glColor() value.
*
* Uses OpenGL 2 instead of ARB extensions.
*
* @author Ciardhubh Platform: |
Size: 25600 |
Author:veeresh |
Hits:
Description: Billboard Sample for XNA 4.0
This sample shows how to efficiently render large numbers of billboard sprites by using a vertex shader to perform the billboard computations entirely on the GPU. Platform: |
Size: 435200 |
Author:third_eye_o0o |
Hits:
Description: 该代码介绍在OpenGL4.0中使用顶点着色器和像素着色器,这些都是关于理解和应用3D图形渲染中最基本的概念。-This codes introduction to writing vertex and pixel shaders in OpenGL 4.0. These are the most fundamental concepts that you need to understand and utilize to render 3D graphics. Platform: |
Size: 34816 |
Author:黎明 |
Hits:
Description: If we fail to compile a vertex shader we ll use a dummy fallback shader that simply emits a (0,0,0,1) vertex position.
Platform: |
Size: 5120 |
Author:gltouvm |
Hits: