Index | FAQ | Search | Memberlist | Usergroups | Profile | Log in to check your private messages | Log in | Register

Model Converter [alpha released] Goto page 1, 2, 3, 4 Next

| Inside3d Forums Forum Index -> Modeling

View previous topic :: View next topic
Author | Message
--- | ---
Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Mon Jan 18, 2010 2:03 pm Post subject: Model Converter [alpha released] |

I've decided to release the model converter I've been working on off and on for the past month. It imports MDL, MD2, and MD3, and exports to MDL. Every little part of the MDL format specs is properly implemented... or at least I hope so. It has no problem converting any UV map, or loading MD3s with multiple objects. HOWEVER: it doesn't support MD3s with multiple textures (yet).
The converter is a COMMAND-LINE TOOL. That means it's really inconvenient to use, and lacks some features such as moving frames around. You'll have to bear with me. I would like to make a GUI version later, but I thought I would release the command-line version so anybody who just needs to convert models can do so immediately.
I've tested it on 32-bit Windows and Linux, but not thoroughly. It was developed on Windows. The source is licensed under the GPL and publicly available.
Website: http://www.icculus.org/qshed/qwalk/
Download: http://www.icculus.org/qshed/qwalk/download/
Guide: http://www.icculus.org/qshed/qwalk/guide/
You NEED to read the guide AND the main qwalk page, because there's currently no other way to know how to use the converter.
And this is NOT a stable release. It's not even a beta. It's an alpha. I made the decision to make a release only two hours ago, and cobbled it together since then. It's possible I left an obvious bug in or forgot something stupid. I have tested it, but not painstakingly. If you are reading this and want to make a news post about it, please include this disclaimer!
If you have questions, found a bug, or would like to request a feature, let me know. Post on this thread, or email me at sajt at icculus dot org.
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.
Last edited by Sajt on Mon Jan 18, 2010 2:33 pm; edited 1 time in total

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Mon Jan 18, 2010 2:08 pm Post subject: |

Yay! Excellent, Sajt. I'll check it out. I've been working in a .mdl editor on and off for a long time ago, and maybe I can help you in someway. _________________ frag.machine - Q2K4 Project http://fragmachine.quakedev.com/

Back to top |

Urre Joined: 05 Nov 2004 Posts: 1073 Location: Sweden |

Posted: Mon Jan 18, 2010 2:13 pm Post subject: |

I've been holding my breath for this Did scar3crow ever tell you I requested support for a widely supported common format for input? Examples being .3ds, obj, .lwo and more. Cause that'd rock, would make modeling .mdl's a great deal easier for a bunch of people. Only one of those "common" formats would be needed I believe, as all modeling software can export to them without trouble. I'd vote .obj.
In any case, this is more than awesome already, I'll be testing it out later! Way to go Sajt!
_________________
Look out for Twigboy

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Mon Jan 18, 2010 2:30 pm Post subject: |

Yes, I would be willing to add OBJ support. I would just need a few example OBJ models for testing. I have some experience with writing OBJ loaders, but I never got into the smoothing groups or materials or things like that. _________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.

Back to top |

c0burn Joined: 05 Nov 2004 Posts: 158 Location: Liverpool, England |

Posted: Mon Jan 18, 2010 2:32 pm Post subject: |

What happens if the source model exceeds the MDL specs?

Back to top |

Sajt Joined: 16 Oct 2004 Posts: 1026 |

Posted: Mon Jan 18, 2010 2:37 pm Post subject: |

