Topper
09-02-2011 18:27:50
Hi
i try to generate a constant stream of fluid particles. this works, but i need it to fly an specific distance. The problem is when i increase the motionLimitMultiplyer my fluid fly's long enough but it has gaps. How can i close the gaps?
here is my fluid and emitter description:
here you can see the gaps:
i try to generate a constant stream of fluid particles. this works, but i need it to fly an specific distance. The problem is when i increase the motionLimitMultiplyer my fluid fly's long enough but it has gaps. How can i close the gaps?
here is my fluid and emitter description:
float radius = 0.02;
float rPpM = 1.0/radius;
// create Fluid
NxOgre::FluidDescription desc;
desc.mMaxParticles = 32000;
desc.mKernelRadiusMultiplier = 1.0f;
desc.mRestParticlesPerMetre = rPpM;
desc.mMotionLimitMultiplier = 8;
desc.mPacketSizeMultiplier = 8;
desc.mCollisionDistanceMultiplier = 1.0f;
desc.mStiffness = 5.0f;
desc.mViscosity = 100.0f;;
desc.mRestDensity = 1000.0f;
desc.mDamping = 0.0f;
desc.mFadeInTime = 0.0f;
desc.mRestitutionForStaticShapes = 0.10f;
desc.mRestitutionForDynamicShapes = 0.10f;
desc.mDynamicFrictionForStaticShapes = 0.50f;
desc.mDynamicFrictionForDynamicShapes = 0.50f;
desc.mCollisionResponseCoefficient = 0.10f;
NxOgre::FluidEmitterDescription edesc;
edesc.mParticleLifetime = 2.0;
edesc.mRate = 300;
edesc.mFluidSpeed = 100.0f;
edesc.mType = NxOgre::Enums::FluidEmitterType_Pressure;
edesc.mReplusionCoefficient = 0.00f;
edesc.mDimensionX = 0.020f;
edesc.mDimensionY = 0.020f;
here you can see the gaps: