Hello,

木戸 和彦 wrote:
> I am trying to use contrib physics library for collision detection by using 
> OSGPhysicsxxxxx classes.
> I completed to compile ODE(ver0.11.1) library on VS2008 and contrib library 
> by scon script.
> Next, i try to make a sample code(testSimplePhysics.cpp in Contrib/Physics) 
> with these libraries.
> compile and link are ended normally, but program ended by access violation.

I just tried this under linux with a ODE trunk checkout from a few 
months ago (I don't think it has significant changes compared to 
0.11.1). It seems the problem is that nowadays ODE requires a call to 
dInitODE() to initialize the library - at the time Contrib/Physics was 
written that was apparently not needed.
Adding a call to dInitODE() at the top of main in the two test programs 
makes them work for me.

> Question:
> 1. Is the OSGContrib library available?
> 2. If yes, how to build and use it? 

I think you built it correctly, the test programs have just not been 
kept up to date with changes to the ODE library.

> 3. If no, does OpenSG equip other reasonable collision detection mechanism?

There is CollDet <http://cg.in.tu-clausthal.de/research/colldet/>, I've 
not used it.

        Cheers,
                Carsten

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to