Visibility culling for chipmunk

Discuss new features and future development.

Visibility culling for chipmunk

Postby santagada » Fri May 08, 2009 2:57 am

Is there a way to query the space hash for everything inside a AABB? This could be used for visibility culling, so you only need to draw what is visible. This way you don't need two different structures one to collisions (and everything else a physics engine do) and another for visibility. I think the functions would be kind of like the cpSpaceShapePointQuery/cpSpaceStaticShapePointQuery ones.
santagada
 
Posts: 2
Joined: Fri May 08, 2009 2:46 am

Re: Visibility culling for chipmunk

Postby santagada » Fri May 08, 2009 3:16 am

I actually looked at the code and it appears that the code on cpSpaceHash already exists in the function cpSpaceHashQuery, I just need to call it like the cpSpaceShapePointQuery calls cpSpaceHashPointQuery.
santagada
 
Posts: 2
Joined: Fri May 08, 2009 2:46 am


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron