Jump to content
Sign in to follow this  
arno

Using local .mdl files in ObPlacerXML

Recommended Posts

Guest Che Monro

Can you clarify this for me? When I use a local MDL file in ObPlacerXML to place a custom GMAX object I've made ObPlacer outputs a .bgl file. Does that bgl file contain the model? Or does it refer back to the mdl file? In other words: If I install that .bgl file on a new machine by itself and activate it, will it work?Che

Share this post


Link to post
Share on other sites

>Can you clarify this for me? >>When I use a local MDL file in ObPlacerXML to place a custom>GMAX object I've made ObPlacer outputs a .bgl file. Does that>bgl file contain the model? Or does it refer back to the mdl>file? >>In other words: If I install that .bgl file on a new machine>by itself and activate it, will it work?>>Che Che,Since a BGL file is slightly larger than MDL file, I suspect that it contains the MDL in it, plus a header of some sorts that tells it where to put it, how to orient it etc. So - yes - a BGL file is all you need. Plus textures. Cheers,


P3D SpacePort Team

Share this post


Link to post
Share on other sites

Hi Che,Yes, Misho is right. If you use a "Local MDL" object, then the BGL file contains the MDL object and the code needed to place the object at your given location. FS itself never uses the MDL objects directly.So when placing them, you have them either included in the BGL or you are calling them from a library BGL. The last option is generally prefered, as the first option locks the objects. So if you combine the MDL object and the placement in one file, you can only place it around that location. If you later call the GUID from a different BGL, it will only work if you are close enough. So for generic objects, using a library is prefered.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

Share this post


Link to post
Share on other sites
Guest Che Monro

Hey arno, how do I compile a mdl object(s) into a library bgl? Che

Share this post


Link to post
Share on other sites

You can do that with a XML file. If you only use ModelData commands in your file and no SceneryObject commands, you create a library BGL file.If you prefer a GUI, you can also use Library Creator XML. It is available from my site as well.


Arno

If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done.

FSDeveloper.com | Former Microsoft FS MVP | Blog

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...