ParticleSim

所属分类:OpenGL
开发工具:Visual C++
文件大小:1489KB
下载次数:754
上传日期:2006-06-16 22:01:10
上 传 者yjwangp
说明:  模拟火焰生成,利用了粒子系统的思想,通过改变菜单中的纹理图片,还可以观察不同效果,另外,还能模拟烟花场景
(simulated flame generated, using the particle system of thinking by changing menu of texture images, one can observe different effects, in addition to scenes can simulate fireworks)

文件列表:
张伟-源码粒子系统\ParticleSim.exe (270336, 2002-01-17)
张伟-源码粒子系统\particlesim_src\BUBBLE.BMP (12342, 2000-03-06)
张伟-源码粒子系统\particlesim_src\CIRCLE.BMP (12342, 2000-03-06)
张伟-源码粒子系统\particlesim_src\CLOUD.BMP (12342, 2000-03-20)
张伟-源码粒子系统\particlesim_src\CURSOR1.CUR (326, 2000-06-09)
张伟-源码粒子系统\particlesim_src\GLSetup.cpp (7118, 2000-09-10)
张伟-源码粒子系统\particlesim_src\GLSetup.h (1658, 2000-09-10)
张伟-源码粒子系统\particlesim_src\HotSpot.cpp (11353, 2000-09-11)
张伟-源码粒子系统\particlesim_src\HotSpot.h (2215, 2000-09-11)
张伟-源码粒子系统\particlesim_src\Key.bmp (98358, 2000-07-16)
张伟-源码粒子系统\particlesim_src\Keyo.bmp (98358, 2000-03-06)
张伟-源码粒子系统\particlesim_src\LowKey.bmp (98358, 2000-07-16)
张伟-源码粒子系统\particlesim_src\Particle.cpp (8053, 2000-09-04)
张伟-源码粒子系统\particlesim_src\Particle.h (2303, 2000-09-12)
张伟-源码粒子系统\particlesim_src\ParticleSim.dsp (4842, 2000-09-10)
张伟-源码粒子系统\particlesim_src\ParticleSim.dsw (542, 2000-09-04)
张伟-源码粒子系统\particlesim_src\ParticleSim.ncb (115712, 2006-06-16)
张伟-源码粒子系统\particlesim_src\ParticleSim.plg (1860, 2006-06-16)
张伟-源码粒子系统\particlesim_src\ParticleSystem.cpp (20449, 2000-09-11)
张伟-源码粒子系统\particlesim_src\ParticleSystem.h (4134, 2000-09-12)
张伟-源码粒子系统\particlesim_src\RESOURCE.H (456, 2000-04-10)
张伟-源码粒子系统\particlesim_src\SPARK.BMP (12342, 2000-03-06)
张伟-源码粒子系统\particlesim_src\STAR.BMP (3126, 2000-03-06)
张伟-源码粒子系统\particlesim_src\Script1.aps (17220, 2006-06-16)
张伟-源码粒子系统\particlesim_src\Script1.rc (1605, 2000-04-10)
张伟-源码粒子系统\particlesim_src\ParticleSim.ilk (334772, 2006-06-16)
张伟-源码粒子系统\particlesim_src\ParticleSim.exe (266315, 2006-06-16)
张伟-源码粒子系统\particlesim_src\帮助文件.txt (1605, 2006-03-23)
张伟-源码粒子系统\particlesim_src\params.txt (1324, 2006-03-23)
张伟-源码粒子系统\particlesim_src\MAIN.CPP (43067, 2006-04-05)
张伟-源码粒子系统\particlesim_src\Debug (0, 2001-01-01)
张伟-源码粒子系统\particlesim_src\ParticleSim.opt (55808, 2006-06-16)
张伟-源码粒子系统\particlesim_src (0, 2001-01-01)
张伟-源码粒子系统 (0, 2001-01-01)

============================================================================ Particle Sim by: Brian Tischler briandeb@telusplanet.net ============================================================================ This application is a real time configurable particle simulator. It's written in OpenGL, and is meant to be a learning tool in both OpenGL and particle Physics. Special thanks to FPi Games for the music track! Special, special thanks for the particle tutorial and theory provided by: by: Richard Benson rbenson@earthlink.net * Go here for the BEST tutorial on particle physics http://home.earthlink.net/~rbenson/ParticleHTML/Particles_files/frame.htm * Go here for Particle Chamber, a DX7 app where you also have real time particle changing abilities and full source code. http://www.particlesystems.com/html/pchamber.html Using Particle ================ Click on the Texture Bitmap to cycle different textures. Make your own and save it as one of the little existing bitmaps such as spark or bubble. You can move the camera around using the Arrow keys for Rotation and A/Z for Zoom. After hiding the menu clicking anywhere on the window brings the menu back. Definitely push the Preset keys F1 thru F7 button so you can see some of the scenarios that I have been setup. This will give you an idea as to the various ways you can manipulate the particle system behavior. If you find a specific setup that looks good, hit F8. This will export a file called "Params.txt" that will contain all the current particle system parameters and the current camera position. F9 turns on and off music. There are 2 bars on some controls, like Alpha. The upper is the setting for the beginning of the particles life, the lower for the end. Menu Controls ------------- Click the new position on the bar in the menu, or drag it. Alpha: The brightness of the particle. Red,Green,Blue: The start and end color of the particle Size: The start and end size of the particle Life: How long the particle lives Emit: How many particles are alive in the system Speed: The initial speed the particles are emitted from the source Gravity: Six vectors of gravity for start and end force on the particle. Theta: The direction of emission of the particles from the source. Boing: The bounce factor when the floor is enabled of particles hitting it Burst: Intermittent particle emission ie F7, fireworks Camera: Just try it Moving: Moves the point source in a spherical, sinusoidal fashion Floor: Pops up a floor Variability: Adds randomness of the following parameters on a per particle basis Source Code -------------- I used Visual C++ 6.0 for this project and was unable to test the Workspace and Project with earlier versions. Feel free to modify the code (if its not too convoluted) If you are to use this code or distribute it, please let me know. I'd like to see where it ends up. Brian ============================================================================ ======================== DISCLAIMER ======================================== ============================================================================ You may not sell this Software or include it on any distribution or compilation without consent of the author. Any use of this Software is at your own risk. In no event shall the Author be liable for any special, incidental, indirect, or consequential damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or any other pecuniary loss) arising out of the use of or inability to use this Software. ============================================================================

近期下载者

相关文件


收藏者