I'm calling osg::Camera::setProjectionMatrixAsOrtho() and I'm getting an
orthographic projection (this is, if I look directly at the face of a
cube in wireframe, all I see is a square). I can rotate and pan, but
zoom isn't working (I'm dragging the right mouse button).
I want to allow the user to
TrackballManipulator doesn't support zoom, it only supports moving the
viewpoint forwards backwards, which has no visible effect in ortho.
You'll need to create an event handler and have it modify the camera
projection matrix.
Paul Martz
Skew Matrix Software
On Mar 26, 2009, at 8:35 AM,
Zoom in ortho is done by shrinking or expanding the view volume
defined by the left right top bottom planes.
Paul Martz
Skew Matrix Software
On Mar 26, 2009, at 8:35 AM, Cory Riddell c...@codeware.com wrote:
I'm calling osg::Camera::setProjectionMatrixAsOrtho() and I'm
getting an
Hi Cory,
Orthographics views don't function like perspective ones, when you move near
to the center, nothing actually changes w.r.t your view. This is normal and
what you shoudl expect.
If you want to simulate a perspective view by moving the left, right, top
and bottom values of the projection
Hi Robert,
Our app is a CAD app and all the views are external views of the model.
I don't have any near/far plane issues. At first I thought I could
simulate an orthographic view by moving the camera very far away then
zooming in, but no.
Anyway, I won't post to the list about this anymore.
Of Robert
Osfield
Sent: Thursday, March 26, 2009 8:48 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] zoom and orthographic projections
Hi Cory,
Orthographics views don't function like perspective ones, when you move near
to the center, nothing actually changes w.r.t your view. This is normal
6 matches
Mail list logo