Hi Frank and Sebastian,

So i just tested "setProjectionMatrixAsPerspective" it really worked as 
alternate to makeScale, zooming the scene as expected (but not quite...)

Zooming now does not hide Silverlining's rain and clouds. That's Ok. On the 
other hand, now that i'm altering FOV, it reaches a point when zooming in, 
where the screen flashes due to each raindrop passing in front of the scene. As 
far as i could figure out by observing it, the rain is implemented as thin 
semi-transparent rectangles (raindrop) in a plane so this behavior is kind of 
expected. 

I just did a quick test trying to simulate rain using osg::ImageSequence with a 
couple of .png's resulting in animated droplets and i attached the 
imageSequence to a new osg::Camera and when i zoomed in the scene using FOV it 
solved the problem - the raindrops stayed the original size. I think i could 
use this process to render a windshield wiper swinging side to side now.

There may be a better way to solve this issue with zooming the scene while 
preserving the original rain, i'd gladly implement such a solution! :)

... 

Thank you!

Cheers,
lawrence

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59871#59871





_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to