hello again,
thx for answering, but i need geometry to geometry collision detection
and minimal distance computation. do you know any library which can
handle that?
bye
henry
Gordon Tomlinson wrote:
You don't really need a another library to workout the distance between 2
geodes or points
It's a straight forward calculation.
Simple get the positions of the geometries center or collision points
distance = sqrt( square( start[0] - end[0] ) + square( start[1] - end[1] )
+ square( start[2] - end[2] ) );
Depending on the collision detection you want, simple isector collions works
and is quite fast and provide in OSG
See the exmaple for various different methods
Now if you want geometry to geometry collison detection then you will need
to handle that either your self or through some 3rd party code
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mrs. Mister
Sent: Monday, May 05, 2008 12:23 PM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Collision detection and Distance measuring in OSG
hello,
i want to do collision detection and distance measurung in osg between
geodes. can someone advise me to a library which has been prooved with osg.
so that i can start up working.
i just tried SWIFT++ (http://www.cs.unc.edu/~geom/SWIFT++/) which can handle
distances. but the source is very old and a "make" doesnt compile without
own chnages of the swift++ source. it compiles, but the program segfaults in
the swift library.
now im stuck.
i did:
tesselate geodes and get a array of vertices of triangles. this i fed into
the collision/distance library to use their functions.
maybe someone has an idea.
bye
henry
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org