Not rounded shapes (using DemoApplication class)
Posted: Sat Dec 26, 2009 5:00 am
Hi, all.
I'm trying to modify one of the supplied demos to create a simple application.
For now, I only want to detect collisions, so I'm using the CollisionInterfaceDemo example.
I know that shapes are drawn using OpenGL through DemoApplication member functions. But, went I try to use a simple sphere or cylinder, I get an irregular one, I mean, without rounded shapes, very polygonal, with insufficient vertices. The result is similar when I use a convex hull with rounded edges.
Could you tell me how to change this setting or behaviour?
Does the collision detection algorithm takes into account this irregular drawn shape, or performs its calculations with a more rounded one?
Attached you can see a sample picture.
Thank you very much,
Francisco
I'm trying to modify one of the supplied demos to create a simple application.
For now, I only want to detect collisions, so I'm using the CollisionInterfaceDemo example.
I know that shapes are drawn using OpenGL through DemoApplication member functions. But, went I try to use a simple sphere or cylinder, I get an irregular one, I mean, without rounded shapes, very polygonal, with insufficient vertices. The result is similar when I use a convex hull with rounded edges.
Could you tell me how to change this setting or behaviour?
Does the collision detection algorithm takes into account this irregular drawn shape, or performs its calculations with a more rounded one?
Attached you can see a sample picture.
Thank you very much,
Francisco