OpenArena Message Boards

OpenArena Contributions => Models => Topic started by: epicgoo on August 23, 2008, 03:34:12 AM



Title: [OUTDATED] md3 importer/exporter
Post by: epicgoo on August 23, 2008, 03:34:12 AM
For blender 2.6 http://forums.duke4.net/topic/5358-blender-26-md3-export-script/


Title: Re: md3 importer/exporter
Post by: fromhell on August 23, 2008, 04:58:28 AM
fukken saved


Title: Re: md3 importer/exporter
Post by: fromhell on August 25, 2008, 12:14:00 PM
Cool, i can make working autosprite2's with this!


Title: Re: md3 importer/exporter
Post by: epicgoo on August 25, 2008, 01:44:17 PM
I wonder how it worked all this time. maybe re-export the models to see if there is any difference.


Title: Re: md3 importer/exporter
Post by: furroy on August 27, 2008, 10:53:35 PM
Well I was all excited when I discovered this forum and that there was a newer version of the exporter, but sadly it didn't fix my problem.

I have a door, its just a thin cube really.  Whenever I export it, the normals are flipped.  Now I'm an admitted total Blender n00b still, so hopefully it's just something really stupid on my part, but I cannot get these normals to export properly.

Really simple blend file that reproduces my issue is attached.

ps. It did fix a UV mapping problem I had, so awesome!


Title: Re: md3 importer/exporter
Post by: epicgoo on August 27, 2008, 11:18:52 PM
[deleted*]
dead link


Title: Re: md3 importer/exporter
Post by: furroy on August 27, 2008, 11:25:57 PM
Yes, I tried that version. I've tried the one that was attached to the original post here.  I've tried two other .md3 exporters I've found around on the net.  They all do the same thing, so I'm sure I screwed something up, but when I show the normals in Blender they look all happy.

I ended up just deleting the door and remaking it from scratch and the problem went away, but I am just baffled as what went wrong.


Title: Re: md3 importer/exporter
Post by: fromhell on August 27, 2008, 11:33:45 PM
there was probably a lone vertex or edge
md3 exporters tend to not like those


Title: Re: md3 importer/exporter
Post by: epicgoo on August 28, 2008, 01:34:47 AM
this one seems to export normals right (r_shownormals looks fine) however all faces are flipped, for you file.
AFAICT this version works fine with modifiers. Use this for testing only (or backup your .blend file before export...).


Title: Re: md3 importer/exporter
Post by: furroy on August 28, 2008, 06:55:23 AM
That version gave me the same results.   I don't understand how if the normals and vnormals look correct, how a face can be 'flipped'  Isn't that the point of the normals to show which way the face is facing??


Title: Re: md3 importer/exporter
Post by: furroy on August 28, 2008, 08:16:44 AM
I'll be damned! I figured it out!  Somehow in my Blender noobishness, I accidentally got the X scaled by -1.   So the object appeared to be fine, but was borked.  That was a day of my life I'll never get back... /sigh

But many thanks for the newer version, it did fix my UV maps!


Title: Re: md3 importer/exporter
Post by: furroy on August 28, 2008, 09:03:37 AM
Ahh.. I duplicated the first door, and then picked "Mirror" on the new one.  This changed the X scale from 1 to -1.   I guess the exporter doesn't take this into account?


Title: Re: md3 importer/exporter
Post by: epicgoo on August 28, 2008, 04:55:28 PM
Ahh.. I duplicated the first door, and then picked "Mirror" on the new one.  This changed the X scale from 1 to -1.   I guess the exporter doesn't take this into account?

argh.. lol


Title: Re: md3 importer/exporter
Post by: Jeff Vader Jr. on October 16, 2008, 05:28:02 PM
I'M A NEWBIE!
how do you set up the exporter?
as in, I have 4 python scripts...how do I give them to blender and make it work?
will this work on maps and characters? or just one?


Title: Re: md3 importer/exporter
Post by: epicgoo on October 16, 2008, 10:32:20 PM
copy into:
[blender directory]\.blender\scripts
example:
C:\Documents and Settings\nex\Desktop\blender-2.48-windows\.blender\scripts

also read the wiki


