Forum > Resources and Tools

[TOOL] Blender 2.5+ WMO import/export script

(1/11) > >>

happyhack:
plop,
i looked around a bit and it seems theres no proper import/export WMO script for blender 2.5+
Well there was an old script for 2.4x but this version is pretty old now and it didnt support export anyway.
So i started one



can just import materials and geometry for now.

edit : Updated

problems facing :
- Since blender doesnt support texture format plugin, textures have to be png files and be in wmo's directory for them to display correctly
- M2 doodads inside wmo gonna be the hard part, I still dont know how to get this work.

/! Should work for 2.5+ but only tested under 2.7

Feel free to help, just tell me so we can organize

https://www.dropbox.com/s/62k5rul2mj7o3 ... n.rar?dl=1

Informations

Options related to wmo are given through custom panels in the properties window. Each has the name "Wow <something>" and can be enabled or disabled.

There is currently 4 panels available.



Wow WMO group panel is in Object properties, it shows options relative to wmo groups.
Group name/desc are optionnal and are just referenced from inside wmo, seems to have no effect.
This panel MUST be enabled when exporting, else export will fail.

Wow material panel is in Material properties, it shows options relative to wmo shader. The only options that are exported are shown in this panel (blender materials / texture are not exported)
Materials are displayed on faces assigned to this material.
If the panel is disabled, the material is not exported and assigned faces will not be visible in game (it can still collide though)

Wow collision panel is in Data properties and are only visible when selecting a mesh. It shows options relative to wmo collisions. "collision vertex group" specifies the vertex group whose faces will be allowed to collide.

Wow light panel is in Data properties and are only visible when selecting a lamp. It shows options relative to wmo lights. This panel will probably change later.
Lights are not exported for now.

UV
Only the active UV layer is exported. UV data imported are stored in "UVmap" layer.

Vertex color
Only the active Vertex Color layer is exported. Vertex color data imported are stored in "Col" layer.

Skarn:
Dude, I'll test it right now! Awesome. Check PM please.

Serifaz:
Absolutely amazing. I was just thinking about converting some wmo's to objs and making a login screen with models. This will make my life much easier :)
[Edit]: Sorry first edit was wrong, it does work in 2.5 I fixed it. it should work with versions in between that and 2.7 I would think.

Again great job.

Skarn:
Does the export function exports working models? I mean can they be used in the game?

happyhack:
Nop, export doesnt work, there is yet some things to do before working on export (importing liquids, lights, collision meshes, and doodads)

Navigation

[0] Message Index

[#] Next page

Go to full version