Compute normals for GL rendering with btShapeHull

Post Reply
h[Oz]
Posts: 6
Joined: Thu Aug 29, 2013 11:49 am

Compute normals for GL rendering with btShapeHull

Post by h[Oz] »

Hi,

I want to compute normals to render a btShapeHull.

I know usually Bullet itself isn't used to get rendering info, but as I'm working on a Quartz Composer plugin, mainly used by real-time performance artists, that would make sense to be able to render Bullet's shapes correctly.

In the examples, and some sample code I found on the Internet, I just find GL immediate mode calls to render normals of a shape. As I'm using glDrawElements, I have to duplicate the shared vertices of faces to compute their normals.

My question is : is there a way to get the triangles normals on this kind of shape ? Or, may be, someone faced this problem and could be of some help.

Thank you !
Post Reply