OSG粒子系统学习

#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 
#include 

using namespace std;

osg::ref_ptr createExplode()
{
	osg::ref_ptr explode = new osg::Group();
	//风向
	osg::Vec3 wind(1.0f, 0.0f, 0.0f);
	osg::Vec3 position(0.0f, 0.0f, -1.0f);
	//爆炸模拟,10.0f为缩放比,默认为1.0f,不缩放
	osg::ref_ptr explosion = new osgParticle::ExplosionEffect(position, 10.0f);
	osg::ref_ptr explosionDebri = new osgParticle::ExplosionDebrisEffect(position

你可能感兴趣的:(VC++,图形学和3D,GIS,osg,argc,argv)