volumefire
所属分类:DirextX编程
开发工具:Visual C++
文件大小:3670KB
下载次数:13
上传日期:2011-05-19 17:48:09
上 传 者:
混世小霸王
说明: 实时火焰渲染程序,在vc和vs下都可以运行,但是在运行时需要配置环境。
(Real-time flame rendering procedure in vc and vs can run under, but need to configure the runtime environment.)
文件列表:
volumefire (0, 2011-05-19)
volumefire\Debug (0, 2011-05-19)
volumefire\Debug\BuildLog.htm (6294, 2011-05-18)
volumefire\Debug\cfire.obj (67169, 2011-05-18)
volumefire\Debug\fire.exe.embed.manifest (2048, 2011-05-18)
volumefire\Debug\fire.exe.embed.manifest.res (2112, 2011-05-18)
volumefire\Debug\fire.obj (82108, 2011-05-18)
volumefire\Debug\gif89a.obj (371970, 2011-05-18)
volumefire\Debug\vc90.idb (650240, 2011-05-18)
volumefire\Debug\vc90.pdb (438272, 2011-05-18)
volumefire\cfire.cpp (4239, 2001-02-06)
volumefire\cfire.h (644, 2001-02-06)
volumefire\cool.gif (307063, 2001-02-06)
volumefire\coolmap.jpg (4828, 1998-05-18)
volumefire\fire.cpp (7871, 2011-05-18)
volumefire\fire.dsp (4216, 2001-02-06)
volumefire\fire.dsw (531, 2001-02-05)
volumefire\fire.exe (49152, 2001-02-06)
volumefire\fire.jpg (13239, 2001-02-06)
volumefire\fire.ncb (8965120, 2011-05-18)
volumefire\fire.sln (873, 2011-05-18)
volumefire\fire.suo (10240, 2011-05-18)
volumefire\fire.vcproj (6443, 2011-05-18)
volumefire\fire.vcproj.yang-PC.yang.user (1411, 2011-05-18)
volumefire\gif89a.cpp (13568, 2011-05-18)
volumefire\gif89a.h (1694, 2011-05-18)
volumefire\light.gif (1086, 2001-02-06)
volumefire\m_fire.htm (10236, 1998-11-04)
volumefire\m_fire1.gif (8644, 1998-05-18)
volumefire\seed.gif (2426, 2001-02-05)
一种实时火焰效果生成算法
1.使用授权
本原代码文档包括下列文件:
fire.cpp 演示程序原程序
cfire.cpp 火焰效果类原程序
cjpeg.h 火焰效果类头文件
gif89a.cpp gif文件支持类原程序
gif89a.h gif文件支持类头文件
readme.txt 自述文件
fire.exe 演示程序
feed.gif 保存种子位图的gif文件
cool.gif 保存冷却位图的gif文件
light.gif 保存亮度等级位图的gif文件
fire.jpg 效果图
m_fire.htm 解释原理的英文文章
m_fire1.gif m_fire.htm需要的图象文件
coolmap.jpg m_fire.htm需要的图象文件
如果您要在各种媒体刊载、引用本文档,请不要对本文档内容进行任何修改。如果您在自己的编程中
引用本文档内容,可对引用内容进行修改。作为学习和交流目的,本文档的使用是免费的,如果您直接或
间接将本文档用于商业用途,请在使用前与我联系,获得同意后方可使用。在您引用本文档时如能注明出
处,并通过下面方式通知本人一下,本人将非常高兴!
您在最终使用时请到下面网址再下载一次,以便保证版本最新!
联系方式:
e-mail:cproom@163.net
http://cproom.yeah.net
通讯地址:陕西省西安市太白南路1***号(骊山微电子公司)陈鹏(收)
邮编 :710065
电话 :(029)-8234582
2.一些说明
1.演示程序运行需要directX支持。
2.替换种子位图可以改变火焰形状。
3.替换冷却位图可以改变冷却的局部模式
4.替换亮度等级位图可以改变火焰颜色
5.修改generateSeed()函数中的参数可以控制火种密度,修改scrollUp()函数中的参数可以控制火焰向上
流动的速度,这两个函数都影响火焰整体亮度和高度。对于不同线条粗细的种子位图,需调整此两个函数
以达到最佳效果。
6.scrollUp()函数中的wind变量控制风的大小,演示程序设为0,也就是没风。此变量可以在0到5之间调整。
“全文完”
近期下载者:
相关文件:
收藏者: