Yet another NWN exporter - pymdl2mesh

A place to show off your latest screenshots and for people to comment on them. Only start a new thread here if you have some nice images to show off!
User avatar
SiENcE
Goblin
Posts: 231
Joined: Thu May 11, 2006 3:07 pm
Location: Berlin

Post by SiENcE »

@ppClarity: not 100% true. look at our project: http://zwischenwelt.org/trac/iris/brows ... loader.cpp

The problem with *.gr2 is, that it's a technology and not truely a fileformat. developers can change the output format as they need/want.

NWN2 *.mdb Fileformat Docu: http://nwn2.wikia.com/wiki/MDB_Format
Last edited by SiENcE on Wed Oct 10, 2007 10:11 am, edited 1 time in total.
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Post by vgx »

Duncan Mac Leod wrote:
vgx wrote:Btw in 1-2 weeks i consider release few my scripts for extraction data files like tga's or mdl's packed in NWN resource files, does anyone have interest in these ... ?
Yes! I am very interested!!! :wink:
Ok, in week, or so, there will exporting scirpt on svn, i will keep informed you ...
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Post by vgx »

Semi-working NWN files ripper is ready. Due its current no need to use it more proper way, its use is limited in these ways
- usage only in unix based OSes, no big problem - only needs some reworking of script concept
- supports only mdl and tga files
- its overall usage is rather cumbersome
- in fact it is only short crappy script in python
- it needs openknights nwntools nwnmdlcomp to work adequatly

You can download it here:

Code: Select all

http://kuro.spiralia.org/svn/pymdl2mesh/unbif.tar.gz
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Post by vgx »

I wonder whether is even someone using pymdl2mesh - I myself at this moment have actually lost reason to continue with its development, I simply dont need it anymore ... Not to mention that amount of received feeback is bit unsatisfactory ...
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
spoot
Halfling
Posts: 40
Joined: Tue May 17, 2005 4:47 am

Post by spoot »

I was probably going to use it to convert a few more models for my current project from hell.....but haven't had time to play with it. :?
User avatar
SiENcE
Goblin
Posts: 231
Joined: Thu May 11, 2006 3:07 pm
Location: Berlin

Post by SiENcE »

Yeah i also use it to convert custom made NWN2 models from the NWN community.

But i think an import/exporter for grn2 would be more spectaculous. ;)
Last edited by SiENcE on Tue Nov 20, 2007 11:30 pm, edited 1 time in total.
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Post by vgx »

NWN2? I am afraid that NWN2 model format my exporter sorta doesnt support :)
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
User avatar
SiENcE
Goblin
Posts: 231
Joined: Thu May 11, 2006 3:07 pm
Location: Berlin

Post by SiENcE »

I meant NWN1 but it would be more better to support NWN2 with grn skeletons.
cloud
Gremlin
Posts: 196
Joined: Tue Aug 08, 2006 6:45 pm
x 14

Post by cloud »

Thanks vgx.

I don't know what I'd do for artwork without you and Borundin!
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Post by vgx »

Good to hear ...

Well, if someone have some problems/feature requests with script functioning, write them here, i can possibly do something with them .... Except this cases, i do not plan develop pymdl2mesh actively - but also i dont have intent to cease development permanently because code features handling certain nwn model format data relations documented nowhere ...
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
User avatar
SiENcE
Goblin
Posts: 231
Joined: Thu May 11, 2006 3:07 pm
Location: Berlin

Post by SiENcE »

You should maybe add a python dll and a batch file as an example how to use your converter. And a readme.txt

I think, more people would use this tool, but they have no exp. with python anyway.
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Post by vgx »

I think readme is bit useless, some batch files too - in my opionion is average ogre user able to find out how to install python and how to use script. At least no one complained so far :). But what comes to my mind is to do some ogre wiki entry - here in showcase forum is pymdl2mesh little lost (number of pymdl2mesh related links found by google is quite uncomparable to mdl2mesh :))
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
User avatar
SiENcE
Goblin
Posts: 231
Joined: Thu May 11, 2006 3:07 pm
Location: Berlin

