• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

0x0 foot print library object.

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:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
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.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,854
Country
unitedkingdom
ADE does read the bounding box
 
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
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.
 
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Could you attach the mdl so I can check?
 
Messages
6
Country
italy
OK ! here it is, thank you very much.
It is a very simple test object.
 

Attachments

  • test.zip
    354.8 KB · Views: 305

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,854
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
 

GHD

Messages
12,243
Country
england
According to MCX, the bounding box is (-75.114, -145.5, -0.272), (75.114, 145.5, 77.35)

 
Last edited:

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,854
Country
unitedkingdom
Is it possible that ADE is not reading the mdl correctly?
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,854
Country
unitedkingdom
OK - that is one mystery solved. The mdlType is PV20 and ADE does not recognize it at the moment - thanks George :)
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
34,854
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
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
And I've also fixed the bug now that crashed the MDL Tweaker with P3D v2 MDL files :).
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Messages
32,883
Country
netherlands
Yes, very effective thread this. Fixes bugs in multiple tools at once :D
 

tgibson

Resource contributor
Messages
11,338
Country
us-california
Yes, and not even the tool that this forum supports... :) (This is the Library Creator XML forum.)
 
Top