lfnetwork.com mark read register faq members calendar

Thread: Rough instructions on how to Convert 3D models
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 01-21-2006, 08:20 PM   #1
akula
 
Join Date: Oct 2001
Posts: 6
Rough instructions on how to Convert 3D models

So I have been spending a little time looking at the model format and thinking about how someone might build a converter to go from say ALO to .X files. Unfortunately, I really don't have the time it takes to build a program like that right now, but if someone does heres what you would have to do.

FIRST the ALO model format looks roughly like this

1. Some names and info on pointers to other objects that this mesh might require???
2. The DirectX(.fx) effects file to apply to the mesh, this is not the same as the animation effects file(.ala)
3. Emissive, Diffuse, Specular, shininess, and colorization of the mesh, UVoffset
4. Basetexture name
5. Normaltexture name
6. An array of alD3dVert's the actual type of alD3dVert is specified by the name(NOTE this maybe a custom FVF vertex format created by them)

Repeat 2-6 for any damaged(BUT NOT DESTROYED) versions of the model.

SECOND load the file into your program that references the DirectX SDK, and create a mesh with the Vertices's in the array

THIRD call on your mesh object SaveMeshAsX which will save the mesh to a .X file which can then be modified in Maya or a similar program.

The reverse is equally as easy all you have to do is start with the D3D mesh lock the vertex buffer and unload them into an array with parts 1-5 in it.

Hope the helps!!!
akula is offline   you may: quote & reply,
Old 01-22-2006, 08:23 AM   #2
DarthParametric
I bent my Wookiee
 
DarthParametric's Avatar
 
Join Date: Apr 2004
Location: Oz
Posts: 2,664
Forum Veteran Helpful! 
So is this a proprietary model format that they're using? I take it that it is, seeing as the game engine itself is proprietary. I guess the engine codename "Alamo" explains the ALO and ALA suffixes.
DarthParametric is offline   you may: quote & reply,
Old 01-22-2006, 12:47 PM   #3
akula
 
Join Date: Oct 2001
Posts: 6
Yep, it sure is.. Its actually one of the only things that ticks me off about the construction of the game. If you can easily write your files to an industry standard, why do you go out of the way to create something proprietary.

Then again it is a pretty simple file format, I'm sure people will take a more serious look when they get bored with the simple text mods that are being done now. Either that or I'll get time to write a converter:-)
akula is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Empire At War > EaW General Discussion > Modding forum > Rough instructions on how to Convert 3D models

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:36 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.