Monster update which adds detail height meshes.

- Added detail height mesh generation (RecastDetailMesh.cpp) for single,tiled statmeshes as well as tilemesh.
- Added feature to contour tracing which detects extra vertices along tile edges which should be removed later.
- Changed the tiled stat mesh preprocess, so that it first generated polymeshes per tile and finally combines them.
- Fixed bug in the GUI code where invisible buttons could be pressed.
This commit is contained in:
Mikko Mononen
2009-08-24 12:44:44 +00:00
parent b1addd3574
commit 6de4d30705
33 changed files with 5321 additions and 1765 deletions

View File

@@ -447,7 +447,7 @@ static void removeAdjacentNeighbours(rcRegion& reg)
}
}
void replaceNeighbour(rcRegion& reg, unsigned short oldId, unsigned short newId)
static void replaceNeighbour(rcRegion& reg, unsigned short oldId, unsigned short newId)
{
bool neiChanged = false;
for (int i = 0; i < reg.connections.size(); ++i)
@@ -467,7 +467,7 @@ void replaceNeighbour(rcRegion& reg, unsigned short oldId, unsigned short newId)
removeAdjacentNeighbours(reg);
}
bool canMergeWithRegion(rcRegion& reg, unsigned short id)
static bool canMergeWithRegion(rcRegion& reg, unsigned short id)
{
int n = 0;
for (int i = 0; i < reg.connections.size(); ++i)