Hello Daniel,

I don't know if I get the problem correctly. So what you want is essentially to rotate the texture on the pointsprite.
I can think of various solutions:
1. Setup the TextureMatrix to represent your rotation in texture space.
2. Use a vertex shader to do the rotation your-self (e.g. in your case you might swap xy to yx)
3. Rotate the texture ;-)

cheers
Sebastian
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