Hi Julio, The OSG by default clamps the near/far planes to the extents of your model. You can disable this via:
viewer.getCamera()->setComputeNearFarMode(osg::CullSettings::DO_NOT_COMPUTE_NEAR_FAR); This has nothing to do with culling though, you seem to confuse near/far planes and culling in your post. The methods you mention have nothing to do with the OSG itself too, I can only presume you are writing psuedo code or have other funcitons that only your code has, but are not in the OSG... which kinda makes it hard to other to really understand what you are doing. It may be best to simply buy one of the OSG books and work through it, it'll help your tremendously with understanding how things all work. Robert. On 19 October 2013 12:03, Julio Jerez <[email protected]> wrote: > Oh I do no wnat to change the culling, all I want to know is why OSG > change the projection matrix to and arbitrary near plain of 0.2 and far > plane of 228**** > > ** ** > > I set the camera to be projection to **** > > ** ** > > SetCameraProjectionMatrix (0.5 * 3.1416f, 1.33f, 0.01, 1000.0f);**** > > ** ** > > but when I ge the Plojection matrix on a visitor callback the projection > matrix correspond to one of **** > > ** ** > > SetCameraProjectionMatrix (0.5 * 3.1416f, 1.33f, 0.2, 225.0f);**** > > ** ** > > and that seen to be changed by the cullling system of osg, **** > > all I want is to have camera that I am specifying.**** > > Thanks **** > > ** ** > > ** ** > > _______________________________________________ > 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