Title: Re: md3 importer/exporter
Post by: Jeff Vader Jr. on October 17, 2008, 02:59:36 PM
Yeah...I kinda figured that out after posting. Sorry to waste your time. :(


Title: Re: md3 importer/exporter
Post by: cosmo on September 24, 2009, 04:29:12 AM
this exporter was not working with blender 2.49.2 because of incorrect python code. (the Logger class)

Anyway eventually I got it working so here is my question: Is it possible to have different shaders on different faces in the same md3 model? The exporter lists them during process:
Code:
info      :Shader path name: models/mapobjects/cosmoflash/
info      :Model name: teleporter4_portal
info      :Processing surface: Portal
info      :Materials: [[Material "tele4_portal"], [Material "tele4_portal2"], [Material "tele4_portal"]]
info      :MD3 Surface
info      :Ident: IDP3
info      :Name: Portal
info      :Flags: 0
info      :Number of Frames: 1
info      :Number of Shaders: 1
info      :Number of Verts: 88
info      :Number of Triangles: 118
info      :Offset to Triangles: 0
info      :Offset to Shaders: 0
info      :Offset to UV: 0
info      :Offset to Verts: 0
info      :Offset to end: 0
Ingame only the first shader/Material appears. :(
Any hints? Vertexgroups do not help either.

- EDIT -
alright I got it working. *phew*
it's duplicating your model as many times as you need for different shaders and delete the unwanted/duplicate faces then. That is not straight forward and appears as a dirty hack but it works. We can have good teleporter models now. :)


Title: Re: md3 importer/exporter
Post by: andrewj on September 24, 2009, 05:43:34 AM
The MD3 format supports multiple meshes, where each mesh has it's own skin (where "skin" means a fixed set of shaders).

But I don't know how the exporter handles this (or what the correct Blender terminology for this is).


Title: Re: md3 importer/exporter
Post by: cosmo on September 24, 2009, 06:03:04 AM
Yep, it's duplicating in blender before you export the model to md3.


Title: Re: md3 importer/exporter
Post by: andrewj on September 24, 2009, 10:17:32 AM
A good teleporter model was definitely needed, so yay :D


Title: Re: md3 importer/exporter
Post by: P . Scimmia on September 27, 2009, 12:39:45 AM
There is a video tutorial! if not why not make one that explains how to export with Blender? maybe doing even spare processing model ... after you can put it in youtube or similar (maybe even for the maps)


Title: Re: md3 importer/exporter
Post by: Someone_mad on August 13, 2010, 10:34:23 AM
Where can I download this models?  :'(

1. http://download.tuxfamily.org/openarena/files/images/models/clippy.jpg

2. http://download.tuxfamily.org/openarena/files/images/models/artemis.jpg

3. http://download.tuxfamily.org/openarena/files/images/models/astartes(lotd).jpg

4. http://download.tuxfamily.org/openarena/files/images/models/astartes(white1).jpg

Thank's to answer!   :(


Title: Re: md3 importer/exporter
Post by: Udi on August 13, 2010, 01:29:17 PM
Where can I download this models?  :'(

http://ioquake3.org/extras/models/


Title: Re: md3 importer/exporter
Post by: Someone_mad on August 13, 2010, 01:43:58 PM
Woah!  :D
Thank's mate!  ^-^
Really, I appreciate it!


Title: Re: md3 importer/exporter
Post by: Someone_mad on August 15, 2010, 05:07:53 PM
Artemis is really nice! ^^


Title: Re: md3 importer/exporter
Post by: Slater on December 26, 2010, 11:02:59 AM
Yeah...I kinda figured that out after posting. Sorry to waste your time. :(

He didn;t waste his time cause now this helped me :p


Title: Re: md3 importer/exporter
Post by: Slater on December 26, 2010, 11:04:50 AM
How do I install the exporter to Blender 2.55 beta?


Title: Re: md3 importer/exporter
Post by: fromhell on March 07, 2012, 04:46:59 AM
You don't.




By the way, i'm starting to use 2.61 - sadly, md3 exporting sucks. There's this exporter by Xemble/Mrwonko (http://www.mrwonko.de/downloads/view.php?id=33) but.....
  • It doesn't support tags
  • It doesn't support material names (I tried to do the suggested custom properties for md3surface, but it just leads the exporter to crashville)
  • It doesn't support UVMAPS WHAT THE HELL


Title: Re: md3 importer/exporter
Post by: epicgoo on November 22, 2012, 02:28:24 PM
I could port my exporter on top of the exporter by Xemble/Mrwonko. But I do not want to encourage the further use of md3. Better use iqm format.


Title: Re: md3 importer/exporter
Post by: fromhell on November 22, 2012, 07:01:52 PM
Better use iqm format.

IQM is not an option.


Title: Re: md3 importer/exporter
Post by: Gig on November 23, 2012, 02:00:12 AM
I could port my exporter on top of the exporter by Xemble/Mrwonko. But I do not want to encourage the further use of md3. Better use iqm format.
I don't know "pros" and "cons" about switching to Inter-Quake Model (http://lee.fov120.com/iqm/) format (compatibility with existing stuff maybe?)... anyway I can imagine Fromhell has got good reasons to decline it.
Anyway, I suppose some good md3 importer/exporter may be good.


Title: Re: md3 importer/exporter
Post by: andrewj on November 23, 2012, 03:03:13 AM
because IQM is broken in the ioQuake3 codebase?


Title: Re: md3 importer/exporter
Post by: epicgoo on November 23, 2012, 01:57:57 PM
Never mind what I said, I thought IQM had been usable.
Actually, I am not able to port the exporter since I forgot most of the blender python scripting.
Furthermore, as far as I know, blender python api changed drastically.

I am not even sure what part of the exporter I contributed to.
I think it was Trebor who did most of it, and I did the importer part


Title: Re: md3 importer/exporter
Post by: epicgoo on November 24, 2012, 07:20:57 PM
[deleted]


Title: Re: md3 importer/exporter
Post by: grey matter on November 26, 2012, 01:22:08 PM
because IQM is broken in the ioQuake3 codebase?

That's not a reason. File a proper bugreport and things will get well soon. Or if you don't like the ioquake3 guys, then fix it in the OpenArena codebase only.

The only valid reason is linking to NOTTODO and whining that Quake 3 didn't have IQM either.


Title: Re: md3 importer/exporter
Post by: epicgoo on November 26, 2012, 06:09:12 PM
[deleted]


Title: Re: md3 importer/exporter
Post by: epicgoo on November 27, 2012, 02:04:54 PM
[solved]


Title: Re: md3 importer/exporter
Post by: epicgoo on November 27, 2012, 04:35:18 PM
[deleted]


Title: Re: md3 importer/exporter
Post by: fromhell on November 27, 2012, 05:31:10 PM
this one (http://oasis.xentax.com)

it's not outdated and it's not written in java


Angelyss is a decent model to test an exporter. 


Title: Re: md3 importer/exporter
Post by: epicgoo on November 28, 2012, 12:57:12 AM
[solved]


Title: Re: md3 importer/exporter
Post by: epicgoo on November 29, 2012, 06:05:03 PM
[solved]


Title: Re: md3 importer/exporter
Post by: Gig on January 14, 2013, 11:39:58 AM
Epicgoo... even if you self-solve an issue, there is noo need to blank all your posts in a thread!  :)