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

Add support for rasterizing filled convex volumes and filled OBBs #122

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

richard-fine
Copy link
Contributor

Add methods for rasterising filled volumes: arbitrary convex volumes (defined by a set of points), and OBBs (defined by center/extent and forward/up vectors).

This should make it a bit easier to feed Recast with 'solid' data and stop it generating navmesh inside objects, etc.

Arbitrary convex volumes are handled by rasterising all the triangles that compose the volume into a temporary second highfield, and then coalescing all the spans in each cell of that heightfield and merging it back into the main one. OBBs just calculate the vertices and then hand off to the convex volume code.

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

Successfully merging this pull request may close these issues.

None yet

2 participants