Jump to content

Typescript/Javascript MU file reader/writer


Recommended Posts

https://github.com/PatPL/muTS

I ported the blender python plugin (https://github.com/taniwha/io_object_mu) to Typescript.

You can use it to read and tweak values of MU files in JS based environments like a web browser on node application.

License:

Attribution-NonCommercial-ShareAlike 4.0 International
 

https://creativecommons.org/licenses/by-nc-sa/4.0/

ipyvoJD.png3YsFAkE.png

Example browser .mu model viewer created using (amongst other things) muTS:

7GI9nmJ.gif

Edited by PatPL1
license
Link to comment
Share on other sites

30 minutes ago, Stone Blue said:

THANX PatPL1! :D

I wonder if it will matter, that if you grabbed it from the master, that the master is for Blender v2.8 only...???

Any thoughts @taniwha?

 

I believe the blender version doesn't matter. The code I ported just reads the file and tries to represent it in a format easily understandable in the code. I didn't read all of the code, but I believe everything else there is just to display this data from easy to read from python object in Blender.

Other than that, the mu.py in master wasn't touched in like 5 months

Link to comment
Share on other sites

mu.py is almost entirely independent of blender (only the conversions of vectors and quaternions between left (unity) and right (blender) handed systems, and the triangle vertex order is blender-dependent), the same goes for most of the rest of the .py files in the top-level directory on the master branch (exception being __init__.py) as they are all various little command-line utilities.

Link to comment
Share on other sites

@taniwha How did you figure out the structure of this format? I couldn't find any official references to work with. Did you just look at multiple files in hex editor and try to make sense of that? Did you contact someone from Squad?

Link to comment
Share on other sites

  • 1 month later...
This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...