OBJ 2 SMD Converter

Hl2 modeling is a pain in the ass. There are varying degrees of irritation to most every plugin that is out for every modeling program that I have used from maya to 3ds and so on. The main irritation is that they are just way too complex, ergo making a model come to fruition is more than a sum of its parts. In an effort to make things work, and work they do, I have taken the plugin out of the mix, and I give you my very own OBJ to SMD Converter.

The app is below, you should have no issues running it, and if you do, let me know and ill do my best to fix her up. some basic documentation is included and i also attached the source. Feel free to distribute it as you wish, i am an open source friend.

Updated Information

The reason i made this application is because all modeling programs today output their content in .obj format. You don’t need to learn their scripting language or anything of the like. Just drop it on here and poof, SMD created.

Updates – 3/27/07

Another revision of this app, enjoy. Should be a little faster now.

Current Version 1.0

Contact Bob.Chatman@gmail.com

  OBJ2SMD Converter for HL2 (16.0 KiB, 1,363 hits)

3 Comments

3 Comments

  1. Hay there,

    I’ve been beating my head across my keyboard for weeks trying to figure out how to get my custom Static Props from Blender3D into Half-Life 2…

    All the scripts to make SMD files in blender (of which there are only two it seems) don’t work with the newest version of blender or are just plain broken/crap…

    I was then thinking, there has got to be a way to convert one of the expotable files that blender can make into the SMD file, and I started going up the list…

    first XSI as it’s the one that VALVe seems to be pimping the most with the Source SDK. Well that yeilded nothing or something too hard for google to find. I then went to the next…

    that was Wavefront OBJ. and I was blessed to find this site here and guess what. It worked like a dream come true!…

    SCORE!…

    Thank you so much for this program, I hope there are plans for animated Model support someday. but for now I really cannot complain as I finally have a reliable source for Custom Props and Scene Deco.

    good job!…

    ~Ninja OUT! **NINJA POOF and is GONE**

  2. Thx a lot i find very useful your application

  3. WARNING:

    This program DOES NOT read from MTL files!

    Your model texture HAS TO BE 1 complete composite texture (Named the same as the model)
    for this program to work with textures.

    It DOES keep the UV coordinates BUT,
    as mentioned above it will turn all the different UV coordinates to 1 texture named the same as the OBJ file.

    Good example;
    Mymodel.obj
    Mymodel.mtl
    Mymodel.tga

    Will convert properly to;
    Mymodel.smd
    Mymodel.qc

    ~~~

    Bad example;
    Mymodel.obj
    Mymodel.mtl
    Texture1.tga
    Texture2.tga
    Texture3.tga

    Will convert improperly to;
    Mymodel.smd (All the model UV textures will be converted to Texture1.tga)
    Mymodel.qc

Leave a Reply

Spam Protection by WP-SpamFree

Using Gravatars in the comments - get your own and be recognized!

XHTML: These are some of the tags you can use: <a href=""> <b> <blockquote> <code> <em> <i> <strike> <strong>