文件名称:celshading
- 所属分类:
- 绘图程序
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 263kb
- 下载次数:
- 0次
- 提 供 者:
- s*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
This program displays a torus rendered with "cartoon lighting". The dot product between the normal and light vector is performed in object space, and used as a lookup into a 1D texture with "sharp lighting" values. The dot product is computed manually, or using a vertex program. The back faces are then drawn in wirefr a me mode to create an outline.
The download for this project contains two separate versions, one using NV_vertex_program to perform the lighting calculations and one using ARB_vertex_program.
Requirements:
EXT_compiled_vertex_array
EXT_texture_edge_clamp
Required for vertex program calculations:
NV_vertex_program/ARB_vertex_program
References:
Cel-Shading by Sami "MENTAL" Hamlaoui. From www.gamedev.net
Keys:
F1 - Take a screenshot
Escape - Quit
1 - Use manual cartoon lighting calculations
2 - Use vertex program
Up Arrow- Increase outline width
Down Arrow- Decrease outline width
Use the mouse to spin the object.
The download for this project contains two separate versions, one using NV_vertex_program to perform the lighting calculations and one using ARB_vertex_program.
Requirements:
EXT_compiled_vertex_array
EXT_texture_edge_clamp
Required for vertex program calculations:
NV_vertex_program/ARB_vertex_program
References:
Cel-Shading by Sami "MENTAL" Hamlaoui. From www.gamedev.net
Keys:
F1 - Take a screenshot
Escape - Quit
1 - Use manual cartoon lighting calculations
2 - Use vertex program
Up Arrow- Increase outline width
Down Arrow- Decrease outline width
Use the mouse to spin the object.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Cel Shading
...........\Cel Shading with ARB vp
...........\.......................\ARB_program.cpp
...........\.......................\ARB_program.h
...........\.......................\Cel Shading.exe
...........\.......................\extensions
...........\.......................\..........\ARB_vertex_program_extension.cpp
...........\.......................\..........\ARB_vertex_program_extension.h
...........\.......................\..........\EXT_compiled_vertex_array_extension.cpp
...........\.......................\..........\EXT_compiled_vertex_array_extension.h
...........\.......................\..........\EXT_texture_edge_clamp_extension.cpp
...........\.......................\..........\EXT_texture_edge_clamp_extension.h
...........\.......................\FPS_COUNTER.cpp
...........\.......................\FPS_COUNTER.h
...........\.......................\LOG.cpp
...........\.......................\LOG.h
...........\.......................\Main.cpp
...........\.......................\Main.h
...........\.......................\Maths
...........\.......................\.....\COLOR.cpp
...........\.......................\.....\COLOR.h
...........\.......................\.....\Maths.h
...........\.......................\.....\MATRIX4X4.cpp
...........\.......................\.....\MATRIX4X4.h
...........\.......................\.....\PLANE.cpp
...........\.......................\.....\PLANE.h
...........\.......................\.....\Release
...........\.......................\.....\VECTOR2D.cpp
...........\.......................\.....\VECTOR2D.h
...........\.......................\.....\VECTOR3D.cpp
...........\.......................\.....\VECTOR3D.h
...........\.......................\.....\VECTOR4D.cpp
...........\.......................\.....\VECTOR4D.h
...........\.......................\Project.sln
...........\.......................\Project.vcproj
...........\.......................\TIMER.cpp
...........\.......................\TIMER.h
...........\.......................\TORUS.cpp
...........\.......................\TORUS.h
...........\.......................\vertex program.txt
...........\.......................\WINDOW.cpp
...........\.......................\WINDOW.h
...........\Cel Shading with NV vp
...........\......................\Cel Shading.exe
...........\......................\extensions
...........\......................\..........\EXT_compiled_vertex_array_extension.cpp
...........\......................\..........\EXT_compiled_vertex_array_extension.h
...........\......................\..........\EXT_texture_edge_clamp_extension.cpp
...........\......................\..........\EXT_texture_edge_clamp_extension.h
...........\......................\..........\NV_vertex_program_extension.cpp
...........\......................\..........\NV_vertex_program_extension.h
...........\......................\FPS_COUNTER.cpp
...........\......................\FPS_COUNTER.h
...........\......................\LOG.cpp
...........\......................\LOG.h
...........\......................\Main.cpp
...........\......................\Main.h
...........\......................\Maths
...........\......................\.....\COLOR.cpp
...........\......................\.....\COLOR.h
...........\......................\.....\Maths.h
...........\......................\.....\MATRIX4X4.cpp
...........\......................\.....\MATRIX4X4.h
...........\......................\.....\PLANE.cpp
...........\......................\.....\PLANE.h
...........\......................\.....\Release
...........\......................\.....\VECTOR2D.cpp
...........\......................\.....\VECTOR2D.h
...........\......................\.....\VECTOR3D.cpp
...........\......................\.....\VECTOR3D.h
...........\......................\.....\VECTOR4D.cpp
...........\......................\.....\VECTOR4D.h
...........\......................\NV_vertex_program.cpp
...........\......................\NV_vertex_program.h
...........\......................\Project.sln
...........\......................\Project.vcproj
.....
...........\Cel Shading with ARB vp
...........\.......................\ARB_program.cpp
...........\.......................\ARB_program.h
...........\.......................\Cel Shading.exe
...........\.......................\extensions
...........\.......................\..........\ARB_vertex_program_extension.cpp
...........\.......................\..........\ARB_vertex_program_extension.h
...........\.......................\..........\EXT_compiled_vertex_array_extension.cpp
...........\.......................\..........\EXT_compiled_vertex_array_extension.h
...........\.......................\..........\EXT_texture_edge_clamp_extension.cpp
...........\.......................\..........\EXT_texture_edge_clamp_extension.h
...........\.......................\FPS_COUNTER.cpp
...........\.......................\FPS_COUNTER.h
...........\.......................\LOG.cpp
...........\.......................\LOG.h
...........\.......................\Main.cpp
...........\.......................\Main.h
...........\.......................\Maths
...........\.......................\.....\COLOR.cpp
...........\.......................\.....\COLOR.h
...........\.......................\.....\Maths.h
...........\.......................\.....\MATRIX4X4.cpp
...........\.......................\.....\MATRIX4X4.h
...........\.......................\.....\PLANE.cpp
...........\.......................\.....\PLANE.h
...........\.......................\.....\Release
...........\.......................\.....\VECTOR2D.cpp
...........\.......................\.....\VECTOR2D.h
...........\.......................\.....\VECTOR3D.cpp
...........\.......................\.....\VECTOR3D.h
...........\.......................\.....\VECTOR4D.cpp
...........\.......................\.....\VECTOR4D.h
...........\.......................\Project.sln
...........\.......................\Project.vcproj
...........\.......................\TIMER.cpp
...........\.......................\TIMER.h
...........\.......................\TORUS.cpp
...........\.......................\TORUS.h
...........\.......................\vertex program.txt
...........\.......................\WINDOW.cpp
...........\.......................\WINDOW.h
...........\Cel Shading with NV vp
...........\......................\Cel Shading.exe
...........\......................\extensions
...........\......................\..........\EXT_compiled_vertex_array_extension.cpp
...........\......................\..........\EXT_compiled_vertex_array_extension.h
...........\......................\..........\EXT_texture_edge_clamp_extension.cpp
...........\......................\..........\EXT_texture_edge_clamp_extension.h
...........\......................\..........\NV_vertex_program_extension.cpp
...........\......................\..........\NV_vertex_program_extension.h
...........\......................\FPS_COUNTER.cpp
...........\......................\FPS_COUNTER.h
...........\......................\LOG.cpp
...........\......................\LOG.h
...........\......................\Main.cpp
...........\......................\Main.h
...........\......................\Maths
...........\......................\.....\COLOR.cpp
...........\......................\.....\COLOR.h
...........\......................\.....\Maths.h
...........\......................\.....\MATRIX4X4.cpp
...........\......................\.....\MATRIX4X4.h
...........\......................\.....\PLANE.cpp
...........\......................\.....\PLANE.h
...........\......................\.....\Release
...........\......................\.....\VECTOR2D.cpp
...........\......................\.....\VECTOR2D.h
...........\......................\.....\VECTOR3D.cpp
...........\......................\.....\VECTOR3D.h
...........\......................\.....\VECTOR4D.cpp
...........\......................\.....\VECTOR4D.h
...........\......................\NV_vertex_program.cpp
...........\......................\NV_vertex_program.h
...........\......................\Project.sln
...........\......................\Project.vcproj
.....