[osg-users] Blurred scenes for camera in motion
Suraj Paul
suraj at isac.gov.in
Thu Feb 9 01:13:23 PST 2017
Hi everybody,
I am trying to to simulate a scene that can be used to stimulate a stationary camera to feel as if the camera is under motion. (The camera is used to detect height from terrain surface and its velocity from the images it captures.)
I know the values of focal length of camera, FOV, Aperture of len of the camera.
I want to create an artificial scene (for testing the camera) where there is motion blur on the objects as it would be perceived by the camera if it was in actual motion (translation, approaching a terrain & motion away from terrain).
I went through the osgmotionblur.cpp. In my case i feel that:
a) the persistence value is to be changed according to the velocity of the camera to create a realistic blurred scene.
b) the change in persistence value also needs to account for the depth of objects in the scene because for a given velocity of camera, closer objects would undergo more blurring compared objects lying far off in the scene.
Can anyone help me / give some ideas on how to do these, a) and b) , in openscene graph? Any code snippet would be of great help to me.
Also, as i am attempting it for the first time to test a camera under motion, please suggest any other parameters apart from blurring i need to consider for a realistic scene simulation.
...
Thank you!
Cheers,
Suraj
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70132#70132
More information about the osg-users
mailing list