Hi Lucas,

On 3/27/07, wsacul <[EMAIL PROTECTED]> wrote:
Does anyone have any 1.2 compatible code that will do a fisheye or wide
angle lense effect?  I'm playing around with osgdistortion right now but I'm
not able to get it to do what I want.

The code isn't compatible with 1.2, as it relies upon the osgViewer
which is only in the SVN version of the OSG, but it does illustrate
the what you need...

The new osgdistortion example has a code path for creating distortion
correction for a full sphere use 6 separate cameras rendering the 6
sides of a texture cubemap, then a final camera to composite the
cubemap into a single distortion corrected image for a projector
mounted in the base of the sphere.

 osgdistrtion --dome mymodel.osg

Alternatively if you want to see the 6 camera use:

 osgdistrtion --faces mymodel.osg


Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to