-
Notifications
You must be signed in to change notification settings - Fork 152
Export meshes as OBJ #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
unitypack/export.py
Outdated
def export(self): | ||
vns = self.vertices["normals"] | ||
vts = self.vertices["uv1"] | ||
out_str = "" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is very slow. Create a list ret = []
, and do return "\n".join(ret)
.
Updated:
|
unitypack/export.py
Outdated
return len(streams) | ||
|
||
|
||
def extract_indicies(mesh): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indices
Updated:
|
I wouldn't disagree if these were generic vectors but... just call them OBJVector2, OBJVector3 etc and you should be fine. |
Ok. |
We can figure that out another time. |
Updated to use |
Thank you! |
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.