When you export a model, it will print a warning in these cases: - The model's skin's height is greater than 200px (won't run in DOSQuake) - The model's skin is not power of two (will be resampled in GLQuake). Almost all models have non-power-of-two textures though, so I should probably hush this warning.
- More than 1024 vertices (won't run in standard engines)
- More than 2048 triangles (won't run in standard engines)
- More than 256 frames (won't fit in standard Quake network protocol)
If the skin's width is not a multiple of 4 (which is a requirement of the format), it will be automatically padded (without borking the texcoords).
I might have missed some other limitations.
I think you can fit any number of vertices and triangles and any size skin in a MDL file, it's just the old engines that have some static limits.
_________________
F. A. Špork, an enlightened nobleman and a great patron of art, had a stately Baroque spa complex built on the banks of the River Labe.

Back to top |

c0burn Joined: 05 Nov 2004 Posts: 158 Location: Liverpool, England |

Posted: Mon Jan 18, 2010 2:41 pm Post subject: |

That's utterly fantastic. God, I wish we had the Quake models with bones intact.

Back to top |

Teiman Joined: 03 Jun 2007 Posts: 309 |

Posted: Mon Jan 18, 2010 3:11 pm Post subject: |

Grrrreat !

Back to top |

frag.machine Joined: 25 Nov 2006 Posts: 728 |

Posted: Mon Jan 18, 2010 4:27 pm Post subject: |

Sajt wrote:
If the skin's width is not a multiple of 4 (which is a requirement of the format), it will be automatically padded (without borking the texcoords).

Hmm. QuArK requires that skin dimensions be a multiple of 8, and I never understood why original player.mdl skin does not follow this rule. Multiple of 4 makes more sense.
_________________
frag.machine - Q2K4 Project
http://fragmachine.quakedev.com/

Back to top |

c0burn Joined: 05 Nov 2004 Posts: 158 Location: Liverpool, England |

Posted: Mon Jan 18, 2010 4:31 pm Post subject: |

Quark is such a vile program.

Back to top |

mh Joined: 12 Jan 2008 Posts: 909 |

Posted: Mon Jan 18, 2010 5:42 pm Post subject: |

c0burn wrote:
Quark is such a vile program.

The "Lotus Notes" of Quake utils.
This tool however seems to be a clear case of bringing on the awesome. Well done that man.
_________________
DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines

Back to top |

Baker Joined: 14 Mar 2006 Posts: 1538 |

Posted: Tue Jan 19, 2010 12:30 am Post subject: |

I'm eager to try this. Maybe some models I've made can finally make the trip from .md3 to .mdl (Quick3D didn't always succeed; the Quark route sometimes didn't work). Thank you.

Quote:
"Some more far-fetched major features for later versions: ...Convert MAP files (e.g. the health/ammo pickups) to models."

Twice as nice.
_________________
Tomorrow Never Dies. I feel this Tomorrow knocking on the door ...

Back to top |

mh Joined: 12 Jan 2008 Posts: 909 |

Posted: Tue Jan 19, 2010 12:40 am Post subject: |

Baker wrote:

Quote:
"Some more far-fetched major features for later versions: ...Convert MAP files (e.g. the health/ammo pickups) to models."

Twice as nice.

Only twice? That's something that's been sorely needed for a long long time.
_________________
DirectQ Engine - New release 1.8.666a, 9th August 2010
MHQuake Blog (General)
Direct3D 8 Quake Engines

Back to top |

c0burn Joined: 05 Nov 2004 Posts: 158 Location: Liverpool, England |

Posted: Tue Jan 19, 2010 4:58 am Post subject: |

mh wrote:

Baker wrote:

Quote:
"Some more far-fetched major features for later versions: ...Convert MAP files (e.g. the health/ammo pickups) to models."

Twice as nice.

Only twice? That's something that's been sorely needed for a long long time.

http://qexpo.quakedev.com/uploaded/7/pak2.zip

Back to top |

Urre Joined: 05 Nov 2004 Posts: 1073 Location: Sweden |

Posted: Tue Jan 19, 2010 9:42 am Post subject: |

mh wrote:
Only twice? That's something that's been sorely needed for a long long time.

It's been done many times by many people, I believe Tomaz did it first. I'm also assuming c0b's link above leads to a pak containing those as .mdl's, haven't checked
_________________
Look out for Twigboy

Back to top |

Display posts from previous:

| Inside3d Forums Forum Index -> Modeling | All times are GMT Goto page 1, 2, 3, 4 Next
Page 1 of 4

Jump to:

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Powered by phpBB © 2004 phpBB Group