1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

0x0 foot print library object.

Discussion in 'Library Creator XML' started by NN_Avirex, 2 May 2014.

  1. NN_Avirex

    NN_Avirex

    Joined:
    2 May 2014
    Messages:
    6
    Country:
    italy
    Hello and thanks for your work !

    I'm using the last beta version of ModelConverter X to convert collada files to .mdl files.
    I create my 3d models with C4D 11.5 wich is my favorite professional soft, and then export them as .dae files to use them in MCX.
    It seems to work well (apart the fact there is no more "mass texture" button in the beta version, to convert bmp into dds ), and at the end I have a 12x5m .mdl textured object

    Then I make a library with the last beta version of library creator xml, put the .mdl file in it and save the library. No error message until this point.

    I precise that I'm working for p3dV2 exclusively and use the P3dv2 SDK. All the path seems to be OK in the options.

    Then I try to add the object I've just put in my new library in an airport using the very last version of ADE (1.61 5220).
    ADE add the library, displays the object in the list but consider it as a 0x0 m foot print object, and of course invisible, even if ADE places it on the airport.

    I'm surely missing something, I checked everything but can't find the solution.

    Thank you for your help.
     
    Last edited: 2 May 2014
  2. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,917
    Country:
    netherlands
    Hi,

    In the latest version of modelconverterx the mass texture editor is integrated in the material editor. So you'll find all options to convert textures there.

    If you expand the object information in library creator xml, I think it should also show the bounding box size (if I remember correctly). What sizes do you see there? I would expect ADE gets it's size information from the bounding box.
     
  3. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17 Sep 2005
    Messages:
    29,072
    Country:
    unitedkingdom
    ADE does read the bounding box
     
  4. NN_Avirex

    NN_Avirex

    Joined:
    2 May 2014
    Messages:
    6
    Country:
    italy
    I see clearly the bounding box in MCX.
    But there is no information about it even expanding the object in LCX.
     
  5. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,917
    Country:
    netherlands
    Hi,

    Sorry, must have remembered it wrong then.

    Could you try to load the MDL in the MDL Tweaker of ModelConverterX (you can find it in the special tools menu). What does it show for the bounding box? That editor reads what is in the MDL, while ModelConverterX itself will calculate the bounding box based no the geometry.
     
  6. NN_Avirex

    NN_Avirex

    Joined:
    2 May 2014
    Messages:
    6
    Country:
    italy
    I did that before but here the error message I have :

    See the end of this message for details on invoking
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
    at System.ThrowHelper.ThrowKeyNotFoundException()
    at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
    at ASToFra.Utils.RIFFObject.ReadChildren(RIFFSection riff, Int32 parlen)
    at ASToFra.Utils.RIFFObject.ReadChildren(RIFFSection riff, Int32 parlen)
    at ASToFra.Utils.RIFFObject.Read(String filename, Dictionary`2 formatInfo)
    at ASToFra.ModelConverterX.MDLTweakerForm.cmdMDLFile_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    ************** Loaded Assemblies **************
    mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5472 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll
    ----------------------------------------
    ModelConverterXLaunch
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ModelConverterX.exe
    ----------------------------------------
    ASToFra.Utils
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.Utils.DLL
    ----------------------------------------
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5468 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5467 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    ASToFra.ModelConverterX
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.ModelConverterX.DLL
    ----------------------------------------
    ASToFra.Interfaces
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.Interfaces.DLL
    ----------------------------------------
    ASToFra.ObjectModel3D
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.ObjectModel3D.DLL
    ----------------------------------------
    ASToFra.EventLog
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.EventLog.DLL
    ----------------------------------------
    ASToFra.ObjectReader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.ObjectReader.DLL
    ----------------------------------------
    ASToFra.ObjectWriter
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.ObjectWriter.DLL
    ----------------------------------------
    ASToFra.ObjectRenderer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.ObjectRenderer.DLL
    ----------------------------------------
    CSGL12DLL
    Assembly Version: 12.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/CSGL12DLL.DLL
    ----------------------------------------
    ASToFra.ParticleEffects
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.ParticleEffects.DLL
    ----------------------------------------
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5476 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    ASToFra.TextureObject
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.TextureObject.DLL
    ----------------------------------------
    lib3ds.Net
    Assembly Version: 2.0.0.2086
    Win32 Version: 2.0.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/lib3ds.Net.DLL
    ----------------------------------------
    ASToFra.TextureLoader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.4.0.0
    CodeBase: file:///K:/P3D%20et%20addons/AIRPORT%20en%20chantier/modelconverterx_latest_development_release/ASToFra.TextureLoader.DLL
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
    <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.
     
  7. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,917
    Country:
    netherlands
    Could you attach the mdl so I can check?
     
  8. NN_Avirex

    NN_Avirex

    Joined:
    2 May 2014
    Messages:
    6
    Country:
    italy
    OK ! here it is, thank you very much.
    It is a very simple test object.
     

    Attached Files:

    • test.zip
      File size:
      354.8 KB
      Views:
      136
  9. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17 Sep 2005
    Messages:
    29,072
    Country:
    unitedkingdom
    I can confirm that ADE is finding a bounding box of 0x0 for this model. That is based on reading the X,Y,Z dimensions from the mdl file
     
  10. Golf-HotelDelta

    Golf-HotelDelta

    Joined:
    20 Dec 2004
    Messages:
    11,232
    Country:
    england
    According to MCX, the bounding box is (-75.114, -145.5, -0.272), (75.114, 145.5, 77.35)

    [​IMG]
     
    Last edited: 3 May 2014
  11. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17 Sep 2005
    Messages:
    29,072
    Country:
    unitedkingdom
    Is it possible that ADE is not reading the mdl correctly?
     
  12. Golf-HotelDelta

    Golf-HotelDelta

    Joined:
    20 Dec 2004
    Messages:
    11,232
    Country:
    england
    I th
    Don't forget it a P3D model. ADE thinks the model has a zero GUID. Whereas MCX shows a valid one:

    [​IMG]
     
    Last edited: 3 May 2014
  13. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17 Sep 2005
    Messages:
    29,072
    Country:
    unitedkingdom
    OK - that is one mystery solved. The mdlType is PV20 and ADE does not recognize it at the moment - thanks George :)
     
  14. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17 Sep 2005
    Messages:
    29,072
    Country:
    unitedkingdom
    OK I can readi it correctly now I think. The bounding box is 150 x 291 meters. Sorry guys - mea culpa for not checking the P3D V2 models more carefully :oops:

    I have the GUID and name fine also
     
  15. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,917
    Country:
    netherlands
    And I've also fixed the bug now that crashed the MDL Tweaker with P3D v2 MDL files :).
     
  16. scruffyduck

    scruffyduck Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    17 Sep 2005
    Messages:
    29,072
    Country:
    unitedkingdom
    Good news then :)
     
  17. arno

    arno Administrator Staff Member FSDevConf team Resource contributor

    Joined:
    28 May 2004
    Messages:
    24,917
    Country:
    netherlands
    Yes, very effective thread this. Fixes bugs in multiple tools at once :D
     
  18. tgibson

    tgibson

    Joined:
    22 Sep 2006
    Messages:
    6,997
    Country:
    us-california
    Yes, and not even the tool that this forum supports... :) (This is the Library Creator XML forum.)