HearthSim / UnityPack

Python deserialization library for Unity3D Asset format
https://hearthsim.info/
MIT License
720 stars 153 forks source link

Export meshes as OBJ #4

Closed andburn closed 8 years ago

andburn commented 8 years ago

Implemented basic OBJ exporting, works for the unity 4 & 5 bundles I have.

Elements not implemented:

Don't know how widespread these missing features are, but I didn't encounter them.

andburn commented 8 years ago

Updated:

andburn commented 8 years ago

Updated:

jleclanche commented 8 years ago

I think they fit better inside the OBJMesh class, as they are specific to the OBJ format

I wouldn't disagree if these were generic vectors but... just call them OBJVector2, OBJVector3 etc and you should be fine.

andburn commented 8 years ago

Ok. One other thing. Its outputting the values to 15 decimal places, does rounding it down to 6-8 seem sensible?

jleclanche commented 8 years ago

We can figure that out another time.

andburn commented 8 years ago

Updated to use __str__

jleclanche commented 8 years ago

Thank you!