using viewer.frame() instead of viewer.run() solved it!

How do I remove the default camera manipulator? Do I remove the corresponding event handler?

Paul Martz wrote:
If you have a Camera manipulator attached to your Viewer, it will override any changes to the Camera matrices. Viewer attaches a Camera manipulator by default.

Paul Martz
Skew Matrix Software


On Feb 17, 2008, at 5:31 PM, Per Rosengren <[EMAIL PROTECTED]> wrote:

Hod do I set the camera matrix for a viewer. If use

viewer.getCamera()->setViewMatrix(viewMatrix);
viewer.getCamera()->setProjectionMatrix(projectionMatrix);

the camera isn't affected.
<perrose.vcf>
_______________________________________________
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
begin:vcard
fn:Per Rosengren
n:Rosengren;Per
org:KTH;CVAP
adr:;;KTH;Stockholm;;SE-100 44;Sweden
email;internet:[EMAIL PROTECTED]
title:Ph.D. student
tel;work:+46 8 790 6203
tel;fax:+46 8 723 0302 
note:PGP keyID: 0xD40DD8E0
x-mozilla-html:FALSE
url:http://www.csc.kth.se/~perrose/
version:2.1
end:vcard

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to