Page 1 of 1
Maya/3dsMax import script for custom 3d model file format
Posted: Tue Jul 13, 2010 3:25 pm
by djoscar
Hello
I would like to write a script or plugin for either Maya or 3ds Max to import a 3d model from one game.
I do have programming experience using several languages and experience in 3d modelling, how ever I've never tried writing any scripts or plugins for any of that software.
I'm sure at least some of people here know how to do it. Could you please point me to the right direction, or link me to some tutorials or something?
I tried googling, but can't seem to find any documentation on writing importers for custom 3d model files
Thanks
Re: Maya/3dsMax import script for custom 3d model file format
Posted: Tue Jul 13, 2010 6:16 pm
by chrrox
post your 3d model you want to import and then weather you want to make a script for blender or 3ds max and someone can point you in the right direction.
Re: Maya/3dsMax import script for custom 3d model file format
Posted: Tue Jul 13, 2010 7:35 pm
by djoscar
The contents of this post was deleted because of possible forum rules violation.
Re: Maya/3dsMax import script for custom 3d model file format
Posted: Wed Jul 14, 2010 3:00 am
by chrrox
those models are from runescape i found a model viewer for those
http://www.moparscape.org/smf/index.php?topic=385295.0
Re: Maya/3dsMax import script for custom 3d model file format
Posted: Wed Jul 14, 2010 9:06 am
by djoscar
I know.. That's what I said in the first post that there are plenty of viewers and converters for this format, but all of them convert to formats like .mqo and .3ds, so only the mesh is converted.
I want to write a 3dsMax import script or something which would import the model WITH skeletal and everything, not just mesh. That's why I posted this topic lol.
I've been trying to write the script all day today, but I fail for several reasons. First of all I don't have enough knowledge, and second of all the format is somewhat different from other model formats... Info like vert, face count etc. is stored in footer instead of header, and the whole thing is just plain weird. E.g. if model has 1917 verts (077D in hex), I'd look for the reverse of that (7D07) using hex editor, but it's not reversed there and it's stored normally like 077D... That fucks everything up when I try to make maxscript read the vert count, because when it reads it, it reads it in reverse order, so instead of reading 077D it reads 7D07 which is not the right vert count :S
uhh this gives me headache

Re: Maya/3dsMax import script for custom 3d model file forma
Posted: Thu Jul 15, 2010 11:33 am
by Wobble
[out]
Re: Maya/3dsMax import script for custom 3d model file format
Posted: Thu Jul 15, 2010 1:53 pm
by djoscar
The old and new format is almost the same. Footer of the new format might have few extra things but other than that it's same.
My friend wrote a tool a while ago which converts the models to .3ds using the information above and the tool works perfectly fine with old AND new models

Re: Maya/3dsMax import script for custom 3d model file forma
Posted: Fri Jul 16, 2010 12:01 am
by Wobble
[out]