You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've come here from esmini openscenario player that is built upon openscengraph engine. There one can set camera position and direction for the viewer.
However there is no option to set focus distance of the camera. So I examined osg code a bit (also coding examples) and did not find any place where one could set focus distance.
So the question is: is it even possible? Could you advice on what would be the proper way of setting such a camera property?
The text was updated successfully, but these errors were encountered:
The osg::Camera doesn't have a focus distance because the standard OpenGL fixed function pipleline has no concept of focus.
Focus distance is tied to depth blurr rendering techniques, so requires multipass rendering a custom shaders. This is something that users must write themselves.
The osg::Camera doesn't have a focus distance because the standard OpenGL fixed function pipleline has no concept of focus.
Focus distance is tied to depth blurr rendering techniques, so requires multipass rendering a custom shaders. This is something that users must write themselves.
Thank you! could you also advise on focal length. I would like to reproduce FOV of my real camera .
I can point you in the right direction for OSG features but not general graphics. You'll need to do your own research, there is plenty of resources available on the web.
Hi!
I've come here from esmini openscenario player that is built upon openscengraph engine. There one can set camera position and direction for the viewer.
However there is no option to set focus distance of the camera. So I examined osg code a bit (also coding examples) and did not find any place where one could set focus distance.
So the question is: is it even possible? Could you advice on what would be the proper way of setting such a camera property?
The text was updated successfully, but these errors were encountered: