Description: This program demonstrated the use of particle systems to achieve the effect of simulated rain King. The realization of rain particle system simulation, each particle is a short-term rain, that is, a certain length of the segment, this segment as an article particles, with the passage of time, it decided by the two vertex direction vector, according to a certain the rate of decline, real-time calculation of its specific location, and then in the position of the particles drawn out. Concrete realization of the process can reference the code.
File list (Check if you may need any files):
Raining
.......\Common
.......\......\dxstdafx.cpp
.......\......\dxstdafx.h
.......\......\DXUT.cpp
.......\......\DXUT.h
.......\......\DXUTenum.cpp
.......\......\DXUTenum.h
.......\......\DXUTgui.cpp
.......\......\DXUTgui.h
.......\......\DXUTMesh.cpp
.......\......\DXUTMesh.h
.......\......\DXUTmisc.cpp
.......\......\DXUTmisc.h
.......\......\DXUTRes.cpp
.......\......\DXUTRes.h
.......\......\DXUTSettingsDlg.cpp
.......\......\DXUTSettingsDlg.h
.......\......\DXUTsound.cpp
.......\......\DXUTsound.h
.......\......\DXUT_2003.sln
.......\......\DXUT_2003.vcproj
.......\......\DXUT_2005.sln
.......\......\DXUT_2005.vcproj
.......\Raining.cpp
.......\Raining.exe
.......\Raining.manifest
.......\Raining.rc
.......\Raining_2003.sln
.......\Raining_2003.suo
.......\Raining_2003.vcproj
.......\Raining_2005.sln
.......\Raining_2005.vcproj
.......\resource.h