Hi!
I'm working on a Mesh Combiner tool for merge meshes to reduce draw calls on mobile platforms.
The tool must be able to save the combined mesh on disc to be used as a prefab.
Easiest way I found was to write my own parser for .obj file and it works great, except **Unity does not want to load the vertex color part**.
Looking into the *sharedMesh* variable of the *MeshFilter* component that has the original meshes (imported from .fbx file), the colors are all there. Doing the same on the .obj file I created, the array with the colors is empty.
I know for a fact that the colors are parsed, because I obviously checked the .obj file while working on the parser.
In conclusion, it seems that Unity ignores vertex color information from an .obj file.
Does anyone know a way of importing vertex colors from an. obj file?
Thank you in advance!
↧