zwcloud / MeshTerrainEditor-issues

Mesh Terrain Editor issue tracking and online docs
https://zwcloud.github.io/MeshTerrainEditor-issues/
5 stars 3 forks source link

Fbx file created by MTE is too large. #184

Closed zwcloud closed 3 years ago

zwcloud commented 3 years ago

Describe the bug
When use fbx as the mesh format, the saved fbx file is ridiculously large. For example, the size of a fbx file created by MTE is 10MB; after importing and saved as a new fbx file with maya, the size of fbx file becomes 500KB.

To Reproduce
Steps to reproduce the behavior:

  1. Create a mesh-terrain with fbx file format

Expected behavior
got a fbx file with reasonable size

Environment

Your solution or workaround
Import the fbx file into maya or other 3D modeling software, save the mesh as a new fbx file.

zwcloud commented 3 years ago

possible solution: https://github.com/Unity-Technologies/com.unity.formats.fbx/blob/26ef8c02c16850dc98f9903d609be41cdfdfd810/com.unity.formats.fbx/Editor/FbxExporter.cs#L805

zwcloud commented 3 years ago

Partially solved by implementing a custom FBX exporter. TODO

zwcloud commented 3 years ago

done at zwcloud/MeshTerrainEditor@4294381e7e0c4de44506a0b84ff5d8ad7d798089