Nothing special. Just click on Controller button or type yade.qt.Controller() in the console.
ps. May be important that I use a patch to gui/qt3/GLViewer.cpp because without it Viewer is not works (only black window).
=================================================================== --- gui/qt3/GLViewer.cpp (revision 1934) +++ gui/qt3/GLViewer.cpp (working copy) @@ -46,17 +46,17 @@ void GLViewer::paintGL(void){ /* paintGL encapsulated preDraw, draw and postDraw within QGLViewer. If the mutex cannot be locked, * we just return without repainting */ - #if BOOST_VERSION<103500 - boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex); - if(lock.locked()){ - #else - boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex,boost::defer_lock); - if(lock.owns_lock()){ - #endif - this->makeCurrent(); + //#if BOOST_VERSION<103500 + // boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex); + // if(lock.locked()){ + //#else + // boost::try_mutex::scoped_try_lock lock(Omega::instance().renderMutex,boost::defer_lock); + // if(lock.owns_lock()){ + //#endif + //this->makeCurrent(); QGLViewer::paintGL(); - } - this->doneCurrent(); + //} + //this->doneCurrent(); }
Nothing special. Just click on Controller button or type yade.qt. Controller( ) in the console.
ps. May be important that I use a patch to gui/qt3/ GLViewer. cpp because without it Viewer is not works (only black window).
======= ======= ======= ======= ======= ======= ======= ======= ======= ==== GLViewer. cpp (revision 1934) GLViewer. cpp (working copy) :paintGL( void){ 103500 try_mutex: :scoped_ try_lock lock(Omega: :instance( ).renderMutex) ; try_mutex: :scoped_ try_lock lock(Omega: :instance( ).renderMutex, boost:: defer_lock) ; owns_lock( )){ nt(); 103500 try_mutex: :scoped_ try_lock lock(Omega: :instance( ).renderMutex) ; try_mutex: :scoped_ try_lock lock(Omega: :instance( ).renderMutex, boost:: defer_lock) ; owns_lock( )){ >makeCurrent( ); :paintGL( ); nt(); >doneCurrent( );
--- gui/qt3/
+++ gui/qt3/
@@ -46,17 +46,17 @@
void GLViewer:
/* paintGL encapsulated preDraw, draw and postDraw within QGLViewer. If the mutex cannot be locked,
* we just return without repainting */
- #if BOOST_VERSION<
- boost::
- if(lock.locked()){
- #else
- boost::
- if(lock.
- #endif
- this->makeCurre
+ //#if BOOST_VERSION<
+ // boost::
+ // if(lock.locked()){
+ //#else
+ // boost::
+ // if(lock.
+ //#endif
+ //this-
QGLViewer:
- }
- this->doneCurre
+ //}
+ //this-
}