0x0 foot print library object.

#1
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
#2
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.
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
#5
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
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.
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#9
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
 

scruffyduck

Administrator
Staff member
FSDevConf team
Resource contributor
#13
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
#14
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
#15
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
#17
Yes, very effective thread this. Fixes bugs in multiple tools at once :D
 
Top