Modcraft - The community dedicated to quality WoW modding!

Projects => Development and Presentation => Topic started by: hornobster on August 29, 2011, 02:55:25 pm

Title: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post 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:

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
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: doresain on August 29, 2011, 04:14:11 pm
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
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: hornobster on August 29, 2011, 05:01:21 pm
Quote from: "doresain"
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
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Laniax on August 29, 2011, 08:04:00 pm
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.
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Garthog on August 29, 2011, 11:56:00 pm
LOD means level of detail yep. It's the file that the object looks better when you get closed !
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Steff on August 30, 2011, 04:00:54 am
I also use only max :)
I dont get warm with blender.
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: hornobster on August 30, 2011, 12:09:30 pm
Quote from: "Garthog"
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
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: schlumpf on August 30, 2011, 12:33:57 pm
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.
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: hornobster on August 30, 2011, 05:37:47 pm
Quote from: "schlumpf"
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...
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Tigurius on August 30, 2011, 05:41:29 pm
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.
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: hornobster on August 30, 2011, 06:02:56 pm
Quote from: "Tigurius"
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
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Zim4ik on August 31, 2011, 10:39:29 am
I think that m2 importer allready created
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Laniax on August 31, 2011, 11:15:52 am
Quote from: "Zim4ik"
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.
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Guest on August 31, 2011, 01:48:17 pm
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
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: schlumpf on August 31, 2011, 01:53:26 pm
Quote from: "tyler durtan"
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.
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Zim4ik on August 31, 2011, 08:23:56 pm
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
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Steff on August 31, 2011, 09:23:05 pm
Please put in resources section with some infos about it. Usage and what it is for.
:)
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: hornobster on September 01, 2011, 10:31:25 am
Quote from: "Zim4ik"
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!
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Zim4ik on September 01, 2011, 10:46:51 am
It imports my models, and blizzmodels. tested on wotlk 3.35a
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: hornobster on June 25, 2012, 12:37:39 pm
I'm resuming the project after almost 1 year due to school... :D
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: askion on June 25, 2012, 08:35:25 pm
Sweeeeet, Cant wait for exporter : D
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: Will on June 28, 2012, 12:41:51 pm
Will probably use once animation is included ^^
Title: Re: [TOOL][WIP] M2 Importer/Exporter 3ds max plugin
Post by: hornobster on June 28, 2012, 02:27:36 pm
Quote from: "Will"
Will probably use once animation is included ^^
that's the worst part lol