Re: [osg-users] Camera Callback

2009-05-14 Thread Ruiying Wang
Hope this helps, J-S ... Thank you! J-S It helps a lot. Currently, I just don't call viewer.run() to avoid the installation of a manipulator. I tried something stupid like setCameraManipulator(NULL), seems not working:) Cheers, Ruiying -- Read this topic online here:

[osg-users] Camera Callback

2009-05-13 Thread Ruiying Wang
Hi, guys I've been playing adding a camera call back. But I can't figure out why I can change the background clear colour, yet I can't set the view matrix of the camera? Code: viewer.getCamera()-setUpdateCallback( new CameraUpdateCallback ); ... Thank you! Cheers, Ruiying[/code]

Re: [osg-users] Camera Callback

2009-05-13 Thread Jean-Sébastien Guay
Hello Ruiying, I've been playing adding a camera call back. But I can't figure out why I can change the background clear colour, yet I can't set the view matrix of the camera? Do you have a camera manipulator on your View? If so, the manipulator's calculated view matrix will override