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

MCX drawcall issues

Horst18519

Moderator
Resource contributor
Messages
2,385
Country
germany
Hello Arno,

I got a problem with MCX trying to process a rather big file. The object contains 120.000 vertices, all sharing the same texture.
I was able to process a similar file with MCX without problems, MCX automatically split the model and cloned the materials so it wouldn't hit the 65.000 texture vertices limit.

With this object, MCX fails to do so and hits the limit.

If I try to predict the drawcalls using the material editor, I get a crash message (see below).

I will send you the (rather big) file via mail, maybe you can take a look at MCX. I can't find any mistake here as that other similar file works quite well.

Thanks!

Code:
Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.NullReferenceException: Der Objektverweis wurde nicht auf eine Objektinstanz festgelegt.
   bei ASToFra.ModelConverterX.MaterialEditorForm.PredictResult()
   bei System.Windows.Forms.Control.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bei System.Windows.Forms.Button.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4984 (win7RTMGDR.050727-4900).
    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:///P:/FS/Scenery-Design/ModelConverterX/ModelConverterX.exe.
----------------------------------------
ModelConverterX
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/ModelConverterX.DLL.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4977 (win7RTMGDR.050727-4900).
    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.4984 (win7RTMGDR.050727-4900).
    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.4980 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
Interfaces
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/Interfaces.DLL.
----------------------------------------
ObjectModel3D
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/ObjectModel3D.DLL.
----------------------------------------
EventLog
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/EventLog.DLL.
----------------------------------------
ObjectWriter
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/ObjectWriter.DLL.
----------------------------------------
ObjectReader
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/ObjectReader.DLL.
----------------------------------------
ObjectRenderer
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/ObjectRenderer.DLL.
----------------------------------------
CSGL12DLL
    Assembly-Version: 12.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/CSGL12DLL.DLL.
----------------------------------------
ParticleEffects
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/ParticleEffects.DLL.
----------------------------------------
System.Configuration
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    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.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
Utils
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/Utils.DLL.
----------------------------------------
mscorlib.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4984 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll.
----------------------------------------
TextureObject
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/TextureObject.DLL.
----------------------------------------
TextureLoader
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/TextureLoader.DLL.
----------------------------------------
ObjectEditor
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/ObjectEditor.DLL.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
System.Drawing.Design
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing.Design/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll.
----------------------------------------
System.Design
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4977 (win7RTMGDR.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Design/2.0.0.0__b03f5f7f11d50a3a/System.Design.dll.
----------------------------------------
System.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.4927 (NetFXspW7.050727-4900).
    CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.resources/2.0.0.0_de_b77a5c561934e089/System.resources.dll.
----------------------------------------
TextureWriter
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/TextureWriter.DLL.
----------------------------------------
Coordinates
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.4.0.0.
    CodeBase: file:///P:/FS/Scenery-Design/ModelConverterX/Coordinates.DLL.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

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

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
 
OK, I'll take a look.
 
Hi Thorsten,

I can't reproduce it here. Object loads fine. When I go to the drawcall minimizer it gives me the result quite quickly (since there is only one texture used you won't get any improvements from running the drawcall minimizer btw).

Are you using the latest development release?
 
I tried different dev releases, no change. Were you able to compile the MDL?
 
Hi Thorsten,

No I can't export it. It still complains about too many vertices, although MCX does make multiple model parts. Would have to check what is going on there.
 
Could that be related to how the model is structured? This model consists of only one big mesh, not several parts.
I tried to detach some parts though, and still got that error.
 
MCX does make the extra parts, that's the way to normally work around the error. For some reason XtoMDL does not like it in this case. I'll see what I can figure out.
 
Hi,

I think I have found the reason, it's fixed in the next development release. Then it should export again.

It seems there is a difference in how XtoMDL handles materials with and without textures. And last time I tested with a big object without textures.
 
Back
Top