Hello, I am with Mentor Graphics and we are developing a 3DViewer for our ExpeditionPCB software.  We run on Windows, Linux 7.3, ew3 and ew4 platforms.  We are currently using OSG 0.9.9 and I am running into some issues on Linux.  In Windows we us the on button up and down functions to manipulate the object in the 3DViewer.  In Linux we use a trackball function that calculates the matrices. 
 
There is a OnStartRendering function that will do a DoFrame in Windows this function is called from any mouse movement or button click so there is no issue with the rendering.  In the OnStartRendering function there is a while loop and while in Linux while rendering you are constantly in this while loop.  This causes the CPU to spike, but if I but in a break in the while loop or exit the function the object on the screen stops moving.  After I am out of the OnStartRendering function the 3DViewer no longer recognizes any input from the mouse.  Unless I force it to get back into the OnStartRendering function.  Once this happens all mouse commands are recognized but the CPU will continue to spike once in the function again.  So the question is how do I get the Scene Graph to recognize my mouse input once I am out of the OnStartRendering function?  I need the mouse input so that I can call the OnStartRendering function which in return will let me manage the CPU spikes.  Any input would be welcome.
 
Thanks,
 
Shane
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to