OBJ to XML converter for Spiral Knights. Requires SpiralView for further model modification.
The script will:
- Convert OBJ file's indices and vertices to XML format Spiral Knights uses.
- Recognize the primitives mode the input file uses (lines, triangles, quads).
- Calculate bounds for the model.
The script will NOT:
- Change any data that can be changed with SpiralSpy after creation (material, texture, etc).
- Normalize the model size. If the model is too big, you can scale it down in SpiralSpy by creating a new Compound model and using the model you just created as one of the assets.
- Rotate the model. Can also be fixed by creating a Compound model.
- Create new texture UV mapping. That should be done in any 3D model editor you're using.
- Download the latest release, and open either the .exe file or the .py file (the latter requires Python 3 installed).
- A console window should appear. When asked, provide the name of the OBJ model inside the script directory.
- The script should create an XML file inside the directory.
- With SpiralView open Model Viewer, Resource Editor (Ctrl+R),
File → Import from XML...
and point to the new XML you created with the script. That should provide info to the resource editor. - Save the model (Ctrl+A) in any directory and open in the model viewer.
Congratulations, you've imported a model and can create new mods with new models that never existed in the game before.