Hi Jason,

osgParticle::PrecipitationEffect is design to be effectively infinite,
no matter how far you move it should repeat endlessly.  I've done lots
of testing on town sized models and it certainly works in this context
fine.

My guess is that your scaling of the scene has introduced issues that
the shader isn't able to cope with for some reason.  Try loaded a
model that is of a 1:1 scale to see if it works fine.

Robert.

On Thu, Feb 26, 2009 at 7:29 PM, Jason Beverage <[email protected]> wrote:
> Hi Robert,
>
> I'm playing around with the osgprecipitation example and noticed that it
> doesn't work as I would expect for large models.
>
> For example, osgprecipitation lz.osg works fine, but osgprecipitation
> lz.osg.100,100,100.scale doesn't show any rain unless you zoom in closely to
> 0,0,0.
>
> Is there a way to make the precipitation effect follow the camera so that is
> always appears to be raining?
>
> I attempted to use the setPosition method of particle effect on each frame
> to the eye point of the camera, but that didn't seem to do anything.  I also
> tried sticking the PrecipitationEffect under a MatrixTransform and
> translating the MatrixTransform to the eye point of the camera each frame
> and it didn't seem to work correctly either.  It seemed like it only
> respected the initial positioning and ignored all subsequent transforms.
>
> Thanks!
>
> Jason
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to