El Viernes, 2 de Marzo de 2007 02:31, www.hesicong.net escribió: > 1.How can I write a PIPE class to draw it(or which class should I > inherit from). This pipe will be used for my collision detect.
I think you haven't got to inherit from anything, just create the 3D geometry for your object. You can take a look to the osggeometry example to see how it can be done if you create your pipe procedurally or osgviewer if you load it from disk. > 2.OpenSceneGraph Intersection detect is suit for my project? And how can > I use it? I think OSG's intersection detection is not suited for what you are looking for. It is intended primarily for visualization culling. Please someone correct me if I'm wrong but I think at the moment there isn't any OSG class that deals with collisions of a pair of 3D objects at "triangle" level. For this matter, you can use a general collision detection library like OPCODE http://www.codercorner.com/Opcode.htm I'm currently testing it and for the moment it's giving good results. Alberto _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
