Renamed ExplosionDebriEffect to ExplosionDebrisEffect
This commit is contained in:
parent
2b08f729f3
commit
24849f3c70
2
NEWS.txt
2
NEWS.txt
@ -39,7 +39,7 @@ The osgTerrain library, for generating whole earth, geospecific paged databases,
|
||||
|
||||
Particle Effects:
|
||||
|
||||
To make it easier to add particle effects to your application a new osgParticle::ParticleEffects node has been written, with five concrete implementations of SmokeEffect, FireEffect, ExplosionEffect and ExplosionDebriEffect which you can create, adjust and add to your scene graphs.
|
||||
To make it easier to add particle effects to your application a new osgParticle::ParticleEffects node has been written, with five concrete implementations of SmokeEffect, FireEffect, ExplosionEffect and ExplosionDebrisEffect which you can create, adjust and add to your scene graphs.
|
||||
|
||||
DXF and Movie plugins:
|
||||
|
||||
|
@ -103,7 +103,7 @@ SOURCE=..\..\src\osgParticle\ExplosionEffect.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\src\osgParticle\ExplosionDebriEffect.cpp
|
||||
SOURCE=..\..\src\osgParticle\ExplosionDebrisEffect.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
@ -191,7 +191,7 @@ SOURCE=..\..\include\osgParticle\ExplosionEffect
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\include\osgParticle\ExplosionDebriEffect
|
||||
SOURCE=..\..\include\osgParticle\ExplosionDebrisEffect
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
|
@ -148,7 +148,7 @@ SOURCE=..\..\..\src\osgPlugins\osgParticle\IO_ExplosionEffect.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
SOURCE=..\..\..\src\osgPlugins\osgParticle\IO_ExplosionDebriEffect.cpp
|
||||
SOURCE=..\..\..\src\osgPlugins\osgParticle\IO_ExplosionDebrisEffect.cpp
|
||||
# End Source File
|
||||
# Begin Source File
|
||||
|
||||
|
@ -30,7 +30,7 @@
|
||||
#include <osg/io_utils>
|
||||
|
||||
#include <osgParticle/ExplosionEffect>
|
||||
#include <osgParticle/ExplosionDebriEffect>
|
||||
#include <osgParticle/ExplosionDebrisEffect>
|
||||
#include <osgParticle/SmokeEffect>
|
||||
#include <osgParticle/FireEffect>
|
||||
|
||||
@ -476,7 +476,7 @@ void CatchableObject::explode()
|
||||
{
|
||||
osg::Vec3 position(0.0f,0.0f,0.0f);
|
||||
osgParticle::ExplosionEffect* explosion = new osgParticle::ExplosionEffect(position, _radius);
|
||||
osgParticle::ExplosionDebriEffect* explosionDebri = new osgParticle::ExplosionDebriEffect(position, _radius);
|
||||
osgParticle::ExplosionDebrisEffect* explosionDebri = new osgParticle::ExplosionDebrisEffect(position, _radius);
|
||||
osgParticle::SmokeEffect* smoke = new osgParticle::SmokeEffect(position, _radius);
|
||||
osgParticle::FireEffect* fire = new osgParticle::FireEffect(position, _radius);
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
#include <osgText/Text>
|
||||
|
||||
#include <osgParticle/ExplosionEffect>
|
||||
#include <osgParticle/ExplosionDebriEffect>
|
||||
#include <osgParticle/ExplosionDebrisEffect>
|
||||
#include <osgParticle/SmokeEffect>
|
||||
#include <osgParticle/FireEffect>
|
||||
|
||||
@ -183,7 +183,7 @@ void build_world(osg::Group *root)
|
||||
osg::Vec3 position = computeTerrainIntersection(terrainGeode,100.0f,100.0f);
|
||||
|
||||
osgParticle::ExplosionEffect* explosion = new osgParticle::ExplosionEffect(position, 10.0f);
|
||||
osgParticle::ExplosionDebriEffect* explosionDebri = new osgParticle::ExplosionDebriEffect(position, 10.0f);
|
||||
osgParticle::ExplosionDebrisEffect* explosionDebri = new osgParticle::ExplosionDebrisEffect(position, 10.0f);
|
||||
osgParticle::SmokeEffect* smoke = new osgParticle::SmokeEffect(position, 10.0f);
|
||||
osgParticle::FireEffect* fire = new osgParticle::FireEffect(position, 10.0f);
|
||||
|
||||
@ -203,7 +203,7 @@ void build_world(osg::Group *root)
|
||||
osg::Vec3 position = computeTerrainIntersection(terrainGeode,200.0f,100.0f);
|
||||
|
||||
osgParticle::ExplosionEffect* explosion = new osgParticle::ExplosionEffect(position, 1.0f);
|
||||
osgParticle::ExplosionDebriEffect* explosionDebri = new osgParticle::ExplosionDebriEffect(position, 1.0f);
|
||||
osgParticle::ExplosionDebrisEffect* explosionDebri = new osgParticle::ExplosionDebrisEffect(position, 1.0f);
|
||||
osgParticle::SmokeEffect* smoke = new osgParticle::SmokeEffect(position, 1.0f);
|
||||
osgParticle::FireEffect* fire = new osgParticle::FireEffect(position, 1.0f);
|
||||
|
||||
@ -275,7 +275,7 @@ public:
|
||||
float intensity = handleMovingModels ? 5.0f : 1.0f;
|
||||
|
||||
osgParticle::ExplosionEffect* explosion = new osgParticle::ExplosionEffect(position, scale, intensity);
|
||||
osgParticle::ExplosionDebriEffect* explosionDebri = new osgParticle::ExplosionDebriEffect(position, scale, intensity);
|
||||
osgParticle::ExplosionDebrisEffect* explosionDebri = new osgParticle::ExplosionDebrisEffect(position, scale, intensity);
|
||||
osgParticle::SmokeEffect* smoke = new osgParticle::SmokeEffect(position, scale, intensity);
|
||||
osgParticle::FireEffect* fire = new osgParticle::FireEffect(position, scale, intensity);
|
||||
|
||||
|
@ -11,8 +11,8 @@
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#ifndef OSGPARTICLE_EXPLOSIONDEBRIEFFECT
|
||||
#define OSGPARTICLE_EXPLOSIONDEBRIEFFECT
|
||||
#ifndef OSGPARTICLE_EXPLOSIONDEBRISEFFECT
|
||||
#define OSGPARTICLE_EXPLOSIONDEBRISEFFECT
|
||||
|
||||
#include <osgParticle/ParticleEffect>
|
||||
#include <osgParticle/ModularEmitter>
|
||||
@ -21,15 +21,15 @@
|
||||
namespace osgParticle
|
||||
{
|
||||
|
||||
class OSGPARTICLE_EXPORT ExplosionDebriEffect : public ParticleEffect
|
||||
class OSGPARTICLE_EXPORT ExplosionDebrisEffect : public ParticleEffect
|
||||
{
|
||||
public:
|
||||
|
||||
ExplosionDebriEffect(const osg::Vec3& position=osg::Vec3(0.0f,0.0f,0.0f), float scale=1.0f, float intensity=1.0f);
|
||||
ExplosionDebrisEffect(const osg::Vec3& position=osg::Vec3(0.0f,0.0f,0.0f), float scale=1.0f, float intensity=1.0f);
|
||||
|
||||
ExplosionDebriEffect(const ExplosionDebriEffect& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
||||
ExplosionDebrisEffect(const ExplosionDebrisEffect& copy, const osg::CopyOp& copyop = osg::CopyOp::SHALLOW_COPY);
|
||||
|
||||
META_Node(osgParticle,ExplosionDebriEffect);
|
||||
META_Node(osgParticle,ExplosionDebrisEffect);
|
||||
|
||||
virtual void setDefaults();
|
||||
|
@ -11,9 +11,7 @@
|
||||
* OpenSceneGraph Public License for more details.
|
||||
*/
|
||||
|
||||
#include <osgParticle/ExplosionDebriEffect>
|
||||
|
||||
#include <osgParticle/ExplosionDebriEffect>
|
||||
#include <osgParticle/ExplosionDebrisEffect>
|
||||
#include <osgParticle/ModularEmitter>
|
||||
#include <osgParticle/ModularProgram>
|
||||
#include <osgParticle/RandomRateCounter>
|
||||
@ -27,7 +25,7 @@
|
||||
|
||||
using namespace osgParticle;
|
||||
|
||||
ExplosionDebriEffect::ExplosionDebriEffect(const osg::Vec3& position, float scale, float intensity)
|
||||
ExplosionDebrisEffect::ExplosionDebrisEffect(const osg::Vec3& position, float scale, float intensity)
|
||||
{
|
||||
setDefaults();
|
||||
|
||||
@ -41,12 +39,12 @@ ExplosionDebriEffect::ExplosionDebriEffect(const osg::Vec3& position, float scal
|
||||
buildEffect();
|
||||
}
|
||||
|
||||
ExplosionDebriEffect::ExplosionDebriEffect(const ExplosionDebriEffect& copy, const osg::CopyOp& copyop):
|
||||
ExplosionDebrisEffect::ExplosionDebrisEffect(const ExplosionDebrisEffect& copy, const osg::CopyOp& copyop):
|
||||
ParticleEffect(copy,copyop)
|
||||
{
|
||||
}
|
||||
|
||||
void ExplosionDebriEffect::setDefaults()
|
||||
void ExplosionDebrisEffect::setDefaults()
|
||||
{
|
||||
ParticleEffect::setDefaults();
|
||||
|
||||
@ -64,7 +62,7 @@ void ExplosionDebriEffect::setDefaults()
|
||||
}
|
||||
|
||||
|
||||
void ExplosionDebriEffect::setUpEmitterAndProgram()
|
||||
void ExplosionDebrisEffect::setUpEmitterAndProgram()
|
||||
{
|
||||
// set up particle system
|
||||
if (!_particleSystem)
|
@ -4,7 +4,7 @@ include $(TOPDIR)/Make/makedefs
|
||||
CXXFILES =\
|
||||
Emitter.cpp\
|
||||
ExplosionEffect.cpp\
|
||||
ExplosionDebriEffect.cpp\
|
||||
ExplosionDebrisEffect.cpp\
|
||||
SmokeEffect.cpp\
|
||||
FireEffect.cpp\
|
||||
FluidFrictionOperator.cpp\
|
||||
|
@ -26,7 +26,7 @@ CXXFILES =\
|
||||
IO_SmokeEffect.cpp\
|
||||
IO_FireEffect.cpp\
|
||||
IO_ExplosionEffect.cpp\
|
||||
IO_ExplosionDebriEffect.cpp\
|
||||
IO_ExplosionDebrisEffect.cpp\
|
||||
IO_VariableRateCounter.cpp\
|
||||
|
||||
|
||||
|
@ -1,28 +0,0 @@
|
||||
|
||||
#include <osgParticle/ExplosionDebriEffect>
|
||||
|
||||
#include <osgDB/Registry>
|
||||
#include <osgDB/Input>
|
||||
#include <osgDB/Output>
|
||||
|
||||
bool ExplosionDebriEffect_readLocalData(osg::Object &obj, osgDB::Input &fr);
|
||||
bool ExplosionDebriEffect_writeLocalData(const osg::Object &obj, osgDB::Output &fw);
|
||||
|
||||
osgDB::RegisterDotOsgWrapperProxy ExplosionDebriEffect_Proxy
|
||||
(
|
||||
new osgParticle::ExplosionDebriEffect,
|
||||
"ExplosionDebriEffect",
|
||||
"Object Node ParticleEffect ExplosionDebriEffect",
|
||||
ExplosionDebriEffect_readLocalData,
|
||||
ExplosionDebriEffect_writeLocalData
|
||||
);
|
||||
|
||||
bool ExplosionDebriEffect_readLocalData(osg::Object &, osgDB::Input &)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ExplosionDebriEffect_writeLocalData(const osg::Object &, osgDB::Output &)
|
||||
{
|
||||
return false;
|
||||
}
|
28
src/osgPlugins/osgParticle/IO_ExplosionDebrisEffect.cpp
Normal file
28
src/osgPlugins/osgParticle/IO_ExplosionDebrisEffect.cpp
Normal file
@ -0,0 +1,28 @@
|
||||
|
||||
#include <osgParticle/ExplosionDebrisEffect>
|
||||
|
||||
#include <osgDB/Registry>
|
||||
#include <osgDB/Input>
|
||||
#include <osgDB/Output>
|
||||
|
||||
bool ExplosionDebrisEffect_readLocalData(osg::Object &obj, osgDB::Input &fr);
|
||||
bool ExplosionDebrisEffect_writeLocalData(const osg::Object &obj, osgDB::Output &fw);
|
||||
|
||||
osgDB::RegisterDotOsgWrapperProxy ExplosionDebrisEffect_Proxy
|
||||
(
|
||||
new osgParticle::ExplosionDebrisEffect,
|
||||
"ExplosionDebrisEffect",
|
||||
"Object Node ParticleEffect ExplosionDebrisEffect",
|
||||
ExplosionDebrisEffect_readLocalData,
|
||||
ExplosionDebrisEffect_writeLocalData
|
||||
);
|
||||
|
||||
bool ExplosionDebrisEffect_readLocalData(osg::Object &, osgDB::Input &)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
bool ExplosionDebrisEffect_writeLocalData(const osg::Object &, osgDB::Output &)
|
||||
{
|
||||
return false;
|
||||
}
|
@ -14,7 +14,7 @@
|
||||
#include <osg/Object>
|
||||
#include <osg/Vec3>
|
||||
#include <osgParticle/Emitter>
|
||||
#include <osgParticle/ExplosionDebriEffect>
|
||||
#include <osgParticle/ExplosionDebrisEffect>
|
||||
#include <osgParticle/Program>
|
||||
|
||||
// Must undefine IN and OUT macros defined in Windows headers
|
||||
@ -25,10 +25,10 @@
|
||||
#undef OUT
|
||||
#endif
|
||||
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebriEffect)
|
||||
BEGIN_OBJECT_REFLECTOR(osgParticle::ExplosionDebrisEffect)
|
||||
I_BaseType(osgParticle::ParticleEffect);
|
||||
I_ConstructorWithDefaults3(IN, const osg::Vec3 &, position, osg::Vec3(0.0f, 0.0f, 0.0f), IN, float, scale, 1.0f, IN, float, intensity, 1.0f);
|
||||
I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionDebriEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
|
||||
I_ConstructorWithDefaults2(IN, const osgParticle::ExplosionDebrisEffect &, copy, , IN, const osg::CopyOp &, copyop, osg::CopyOp::SHALLOW_COPY);
|
||||
I_Method0(osg::Object *, cloneType);
|
||||
I_Method1(osg::Object *, clone, IN, const osg::CopyOp &, copyop);
|
||||
I_Method1(bool, isSameKindAs, IN, const osg::Object *, obj);
|
@ -7,7 +7,7 @@ CXXFILES =\
|
||||
CenteredPlacer.cpp\
|
||||
Counter.cpp\
|
||||
Emitter.cpp\
|
||||
ExplosionDebriEffect.cpp\
|
||||
ExplosionDebrisEffect.cpp\
|
||||
ExplosionEffect.cpp\
|
||||
FireEffect.cpp\
|
||||
FluidFrictionOperator.cpp\
|
||||
|
Loading…
Reference in New Issue
Block a user