Anim8or Community

Please login or register.

Login with username, password and session length
Advanced search  

News:

An update to Anim8or, v1.00b, is available with a few bug fixes. Get your copy HERE. See the "ReadMe" file for details.

Author Topic: Obj2An8 - Convert .obj files to .an8  (Read 2366 times)

SubDrag

  • Newbie
  • *
  • Posts: 41
    • View Profile
Obj2An8 - Convert .obj files to .an8
« on: August 18, 2012, 04:29:20 pm »

Obj2An8

I wrote this to assist one of our modellers in the Goldfinger 64 (http://www.moddb.com/mods/goldfinger-64) mod project (please inquire if you are interested in helping, I still could use one or two more modellers).  Basically, we use obj files for import into GoldenEye, and while an8 supports exporting obj with groups, it cannot import obj with groups (it merges them all).  We then would lose of all our different objects which are required for import.  I also couldn't find a way to export to 3ds format but include long texture names (although an8 seems capable of it if I could to import groups).

In the end it also did allow me to add more features, such as rounding, disabling shading, for example, but its primary purpose was to put into an8.

I do not support import of an8, mainly because anim8or can export to obj fine.  It only supports models, no animation.  Also since it's primarily geared towards GoldenEye, it does set lock-diffuse and things like that, but it's flexible, and you'll want to turn off the special keywords mode.

If you end up wanting to use them, the following keywords are supported as part of material name:
Transparent - black is see through
TopFlag - z order on top
Decal - black is see through, and z order is on top (combines Transparent and TopFlag)
EnvMapping - environment mapping
TexScaleSX.XXXXX - texture scaled in S direction by X.XXXXX
TexScaleTX.XXXXX - texture scaled in T direction by X.XXXXX

Note that I also added token fbx support.  It's not 100% checked out, though it appeared to work a little bit.

Import:
obj
fbx*

Export:
an8
obj
fbx*

* = unfinished

Please report any bugs or feature requests, but I hope this is useful.  If you do use it please post here or email me.  You may use the source code in your code base, but please credit inside source code.  It's written in MFC C++.  There is a configuration that does not support FBX, in case you are on an old machine.  It's compiled as 32-bit, I've not tried 64-bit, would probably require 64-bit FBX dlls too.

http://goldeneyevault.com/viewfile.php?id=255

This requires the Visual C++ 2008 redistributable.
http://www.microsoft.com/downloads/details.aspx?familyid=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&displaylang=en
« Last Edit: August 18, 2012, 04:33:08 pm by SubDrag »
Logged

dwsel

  • Sr. Member
  • ****
  • Posts: 271
    • View Profile
    • Dwsel art
Re: Obj2An8 - Convert .obj files to .an8
« Reply #1 on: August 20, 2012, 08:24:45 pm »

Thanks for this tool. Converter's description sounds great! I haven't tried it yet, but I'm gonna check its abilities thoroughtly when I'll be back on pc.
Logged

SubDrag

  • Newbie
  • *
  • Posts: 41
    • View Profile
Re: Obj2An8 - Convert .obj files to .an8
« Reply #2 on: September 14, 2012, 05:44:47 am »

It's not necessarily relevant to anim8or, but I've added FBX support (models only) including vertex shading and fixed a few bugs in the tool. 
Logged