Hi Daniel,

For the osgParticle::PreciptiationEffect I used quads rather than point
sprites as point sprites are just appropriate for circular points or cases
where it's OK for the texture to be screen aligned.

With modern graphics cards I'd just pass a point to the vertex shader and
have a geometry shader generate a quad with the appropriate geometry and
texture coordinates.

Robert.


On 8 May 2013 14:02, Daniel Schmid <[email protected]> wrote:

> Hi all
>
> I use pointsprites to simulate precipitation (rain/snow). The
> implementation is completed and works very well.
>
> Now the end user decided to rotate the viewport about 90 degrees. The
> problem is now that the pointsprite texture coordinates to not take into
> accout the rotated viewport and the raindrops (small lines) are transversly
> and are not oriented in their falling direction.
>
> I tried to set a TexGen object in the stateset but what arguments do I
> have to set?
>
> Thank you!
>
> Cheers,
> Daniel
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=53959#53959
>
>
>
>
>
> _______________________________________________
> 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