Jump to content
Sign in to follow this  
bob.bernstein

Converting a file created in Gmax

Recommended Posts

Guest Mark02

Hi everyone :DJust wondering if anyone knows how to convert a Gmax object into an API file for use in a scenery design program.Thanks.Mark :)

Share this post


Link to post
Share on other sites

Mark, I've done it for fs2002 with an addon called fsregen. You compile your gmax model with save files checked in makemdl options. You discard the bgl.In fsregen, you use the "library" feature and create a library file from your asm output. Finally you create a simple api file that calls the guid created from within fsregen.If you are talking about fs2004, I'm not sure about all of that, Arno has built a tool that creates the new bgl for librarys, but calling the new guid from a scasm based api, well I really have no idea if it would work or not. fs2004 is intended to have its library objects called using xml compiled with bglcomp.exe...which works great and is how I've been working.Bob Bernstein

Share this post


Link to post
Share on other sites
Guest Mark02

Hi :)OK Thanks for the info! :DMark!

Share this post


Link to post
Share on other sites
Guest Mark02

Hi.I forgot to mention:How do I produce the .ASM file?I find that when I save the file it saves as a 'GMAX Scene' ?Mark! :)

Share this post


Link to post
Share on other sites

If you have a gmax file and want to make a library object of the file, download the FS2004 GMAX and BGLCOMP SDKs from http://www.microsoft.com/games/flightsimulator/ , downloads, FS2004SDK. For an example of library objects in the FS2004 style, download jetways2.zip from the library. To control the GMAX exporter add or modify the MAKEMDL.cfg file. Below are a couple of entries I used during the jetways export:[settings]LastDir=C:gmaxgamepacksfs2004pluginsSaveDir=C:gmaxgamepacksfs2004plugins[Options]Crash=0HasNightMap=1Other options are available, download the MAKEMDL sdk for mor information on the options.W. Sieffert

Share this post


Link to post
Share on other sites
Guest Mark02

Hi.Where is the option in GMAX to open up the exporter?If I click export in the file menu it says select a Plasma file (*.P3D) ?? What does this mean? Am I doing something wrong!Any more info appreciated.ThanksMark

Share this post


Link to post
Share on other sites

Hi Mark,If exporting as FS aircraft and scenery aren't options in your Gmax, then you dont' have the gamepack set up correctly. See the Gmax SDK for how to get it set up.thanks,

Share this post


Link to post
Share on other sites
Guest Mark02

Hi Bill :)OK, Thanks for the link. Now... I have downloaded the add-on and converted my object into a Scenery MDL file. So now, how do I convert this to an API file for use in my scenery design program?Thanks.Mark.

Share this post


Link to post
Share on other sites
Guest Mark02

Hi Bill,Yep I have read Bob's post but for FsRegen you need an .ASM file and the file I have now is MDL. So would I know need to convert MDL to ASM?Mark.

Share this post


Link to post
Share on other sites

Mark, are you modelling for fs2004? It sounds like it. If so, then my advice is to add this object using xml code compiled by bglcomp.If you are modelling for fs2002, then you should use the fs2002 gamepack, which allows you to select options in the makemdl.exe program. The option tab will be active in the fs2002 compile process, just check "keep files". Now your compile will provide you with a bgl, an asm file, and a 0_asm file. For fs2004 your goal of converting a gmax file to api may not be worthwhile, all you need to place a 2004 gmax object is to choose a lat/long and create your bgl using xml...even if you are creating a bgl using airport for tarmac or other things, you can just place both bgls in the scenery dir and they will both display just fine.Bob B

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...