文件名称:D3D9Cartoon
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:646.83kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
现在市面上流行的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
所谓用卡通渲染技术绘制的三维物体一般都有两个明显的特征,一个特征是物体表面覆盖着大块的单调颜色,而且光影变化比较剧烈;另一个特征是物体拥有粗重的边缘效果。如果能自己控制光照和阴影,就可以达到目的。而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
(系统自动生成,下载前可以参看下载内容)
下载文件列表
卡通渲染.txt
D3D9Cartoon/D3D9Cartoon.cpp
D3D9Cartoon/D3D9Cartoon.exe
D3D9Cartoon/D3D9Cartoon.h
D3D9Cartoon/D3D9Cartoon.ncb
D3D9Cartoon/D3D9Cartoon.rc
D3D9Cartoon/D3D9Cartoon.sln
D3D9Cartoon/D3D9Cartoon.suo
D3D9Cartoon/D3D9Cartoon.vcproj
D3D9Cartoon/d3dapp.cpp
D3D9Cartoon/d3dapp.h
D3D9Cartoon/d3denumeration.cpp
D3D9Cartoon/d3denumeration.h
D3D9Cartoon/d3dfile.cpp
D3D9Cartoon/d3dfile.h
D3D9Cartoon/d3dfont.cpp
D3D9Cartoon/d3dfont.h
D3D9Cartoon/d3dsettings.cpp
D3D9Cartoon/d3dsettings.h
D3D9Cartoon/d3dutil.cpp
D3D9Cartoon/d3dutil.h
D3D9Cartoon/DirectX.ico
D3D9Cartoon/dxutil.cpp
D3D9Cartoon/dxutil.h
D3D9Cartoon/ReadMe.txt
D3D9Cartoon/resource.h
D3D9Cartoon/seafloor.bmp
D3D9Cartoon/seafloor.x
D3D9Cartoon/tiger.bmp
D3D9Cartoon/tiger.x
D3D9Cartoon/zzFloor.vsh
D3D9Cartoon/zzSilhouette.vsh
D3D9Cartoon/zzSurface.vsh
D3D9Cartoon
www.dssz.com.txt
D3D9Cartoon/D3D9Cartoon.cpp
D3D9Cartoon/D3D9Cartoon.exe
D3D9Cartoon/D3D9Cartoon.h
D3D9Cartoon/D3D9Cartoon.ncb
D3D9Cartoon/D3D9Cartoon.rc
D3D9Cartoon/D3D9Cartoon.sln
D3D9Cartoon/D3D9Cartoon.suo
D3D9Cartoon/D3D9Cartoon.vcproj
D3D9Cartoon/d3dapp.cpp
D3D9Cartoon/d3dapp.h
D3D9Cartoon/d3denumeration.cpp
D3D9Cartoon/d3denumeration.h
D3D9Cartoon/d3dfile.cpp
D3D9Cartoon/d3dfile.h
D3D9Cartoon/d3dfont.cpp
D3D9Cartoon/d3dfont.h
D3D9Cartoon/d3dsettings.cpp
D3D9Cartoon/d3dsettings.h
D3D9Cartoon/d3dutil.cpp
D3D9Cartoon/d3dutil.h
D3D9Cartoon/DirectX.ico
D3D9Cartoon/dxutil.cpp
D3D9Cartoon/dxutil.h
D3D9Cartoon/ReadMe.txt
D3D9Cartoon/resource.h
D3D9Cartoon/seafloor.bmp
D3D9Cartoon/seafloor.x
D3D9Cartoon/tiger.bmp
D3D9Cartoon/tiger.x
D3D9Cartoon/zzFloor.vsh
D3D9Cartoon/zzSilhouette.vsh
D3D9Cartoon/zzSurface.vsh
D3D9Cartoon
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.