Hi Ricky,

There isn't a concept of focal length with OpenGL or OSG cameras.
Focal length is only relevant when you use depth of field effects
which the OSG doesn't provide out of the box - it's something you have
to implement yourself with an appropriate slave camera or render to
texture camera in the scene graph.  Perhaps you mean something
different than focal length though...

As for pixel size, you have full control over the viewport and project
matrix, the OSG will provide the defaults, but you can set these all
you yourself.  See the osgcamera example.

Robert.

On Thu, Aug 5, 2010 at 3:01 PM, Ricky Flintoff <[email protected]> wrote:
> Hi,
>
> I wanted help with setting these five camera parameters: focal length, f, the 
> location of the image in pixel coordinates (o_x, o_y), the effective pixel 
> size in the horizontal and vertical direction (s_x, s_y)? How can I set these 
> is osg??
>
> Thank you!
>
> Cheers,
> Ricky
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=30558#30558
>
>
>
>
>
> _______________________________________________
> 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