watereffectdesktop

所属分类:界面编程
开发工具:Visual C++
文件大小:375KB
下载次数:34
上传日期:2009-08-24 23:02:07
上 传 者guosongrui001
说明:  做的一个类似于手机屏幕的,水面效果,修改下就可以用于触目屏。
(This is a desktop effect. water effect,move your mouse and click can bring many water wave)

文件列表:
Code\OGL\Agua\Water.tga (196652, 1999-11-21)
Code\OGL\Agua\StdAfx.h (999, 1999-09-30)
Code\OGL\Agua\StdAfx.cpp (206, 1999-09-30)
Code\OGL\Agua\Resource.h (1050, 1999-11-21)
Code\OGL\Agua\Reflect.tga (196652, 1999-10-02)
Code\OGL\Agua\res\Agua.rc2 (396, 1999-09-30)
Code\OGL\Agua\res\Agua.ico (1078, 1999-09-30)
Code\OGL\Agua\Logo.tga (196652, 1999-10-02)
Code\OGL\Agua\LoadTGA.h (1170, 1999-10-02)
Code\OGL\Agua\LoadTGA.cpp (3189, 1999-10-02)
Code\OGL\Agua\Lake.tga (196652, 1999-11-21)
Code\OGL\Agua\AguaDlg.h (1995, 1999-11-21)
Code\OGL\Agua\AguaDlg.cpp (13794, 1999-11-21)
Code\OGL\Agua\Agua.rc (6351, 1999-11-21)
Code\OGL\Agua\Agua.plg (912, 1999-11-21)
Code\OGL\Agua\Agua.opt (48640, 1999-11-21)
Code\OGL\Agua\Agua.ncb (66560, 1999-11-21)
Code\OGL\Agua\Agua.h (1302, 1999-09-30)
Code\OGL\Agua\Agua.dsw (531, 1999-09-30)
Code\OGL\Agua\Agua.dsp (4250, 1999-10-02)
Code\OGL\Agua\Agua.cpp (1391, 1999-11-21)
Code\OGL\Agua\Agua.clw (1798, 1999-11-21)
Code\OGL\Agua\Agua.aps (36376, 1999-11-21)
Code\OGL\Agua\Pool.tga (196652, 1999-11-21)
Code\OGL\Agua\Agua.exe (24576, 1999-11-21)

Agua Application 12/99 ---------------------------------------------- This is the Companion application to the December 1999 Game Developer magazine. It implements an image processing method for creating a rippling water surface. This app does not require 3D hardware. If it runs too slow, make the size of the height field smaller by changing the WATER_SIZE define in AguaDlg.cpp Try 128. Especially if you consider turning this into a 3D height field, you will want a smaller field. The app is a Dialog based MFC app. Suggestions for playing around ------------------------------ Experiment with changes to the Process water routine in AguaDlg.cpp. This is the actual convolution that creates the effect. There are a lot of variations that produce different effects. Optimize... I didn't spend much time making it fast. Indexing tricks (especially in a 256x256 field) would help as well as some assembly here and there. Take the height field and convert it to a 3D mesh. I would use the 256x256 as a texture but make the resolution of the 3D mesh something like ***x***. Credits ------------------------------- Since I could not effectively figure out a original source for this technique, I have received some mail from people claiming to be the first. I will compile a list of these on my website www.darwin3d.com/gamedev.htm. Should be fun to try different people's variations. Jeff jeffl@darwin3d.com

近期下载者

相关文件


收藏者