Jump to content

Sign in to follow this  
rhumbaflappy

MDL in SceneGenX

Recommended Posts

Guest JanH

I have made some small sceneries with FSSC and used FSDS to make my own macros. To keep up with the new trends I have tried SceneGeneX.It works fine with the different objects from witin SceneGenX (like buildings, windsocks etc), but I have not been able to use tne standard MDL library or MDLs from outside. The SceneGenX and BGLComp seem to work as BGLs are properly generated with generic objects.I see a lot of MDLs when I select MDL objects, and when selected they also show up in the XML file and the compilation works without errors, but they never show up in FS.What have I missed?

Share this post


Link to post
Share on other sites

Hi Jan,You need to add your MDL object to the object list in SceneGenX first. But I find this step a bit confusing, it is not really easy to use. Therefore I prefer to make a library of my MDL objects first and then just call the GUID in SceneGenX. That is easy to do.

Share this post


Link to post
Share on other sites

Hi Jan,The SGX Create3D Object selection is quite powerful. Two tab, Library Object and MDL Object are used for adding Library Objects. The Library Object tab is used to select known available default library objects available in FS2004 Scenery Library Object files. You should be able to select from the list a library object, compile and have the object appear in your scenery. The following is the XML calling an object:80.759723445532" alt = "0.0" altitudeIsAgl = "TRUE" pitch = "0.0" bank = "0.0" heading = "0.0" imageComplexity = "SPARSE"> The MDL Object tab is more powerful, in that, it allows you to enter two sections in you XML file. The first section tells the compiler to compile MDL file into the resulting BGL file: The section section is the calling of this same object:80.743193557605" alt = "0.0" altitudeIsAgl = "TRUE" pitch = "0.0" bank = "0.0" heading = "0.0" imageComplexity = "SPARSE"> Therefore, SGX provides a way to include an MDL into your scenery files for use as a library object.Why would one want to include an MDL into their scenery file? One reason may be they only have one object to include and don't want to make a separate Library Object file. Another reason may be they want to limit the number of files in their scenery design.Why would one want to make a separate Library Object file. One reason could be they have many library objects for use in their scenery design. Compiling the Library Objects each time in one scenery file makes the overall compile time lengthy and also increases the size of the file. A separate library object file only needs compiled once and is placed in the Project's Scenery folder. The Project's other scenery file only contains the call to the library object file. The resulting Project BGL lets the flight simulator's scenery generator find the called library objects from the library object file.If you are making MDL files with a program other than GMAX FS2004 Exporter, then they probably are not in a format required for using them as FS2004 library objects.W. Sieffert

Share this post


Link to post
Share on other sites
Guest JanH

Thank you both for your kind help.But I am afraid that I am still a bit confused. Can you have a little more patience with me?Today some of the standard objects turned up, buildings eg, but not aircraft.When I try one of Arnos trees (ag_tree01) I select library object and write the GUID by hand.That results in the following XML code:00137 - 00146 - 00148 - The code is successfully compiled, and the other objects (generic buildings and standard objects apart from aircrafts) appear where they shuold, but not the tree.The library ag_tree_lib.BGL is placed in ...scenery/generic/scenery.BTW is it necessary to write the GUID. Can it be copied/pasted or something?

Share this post


Link to post
Share on other sites

OK, let me check. Could be something with the library, the API's I provided don't seem to work either, but when I tested with the XML code it worked fine here.I will test it and report back.

Share this post


Link to post
Share on other sites

I just tested it here and it works fine. I added a new 3D object with the GUID of my tree in SGX. After that it shows fine in the scenery. So maybe something else is going wrong...

Share this post


Link to post
Share on other sites
Guest JanH

Thank you again Arno for your effort.To be quite sure, is this the correct procedure for your trees in SGX?1 Create 3D object2 Select Library object3 Write GUID in that window4 OKand the ag_teee_lib.bgl in ..FS9/scenery/generic/scenery

Share this post


Link to post
Share on other sites
Guest JanH

Hi again ArnoI finally got your trees into FS!!I made a new library with your Library Maker from your MDL files, and put that library.BGL into Fs.../scenery and called the (now new) GUIDs from SGX. It worked nicely.Perhaps I damaged the original lib during my handling of it or something.Anyway, I am happy to be able to use the trees :-sun1 :-sun1

Share this post


Link to post
Share on other sites

I tried using the library file included with the download and it would not show trees. It also has four scenery objects called LAT/LON 40/-40. Don't know what they are and shouldn't be in a library file.W. Sieffert

Share this post


Link to post
Share on other sites

Yes, I noticed that as well. Seems my test objects are still included. Let me see if removing them solves it. Could it be that including placement code locks the library objects to a certain area?

Share this post


Link to post
Share on other sites

Thanks, that was it indeed. Now the library works OK.I had spotted this mistake a few days ago, but I never thought it was the reason for the lib not to work. It seems if you add placement to a library the objects are locked, like some the default objects of MS.I have uploaded a new corrected version of the library to my site now.

Share this post


Link to post
Share on other sites

Hummm! That is interesting information! That could deal a reason NOT to include Model Objects in positional scenery files. Keep them as Library Object files only!!!W. Sieffert

Share this post


Link to post
Share on other sites

Yes, I agree with that. Can somebody try to reproduce what I found here, just to be sure that this was the problem?

Share this post


Link to post
Share on other sites

Yes, the library works now. But I am also interested if someone can reproduce the "locking" of the objects in his own library by adding placement code. That would give us some extra knowledge about how the XML scenery works :).

Share this post


Link to post
Share on other sites
Guest JR Morgan

W..Yes indeed -- and that's the reason I've always "Crusaded" (Re: "Bloated bgls discussion on the other forum) for using library objects only for all objects when possible.Arno..Correct me if I'm wrong but doesn't Rhumba's revealed method of extracting object defining data (only) from it's mdl info in any bgl and then placing them as lib objects can circumvent the (default) geo-placement?J.R

Share this post


Link to post
Share on other sites

Hi J.R.,I can't remember exactly how Dick did it when he unlocked these objects. It could very well be that he just stripped the objects and placed them in a new library. But after reading through his posts about that, I never realised that it was the placement code that locked them, I thought it was some special code somewhere. That is why I found this very interesting.

Share this post


Link to post
Share on other sites

Hi Arno.Yes, I just stripped the MDL code and then made a new library of the default objects. Then they couldbe placed anywhere.http://webpages.charter.net/ludowr/Locatio...ked_Library.zipThat is a simple example. 2 different libraries... one with locked code that is placed in North America. The outside placement BGL is in Africa. I also made several folders to be able to separate or combine the Libraries and the outside placement BGL.==================Placement code within the library does lock the placement... but FS9 has some sort of area, or banding, built in for locked libraries.Placing the objects slightly outside the NW or SE of the defined area is OK.. but placing them far away is not.How far away? I don't know.I agree with J.R. We probably should NOT use placement code with our compiled MDL code. Better to make a Library of the MDLs, then a separate placement BGL to locate them. Dick

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...