Hi, thank you for your reply. I solved the problem by computing the world's
bounding sphere and then computing the minimum distance from the eye to the
near clipping plane by using a formula I found in OpenGL forums:
Code:
boundingSphere.radius() / sin( osg::DegreesToRadians( FIELD_OF_VIEW *
@lists.openscenegraph.org
Subject: [osg-users] Fitting my world into the viewport
Hi, I'm very new to OSG and OpenGL programming in general, but right now
I'm working on my thesis and my application requires to load several
models on the same scene. Once every model is done loading, I must
adjust the viewer's settings
Have you tried just calling the manipulators 'computeHomePosition' then 'Home'
function?
--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=51697#51697
___
osg-users mailing list
Hi,
On Sun, Dec 23, 2012 at 4:14 PM, Daniel Peraza danielper...@gmail.comwrote:
Hi, I'm very new to OSG and OpenGL programming in general, but right now
I'm working on my thesis and my application requires to load several models
on the same scene. Once every model is done loading, I must
I'm not using any custom Qt manipulator, I'm using OSG ones, i.e.
osgGA::TrackballManipulator. I'm using Qt only for my application GUI, and my
code is based on the OSG Cookbok recipe, where I define an osgWidget class and
pass a camera pointer.
Besides that, my intention is not using the
Hi, I'm very new to OSG and OpenGL programming in general, but right now I'm
working on my thesis and my application requires to load several models on the
same scene. Once every model is done loading, I must adjust the viewer's
settings so that an user is able to see the entire scene. I know
6 matches
Mail list logo