2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2025-11-23 13:12:06 +00:00

Moved coordinate conversion to BSP creator instead of the BSP linker, and added a console print of the maximum number of objects in a collision leaf.

This commit is contained in:
LJW-Dev
2025-11-04 15:09:00 +08:00
parent e88f064172
commit e4f6e195f6
4 changed files with 13 additions and 5 deletions

View File

@@ -91,9 +91,11 @@ namespace
uint32_t index = tempIndices[idxOfIndex];
ufbx_vec3 transformedPos = ufbx_transform_position(&meshMatrix, ufbx_get_vertex_vec3(&mesh->vertex_position, index));
vertex.pos.x = static_cast<float>(transformedPos.x);
vertex.pos.y = static_cast<float>(transformedPos.y);
vertex.pos.z = static_cast<float>(transformedPos.z);
vec3_t blenderCoords;
blenderCoords.x = static_cast<float>(transformedPos.x);
blenderCoords.y = static_cast<float>(transformedPos.y);
blenderCoords.z = static_cast<float>(transformedPos.z);
vertex.pos = BSPUtil::convertToBO2Coords(blenderCoords);
if (surface.material.materialType == MATERIAL_TYPE_TEXTURE || surface.material.materialType == MATERIAL_TYPE_EMPTY)
{