Modcraft - The community dedicated to quality WoW modding!

Content creation => Modelling and Animation => Topic started by: Laduguer on February 27, 2014, 04:13:47 pm

Title: [SOLVED][QUESTION] OBJ -> M2 Converter Messing Up UV Map?
Post by: Laduguer on February 27, 2014, 04:13:47 pm
Hey guys,

Having a bit of trouble here with the OBJ to M2 converter made by Garthog. The UV map works fine in Blender, but when I convert it to .M2 many of the UVs get deformed. They're all within the 0,1 space and i'm pretty sure they're per vertex as required.

Anyone have any ideas?

I can upload screens / the .OBJ if need be.

(apologies for posting this here instead of in the converter thread, but I figure this may be more of a general error)
Title: Re: [QUESTION] OBJ -> M2 Converter Messing Up UV Map?
Post by: Alastor on February 27, 2014, 05:09:45 pm
so ... UV cant be out of Image for 1st ...
like this -
http://prntscr.com/2wbh8w (http://prntscr.com/2wbh8w" onclick="window.open(this.href);return false;)
and at last ...
just convert OBJ to 3DS and back to OBJ then convert into M2
Title: Re: [QUESTION] OBJ -> M2 Converter Messing Up UV Map?
Post by: Laduguer on February 27, 2014, 05:15:17 pm
Quote from: "dahaga"
so ... UV cant be out of Image for 1st ...
like this -
http://prntscr.com/2wbh8w (http://prntscr.com/2wbh8w" onclick="window.open(this.href);return false;)
and at last ...
just convert OBJ to 3DS and back to OBJ then convert into M2

The UVs are all inside the image. Thanks for your OBJ>3DS>OBJ idea, i'll try that, but it shouldn't be necessary to do that in the first place. Anyone got any other ideas?
Title: Re: [QUESTION] OBJ -> M2 Converter Messing Up UV Map?
Post by: Rangorn on February 27, 2014, 10:12:57 pm
I think you have to fix it with 010 editor.


Try to open your m2 with 010 editor and m2 templates.
Check for struct_textures, for each texture, set the Textureflags, (not the texturetype) to 3

Like that :
http://puu.sh/7cLdo.png (http://puu.sh/7cLdo.png" onclick="window.open(this.href);return false;)
Title: Re: [QUESTION] OBJ -> M2 Converter Messing Up UV Map?
Post by: Laduguer on February 28, 2014, 12:48:20 am
Managed to fix it by doing Dahaga's suggestion of OBJ>3DS>OBJ>M2. Thanks anyway Rangorn!