Post by SiENcE »

Yes a wiki entry would be the best.
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Post by vgx »

After uneven but in the end victorious fight with wiki is pymdl2mesh entry done :).

You can find it here - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
zapgun
Gnoblar
Posts: 3
Joined: Sun Jun 07, 2009 12:52 pm

Re: Yet another NWN exporter - pymdl2mesh

Post by zapgun »

Hi all,

Hmm.. tried for a few days now and http://kuro.spiralia.org/svn/pymdl2mesh/trunk doesn't seem to be active.

Does anyone have a copy of this script they can share?

Thanks,

Zapgun
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Re: Yet another NWN exporter - pymdl2mesh

Post by vgx »

Hi, machine where is repository hosted had some sort of hardware failure and i dont know when will be online again. In attachment are (hopefully) latest revisions of scripts.
You do not have the required permissions to view the files attached to this post.
zapgun
Gnoblar
Posts: 3
Joined: Sun Jun 07, 2009 12:52 pm

Re: Yet another NWN exporter - pymdl2mesh

Post by zapgun »

Thanks VGX.

Cheers,

Zapgun
zapgun
Gnoblar
Posts: 3
Joined: Sun Jun 07, 2009 12:52 pm

Re: Yet another NWN exporter - pymdl2mesh

Post by zapgun »

Hi VGX,

I noticed all the models I've tried from the NWN sample downloads have the wrong facing (they should be facing 'forward' in the VECTOR:UNIT_X direction, but seem to be rotated 90 degrees). Is that just a problem with the NWN sample files, a script issue, or am I doing something wrong?

Cheers and thanks again the script. Otherwise its working great!

Zapgun
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Re: Yet another NWN exporter - pymdl2mesh

Post by vgx »

Hi,

I am not too sure what exactly do have in mind. I've tried convert sample iron golem model and view it in cegui mesh viewer few moments ago. Golem is standing by default with his back facing directly to viewer camera. It is that? Or something else? If is this only problem, I recommend to do additional rotation of model via meshmagick tool(http://www.ogre3d.org/wiki/index.php/MeshMagick). My NwN conversion script itself isnt written too well and fixing this issue would probably break some other things as well.
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
tanliyoung
Gnoblar
Posts: 5
Joined: Fri Jul 03, 2009 3:27 am

Re: Yet another NWN exporter - pymdl2mesh

Post by tanliyoung »

Hello vgx,
I do believe this is a amazing tool. However, I am totally new to python program. Would you please give me some short hints how to run this script? I input the cmd such as:

Code: Select all

python pymdl2mesh.py -input_file Bat.mdl
But, nothing's happened. (BTW, I write a "hello.py" to print the text, and it works well, so I think the python working enviroment is OK)

Do I miss something?
Thanks.
User avatar
vgx
Halfling
Posts: 72
Joined: Wed Jan 17, 2007 11:12 pm
Location: Kryglistan

Re: Yet another NWN exporter - pymdl2mesh

Post by vgx »

Hi,

You have to also specify destination path for converted model and its data.

Code: Select all

python pymdl2mesh.py -input_file Bat.mdl -destination_path c:\models\
NWN model files to Ogre3D converter - http://www.ogre3d.org/wiki/index.php/Pymdl2mesh
tanliyoung
Gnoblar
Posts: 5
Joined: Fri Jul 03, 2009 3:27 am

Re: Yet another NWN exporter - pymdl2mesh

Post by tanliyoung »

vgx wrote:Hi,

You have to also specify destination path for converted model and its data.

Code: Select all

python pymdl2mesh.py -input_file Bat.mdl -destination_path c:\models\
Thank you for quick reply. I have tried again, and it did not work neither. However, the massconvert.py works fine.
Any way, I got the mesh and skeleton files finally and right now I am doing some tests. :)

Your job is quit helpful~ thanks again.