Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DebugDrawing of btConvexTriMeshCollisionShapeFromOSG and btConvexHullCollisionShapeFromOSG are faulty #24

Open
GoogleCodeExporter opened this issue Mar 14, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Use a somewhat complex .osg model
2. load it in and use btConvexTriMeshCollisionShapeFromOSG / 
btConvexHullCollisionShapeFromOSG to create bullet shapes from the osg node
3. create btCollisionObjects and add the shapes to them.
4. Add collisionObjects to a btCollisionWorld.
5. create a osgbCollision::GLDebugDrawer instance.
6. set the debug drawer instance as debugdrawer of the btCollisionWorld instance
7. add the drawer->getSceneGraph to a root of an osg::viewer
8. put the debugdrawing in a simple viewer loop.

What is the expected output? What do you see instead?

the GLDebugDrawer does not even draw a ConvexTriMesh shape (while the objects 
are present in bullet and collidable)

the debug drawn version of the convexHull does not actually draw a hull but 
rather just a full tri-mesh of the model.

What version of the product are you using? On what operating system?
win7 64bit osgw 2.0 + osgb 2.0

Please provide any additional information below.

Both situations assume no explicit osg variation has been loaded and all 
scenegraph information is purely derived from whatever is provided to the 
debugdrawer.



Attached is the code, should be copied into collision.cpp of the Example 
collision.
change std::string complexmodel = "roundabout.osg"; into an concave osg model 
that also has a bunch of internal stuff.

(Feel free to mail, I can provide a model if needed)

Original issue reported on code.google.com by [email protected] on 16 Oct 2013 at 11:01

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant