This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [question]edit m2 with blender  (Read 8641 times)

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
[question]edit m2 with blender
« on: June 05, 2011, 08:13:20 pm »
i find this http://www.ridiculousx.net/Projects/M2Mod.aspx
it should convert m2 to m2i (editable with blender) and back but i can't  find a binary m2mod.exe and i can't compile it on linux
can someone give me a link with compiled m2mod.exe? i want try to edit bloodelf models and add horn and wings from felbloodelf model!
tnks

edit: sorry wrong place, i should post in 3d model section
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [question]edit m2 with blender
« Reply #1 on: June 05, 2011, 09:12:26 pm »
If you're on linux, it wont be possible to use the binary anyway.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [question]edit m2 with blender
« Reply #2 on: June 05, 2011, 09:45:13 pm »
Also, this should compile fine on Linux. It does on OSX. I changed some parts due to MSVC++ specific code. Should be working though. Only did M2Lib4.

http://d.pr/O1md
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #3 on: June 06, 2011, 08:51:35 am »
don't compile on linux
errors:
Code: [Select]
makrov-x64:~/Scaricati/O1md.M2Lib4$ make
Scanning dependencies of target M2Lib
[ 16%] Building CXX object CMakeFiles/M2Lib.dir/M2Lib/CM2.cpp.o
In file included from /home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2I.h:5:0,
                 from /home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.h:9,
                 from /home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:1:
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/M2Types.h: In function ‘bool M2Lib::CompareFloatsSimilar(Float32, Float32, Float32)’:
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/M2Types.h:17:22: error: ‘abs’ was not declared in this scope
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp: In member function ‘M2Lib::EError M2Lib::CM2::ImportM2Intermediate(Char8*, bool, bool, bool, bool, Float32, Float32, Float32, Float32, Float32, Float32)’:
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:823:70: error: ‘memcpy’ was not declared in this scope
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:832:70: error: ‘memcpy’ was not declared in this scope
/home/doresain/Scaricati/O1md.M2Lib4/M2Lib/CM2.cpp:839:61: error: ‘memcpy’ was not declared in this scope
make[2]: *** [CMakeFiles/M2Lib.dir/M2Lib/CM2.cpp.o] Errore 1
make[1]: *** [CMakeFiles/M2Lib.dir/all] Errore 2
make: *** [all] Errore 2

with a win32 binary it should work with Wine on linux
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [question]edit m2 with blender
« Reply #4 on: June 06, 2011, 01:34:58 pm »
In your distribution, abs and memcpy are in other header files than they should be. man abs and man memcpy to see which ones. Then add #include <...> for the files. Should be #include <cstring> and #include <cstdlib>.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #5 on: June 07, 2011, 02:34:29 am »
ok tnks it seems to work, it creates the .m2i file but now i don't know how to import m2i into blender :P
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #6 on: June 07, 2011, 03:05:44 am »
damn i can't find the script to import it into blender  :(

"Install the M2I import and export scripts for Blender
After installing Blender, you will need to copy the included python scripts "import_m2i.py" and "export_m2i.py" to Blender's scripts directory"
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #7 on: June 07, 2011, 10:43:38 am »
i find it o a chinese website http://www.findmod.com/archives/1184
the scripts are in these files http://www.ridiculousx.net/Projects/M2Mod3.zip http://www.ridiculousx.net/Projects/M2Mod4.zip
tnks for help

edit: it works!
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #8 on: June 07, 2011, 04:27:38 pm »
i had patched and compiled m2lib3 for linux and it works, it's mi first (stupid) test, i only cut off the left HumanMale hand

3.3.5a client
it works great with most animation, but when do /dance /salute or i sit down client crashes with #132 i think with replacing animation with tigurius's script it should works fine
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #9 on: June 08, 2011, 12:49:37 am »
this tool is wonderfull
it's my first model-edit

model doesn't crash in  game but wings and horns animations are buggy (very buggy)
i will try to fix it with pym2
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #10 on: June 08, 2011, 10:46:53 am »
i had fix my model animation (wrong bone in blender)
now model appear good and only textures are buggy

i thing with "fur" texture it should look better, but i don't know how to do in blender
today i will do a tutorial
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Eluo

  • Moderators
  • Creator of Worlds
  • *****
  • Posts: 509
    • View Profile
Re: [question]edit m2 with blender
« Reply #11 on: June 08, 2011, 04:53:27 pm »
This is some good news ,that there is a good modifyer for character models!
Thank you very much for your research!

By the looks of the textures i think you just modified an exsisting geoset. Is it possible to increase the polycount with that, or better said: did you add new verts?

But i think for the textures ,that this will be a problem , as you will have to unwrap the model new , and that again was something that until now no converter could handle with animated models.

Im very intrested in the progress of that!
Keep up the good work! I'm really looking forward for new results , what is possible with that chineese tool :D
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
One is a genius, the other\'s insane!

schlumpf

  • Administrator
  • Creator of Worlds
  • *****
  • Posts: 2967
    • View Profile
Re: [question]edit m2 with blender
« Reply #12 on: June 08, 2011, 07:02:46 pm »
Christian: The tool is not Chinese but from Seattle WA/Portland OR. ;)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #13 on: June 08, 2011, 09:11:25 pm »
creating a new geoset don't work, wasn't able to export model as .m2i but probably replicating a geoset with pym2 you can delete and add vertex

to create this model i cut horn teeth and wings from felblood model and exported it in .m2i file (without deleting bones, if you delete bones m2i export fails)

i imported the wing.m2i file, delete bones and swap bones number by felblood to bloodelf model (it fix animation problems, i use pym2 bone tree) and import bloodlef.m2i, ctrl +P (make parent) and ctrl+j (join meshes) between torso and wings, exporting it, merge m2i with bloodelf.m2 (now the m2i has bones of bloodelf model) and it works great!
it's my first model-edit and i don't know how to work with texture :(
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

doresain

  • Contributors
  • Model Change Addict
  • *****
  • Posts: 202
    • View Profile
Re: [question]edit m2 with blender
« Reply #14 on: June 09, 2011, 11:01:25 am »
pym2 corrupt my model, but in blender you can clone a geoset and export in wythout problems

now horn wings and teeth are a new geoset hairstile/root 00 but when i try to edit materials in pym2 it corrupt the model :(

exist other tool to modify textures &materials on M2 (for 3.3.5 models)???

« Last Edit: January 01, 1970, 01:00:00 am by Admin »