Hello Christoph,
Hürzeler Christoph wrote:
> The problem I have is, that the collision detection must be executed within
> the servo thread of my phantom omni (I'd like to give some force feedback to
> the phantom based on the virtual model later on...). Therefore I must use the
> thread provided by the phantom software (libOpenHaptics). Unfortunately,
> calling OSG functions which manipulate my simplified scenegraph from within
> the servo thread cause a crash in "osg::PThreadBase::getAspect() from
> /usr/local/lib/opt/libOSGSystem.so" although I'm using beginEditCP() and
> endEditCP() statements everywhere.
how is this "servo thread" created? Is it an OpenSG thread or is it
created by another library? In the latter case you need to tell OpenSG
about that "foreign" thread, by calling something like this from it:
OSG::ExternalThread *tr;
tr = OSG::ExternalThread::get(NULL);
tr->initialize (0); // 0 == OpenSG Aspect you want to use
Hope it helps,
Carsten
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users