Modcraft - The community dedicated to quality WoW modding!
Projects => Development and Presentation => Topic started by: hornobster on August 29, 2011, 02:55:25 pm
-
Hi everyone :D
I'm currently working on a M2 importer/exporter for 3ds max 2012 so that everything the model needs could be set within 3ds max without external programs...
I managed to make a simple importer so far. It imports vertex positions, normals and UV coords...
More features will be added in the future and then I'll make an exporter.
Atm the importer looks for the first .skin file only (name00.skin) since I can't realise what the other skins are used for(does LOD mean "level of detail"?)...
Works with 3ds max 2012:
64-bit: http://www.mediafire.com/?xd5rlw2qq47b459
32-bit: http://www.mediafire.com/?a7d583swh3jg3db //NOTE: not tested
Usage: in 3ds max, File>Import.. Choose Blizzard (.M2) and open the M2... the skin file must be in the same folder.
Features
Importer:
- Vertex positions DONE!
- Vertex normals DONE!
- Vertex texture coordsDONE!
- Attachments 90% they arent linked to their bone
- Submeshes TO DO
- Texture Units (they are needed for models with more than one texture right?) TO DO
- Cameras TO DO
- Animations TO DO last thing I will implement xD
- Et cetera... xD TO DO
Exporter: TO DO
I'm thinking of making a modifier plugin which will hold all the data and then the export will take that data into an M2...
I don't know what modeling programs you are using, but if this works we won't need all the different programs we have now to change little parts, everything will be included in 3ds max.
Please report any bug :P
-
why writing a importer/exporter plugin for a closed source program?
make a plugin for an opensource program and release source code, a lot of people may be interesting to the project and help you to development
:D
-
why writing a importer/exporter plugin for a closed source program?
make a plugin for an opensource program and release source code, a lot of people may be interesting to the project and help you to development
:D
because I've always used 3ds max and gmax.... I tried to learn blender what it was too difficult xD
-
Huge props for this, exactly what we need.
I dont know to much about maxscript, but i've been modelling and animating in 3dsmax for years, if you need any info. let me know.
-
LOD means level of detail yep. It's the file that the object looks better when you get closed !
-
I also use only max :)
I dont get warm with blender.
-
LOD means level of detail yep. It's the file that the object looks better when you get closed !
so modelname01.skin is more detailed than modelname00.skin or the opposite?
thanks for the info anyway :D
Now I'm working on attachments which will be displayed as little cubes and then linked with the correct bone... but how many bytes is it big? because there's that ABlock at the end, and I don't know its dimension... someone should add it to the wiki :P
-
Actually, I'm not sure about it being LOD. It should be though.
Animation blocks are documented at the top. Also, they all have the same size except for what they point to.
-
Actually, I'm not sure about it being LOD. It should be though.
Animation blocks are documented at the top. Also, they all have the same size except for what they point to.
I found they are 20 bytes long... add it to the wiki please :P
UPDATE:
Added attachments import.
64-bit: http://www.mediafire.com/?xd5rlw2qq47b459
32-bit: http://www.mediafire.com/?a7d583swh3jg3db
They will be shown as little cubes (0.1 size) and the name changes depending on the id...
They aren't linked to their bone yet since there are no bones at the moment xD
I found some interesting things using it :P
for example the bloodelf male has 2 demolishervehicle attachments in his left hand xD
attachments IDs 9 and 10 might be related to HipSheath or somehing to do with waist... who knows?
also I noticed that the importer found some duplicate attachments... I mean 2 or more attachments with the same ID... is it normal?? how can WoW recognise the difference?
in addition, I didnt know that character models contained all the models for shirts, boots, gloves, cloaks, leggings and kilts, all the hair styles... they're all together.. I guess they are registered in the Submeshes block and when they're not needed WoW applies a completely transparent texture...
(http://i55.tinypic.com/v6uqgp.jpg)
Another thing I noticed is that attachment position is NOT relative to the bone pivot as stated in the wiki.. it is linked with that bone and shares its rotation and translation but the position is absolute not relative...
-
http://pxr.dk/wowdev/wiki/index.php?tit ... animations (http://pxr.dk/wowdev/wiki/index.php?title=Talk:M2/WotLK#On_animations" onclick="window.open(this.href);return false;)
and LOD was something about Bone Level of Detail or so.
-
http://pxr.dk/wowdev/wiki/index.php?title=Talk:M2/WotLK#On_animations
and LOD was something about Bone Level of Detail or so.
thanks I didn't notice that page!
I've checked different skins for Belfmale and the geometry doesn't change, same faces and same vertices... so it's not "geometry" level of detail
-
I think that m2 importer allready created
-
I think that m2 importer allready created
I guess your talking about this
http://3d-inferno.com/Diverse/index.php ... orter&v2=0 (http://3d-inferno.com/Diverse/index.php?v0=Diverse&v1=Wow%20Importer&v2=0" onclick="window.open(this.href);return false;)
It's horribly outdated, and i doubt if it still works. Result isn't really beautiful either.
Maybe you can use it for some structure info though.
-
possibly a nice place to start but if you read it only supports to wow version 2.xx-2.7 (which I did not realise existed)
so props to the dev, amazing work!, has anybody made an adt importer as that could be very useful
-
possibly a nice place to start but if you read it only supports to wow version 2.xx-2.7 (which I did not realise existed)
so props to the dev, amazing work!, has anybody made an adt importer as that could be very useful
The last version of 2 was 2.4.3.
-
http://xgm.ru/p/sc2/m3-to-max/download (http://xgm.ru/p/sc2/m3-to-max/download" onclick="window.open(this.href);return false;)
No. this script. it loads all
-
Please put in resources section with some infos about it. Usage and what it is for.
:)
-
http://xgm.ru/p/sc2/m3-to-max/download
No. this script. it loads all
I don't think that would work with Wotlk M2s... it says Starcraft 2 M3...
I'll test it anyway and I'll analise the code... It will surely help :D thanks!
-
It imports my models, and blizzmodels. tested on wotlk 3.35a
-
I'm resuming the project after almost 1 year due to school... :D
-
Sweeeeet, Cant wait for exporter : D
-
Will probably use once animation is included ^^
-
Will probably use once animation is included ^^
that's the worst part lol