Hi Robert,
We have an approriate saying for this in Norwegian "it's your eyes that
turn blind first!". Somehow I didn't see this setting when looking
through the documentation, but it works, so please disregard the
previous submission.
Setting
ParticleSystem::setParticleScaleReferenceFrame(LOCAL_COORDINATES) for
the particle systems in the cessnafire model, makes the whole model
(including particles) scale as expected.
Thanks for excellent support!!
Best regards,
John
Robert Osfield wrote:
Hi John,
I just did a quick search of the osgParticle headers, and came across
the following:
enum ParticleScaleReferenceFrame
{
LOCAL_COORDINATES,
WORLD_COORDINATES
};
/** Set whether the particles should be scaled relative to
world coordaintes or local coordinates.*/
void setParticleScaleReferenceFrame(ParticleScaleReferenceFrame
rf) { _particleScaleReferenceFrame = rf; }
/** Get whether the particles should be scaled relative to
world coordaintes or local coordinates.*/
ParticleScaleReferenceFrame getParticleScaleReferenceFrame()
const { return _particleScaleReferenceFrame; }
Have you tried use these osgParticle::ParticleSystem scale methods?
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org