WOM-Converter (bdew edition)

Tools for helping with server hosting, or Wurm Unlimited in general.
Post Reply
User avatar
bdew
Cart loader
Cart loader
Posts: 29
Joined: Sun Jul 26, 2020 5:22 am

WOM-Converter (bdew edition)

Post by bdew »

This is a fork of WOM-Converter by warlander

Latest version can be downloaded from my GitHub: https://github.com/bdew-wurm/WOM-Converter/releases

Changes:
  • Added stripping of windows paths from textures (original only stripped unix-style paths with "/")
  • Print actual error if model fails to load instead of crashing with NPE
  • Added check for too many vertices in a mesh
New options:

-forcemats <file>
File should contain lines like

Code: Select all

farm.jpg=farmwurm
Will cause all materials that use "farm.jpg" texture to be renamed to "farmwurm"

-matreport <file>
Will generate a report on which materials/textures are used and write it to file (to easily see names for overrides)

Code: Select all

4a planter bed black mushroom young untended.obj
- shroomMat1 -> black_mushroom.png
- dirtwurm -> dirt.dds
- Soil -> dirt.jpg
- oakplank -> Plank_oak.dds
Exporting nulls
  • You need to use formats that actually support them, from my testing - DAE works, OBJ doesn't
  • Only nulls named "wom-...." will be exported, and the wom- prefix will be stripped
  • Transformations from nulls aren't applied to any meshes, so your meshes should have whatever transformations they need baked in
When exporting a null you will see something like this in the output:

Code: Select all

+ wom-candle1 (0 children / 0 meshes)
 -> 0.400000 0.000000 0.000000 -1.070009
 -> 0.000000 0.400000 0.000000 0.208436
 -> 0.000000 0.000000 0.400000 0.262663
 -> 0.000000 0.000000 0.000000 1.000000
I will be doing more work on this soon, for now it's good enough to add attachment points for effects, lightsource, etc. It's not usable for animations yet.

Post Reply