[osg-users] About how to update the camera

2011-10-15 Thread ramy panda
Hi, Now I have faced a problem is that when i import a model into my own application, the model is not show at the center of the viewport, only after interacted with the model using translate function i can see the model in the view. I'm wondering that how to update the camera to make sure the

[osg-users] Qt, Manipulator keyEvent, Seeking for Help in an Emergency

2011-08-05 Thread ramy panda
Hi, In my codes, i rewrite keyPressEvent function like below: void AdapterWidget::keyPressEvent( QKeyEvent* event ) { _gw-getEventQueue()-keyPress( (osgGA::GUIEventAdapter::KeySymbol) *(event-text().toAscii().data() ) ); } In my osg codes, i write like this: bool

[osg-users] Qt + OSG , ManipulatorEventHandler Keyevent

2011-08-04 Thread ramy panda
Hi, I embeded osg in Qt in my program.Now I implement a class ManipulatorEventHndler to interact with the object in the view. But in my codes below bool ManipulatorEventHandler::handle(const osgGA::GUIEventAdapter ea, osgGA::GUIActionAdapter aa, osg::Object*, osg::NodeVisitor*)

[osg-users] TabBoxDragger Scale Problem

2011-08-03 Thread ramy panda
Hi, Now in my codes, i use TabBoxDragger to interact with the model in the scene. But when i scale the model, the x, y ,z three directions scale factor is diffient. I want to scale like glScale(factor, factor, factor) in openGL which means i want scale model with a same factor in the scene.

Re: [osg-users] cross axes

2011-08-01 Thread ramy panda
Dear Sir, I still don't know how to settle the scale problem. Would you please help me with that. Thank you very much. Jonathan Richard wrote: Hi Gianni Thank you for your reply. It's ok I finally got it working. Jonathan On Wed, Aug 11, 2010 at 9:34 AM, Gianni Ambrosio wrote:

Re: [osg-users] how to judge the model renderering progress is over in my codes

2011-07-31 Thread ramy panda
Dear Jsaon, thank you very very much. I had used another method to implement my needs. But i also read the example you recommanded. Thank you very much for you kindness answer. Thank you! Cheers, ramy -- Read this topic online here:

[osg-users] how to judge the model renderering progress is over in my codes

2011-07-27 Thread ramy panda
Hi, Now i have a problem in my codes that i want to get a large number of thumnail picture of the models. But i don't know when the model renderer progress is over and the model is show in the OSG viewport, because until the model renderer progress is over and model is show in the osg