Page 1 of 3

Dragon Ball Xenoverse *.emd

Posted: Fri Nov 07, 2014 5:20 pm
by killercracker
I wrote this maxscript not too long ago for Dragon Ball Xenoverse and everything is just about done but I can't get the weighting right. I've never done weighting before and don't have much for a reference. I could need some help here. If anyone could look over the code and tell me what I'm doing wrong, the help would be very much appreciated.

Image

I've listed a couple example files and scripts.

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Nov 08, 2014 12:05 pm
by shakotay2
well, some vertices simply don't move when moving a bone.
So they have a weight's sum of 0.0 what they shouldn't.

Could be possible that there's a VertexID to be read from the model file.

Also the sum of weights is > 1.0 for 688 of 2062 vertices of the upper body.
But this problem should vanish as soon as the first one is solved.

btw: nice scripts, great work!:) (the weighting part is borrowed from someone else?)

edit: didn't find VerticeIDs. But it's strange that many vertices have boneID 1 assigned more than once.
So I tried using boneid (instead of boneid + 1) and if (bonex != 0) then
but with no luck.

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Nov 08, 2014 12:58 pm
by chrrox
can you send his textures also?

Re: Dragon Ball Xenoverse *.emd

Posted: Sun Nov 09, 2014 4:12 am
by killercracker
VertexID? I'm sorry I don't understand. Anyways thanks, my scripts are often a frankenstein of various other scripts I find. The textures are in EMB archives, the same as the SF4 games. I was able to get the raws from sf4 asset explorer but it turns out they happen to be dds files with a modified header.

http://www.mediafire.com/download/2j6zg ... xtures.rar

Re: Dragon Ball Xenoverse *.emd

Posted: Fri Nov 14, 2014 11:00 am
by raykingnihong
killercracker wrote:VertexID? I'm sorry I don't understand. Anyways thanks, my scripts are often a frankenstein of various other scripts I find. The textures are in EMB archives, the same as the SF4 games. I was able to get the raws from sf4 asset explorer but it turns out they happen to be dds files with a modified header.

http://www.mediafire.com/download/2j6zg ... xtures.rar
This game is very classic, hope someone can modify the script error. Support

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Nov 29, 2014 6:27 pm
by raykingnihong
killercracker wrote:I wrote this maxscript not too long ago for Dragon Ball Xenoverse and everything is just about done but I can't get the weighting right. I've never done weighting before and don't have much for a reference. I could need some help here. If anyone could look over the code and tell me what I'm doing wrong, the help would be very much appreciated.

Image

I've listed a couple example files and scripts.
Hello, my friend, I tested all your files very well, since I don't have this game so I cannot test the model file. You can upload this game download links

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Jan 24, 2015 2:39 am
by killercracker
Finished the .emd files with bones and weights but only having problems with the .emo files. For some reason they have more than one bone matrix, the second one without any bone id's that I could find, so that's one more obstacle to overturn. I've also linked the script for anyone who wants it to play with or add on too. Hopefully after all of this I'll have gained enough knowlege to figure out the animation.

Image

https://www.mediafire.com/folder/rdm1lq ... se_project

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Jan 24, 2015 5:20 pm
by raykingnihong
killercracker wrote:Finished the .emd files with bones and weights but only having problems with the .emo files. For some reason they have more than one bone matrix, the second one without any bone id's that I could find, so that's one more obstacle to overturn. I've also linked the script for anyone who wants it to play with or add on too. Hopefully after all of this I'll have gained enough knowlege to figure out the animation.

Image

https://www.mediafire.com/folder/rdm1lq ... se_project
Hi killercracker My friend, thank you very much for the great work. Dragonball z has always been my favorite

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Feb 28, 2015 6:00 pm
by Darko
killercracker wrote:Finished the .emd files with bones and weights but only having problems with the .emo files. For some reason they have more than one bone matrix, the second one without any bone id's that I could find, so that's one more obstacle to overturn. I've also linked the script for anyone who wants it to play with or add on too. Hopefully after all of this I'll have gained enough knowlege to figure out the animation.

Image

https://www.mediafire.com/folder/rdm1lq ... se_project
Does this support pc version??

Re: Dragon Ball Xenoverse *.emd

Posted: Mon Mar 02, 2015 3:52 am
by Vashey
Just tested the script on freshly extracted PC files (from the pc verison) here is the error I get:
Image
It works on the files you provide in your mediafire.
I've been wondering if there is a way to convert them back after we're done in 3Dsmax.

Re: Dragon Ball Xenoverse *.emd

Posted: Wed Mar 04, 2015 7:44 am
by FinalBlast
Is it possible to not only import, but also re-import back to the original format of the game?
In any case thank you for spending so much time on this! :)

Re: Dragon Ball Xenoverse *.emd

Posted: Wed Mar 04, 2015 6:41 pm
by Vashey
Apparently he uploaded a script for PC models, there are still some models that don't load though (--unable to convert: undefined to type: integer) ,but it works for most of them, at least I can do some models.
Now when importing one .emd it imports a whole set of models (other .emd) at once, is this normal?

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Mar 07, 2015 10:43 am
by loriscangini
Hi to all!
Great work with the importer!

I'm having problems importing some parts from the PC files, for example I can't load the Piccolo's cape, am I doing something wrong or the script isn't complete?

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Mar 07, 2015 4:41 pm
by PGV
you did a great job in there, but as you were able to make an import everybody here would appreciate an .emd meshes EXPORT SCRIPT, so that we can isert in game our creations.

I know I'm asking a great effort, but you would make happy hundreds thousands of people...

It shall be able to generate

-.emd (for 3d model mesh)
- .emb (for texture)
- .esk (for structure and position I think)
- .emm (no idea what it is exactly)

The .esk of addon objects (such as hats, wings etc) for the characters are different than the .esk you provided (of a full model) in the sample pack, and your script won't read them sadly...

Re: Dragon Ball Xenoverse *.emd

Posted: Sat Mar 07, 2015 5:29 pm
by Darko
PGV wrote:you did a great job in there, but as you were able to make an import everybody here would appreciate an .emd meshes EXPORT SCRIPT, so that we can isert in game our creations.

I know I'm asking a great effort, but you would make happy hundreds thousands of people...

It shall be able to generate

-.emd (for 3d model mesh)
- .emb (for texture)
- .esk (for structure and position I think)
- .emm (no idea what it is exactly)

The .esk of addon objects (such as hats, wings etc) for the characters are different than the .esk you provided (of a full model) in the sample pack, and your script won't read them sadly...
emm is material, xenoverse is using the same engine as SFIV. The pc script also has a little issue with uv mapping, uv's are too big.