• 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 Texture Bug - Some DDS Textures Show As Black?

Messages
14
Country
unitedkingdom
Interesting thing I have noticed with the latest development release (DEV 04/03/2023).

I'm getting some DDS textures showing up as black in the viewer on certain models, both FSX & P3D MDLs.

When I click on one of those textures in the material editor (which show up as white), the following error throws up: -

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

************** Exception Text **************
System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex
at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
at ASToFra.ModelConverterX.TextureConverterForm.SetTexture()
at ASToFra.ModelConverterX.TextureConverterForm..ctor(ITextureImage teximg)
at ASToFra.ModelConverterX.MaterialEditorForm.lstMaterials_DoubleClick(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
at System.Windows.Forms.ListView.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4614.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
ModelConverterX
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ModelConverterX.exe
----------------------------------------
ASToFra.ErrorHandler
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.ErrorHandler.DLL
----------------------------------------
ASToFra.Interfaces
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Interfaces.DLL
----------------------------------------
ASToFra.Texture.Reader
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Texture.Reader.DLL
----------------------------------------
ASToFra.Object.DataModel
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Object.DataModel.DLL
----------------------------------------
ASToFra.Object.Reader
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Object.Reader.DLL
----------------------------------------
ASToFra.Object.Writer
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Object.Writer.DLL
----------------------------------------
ASToFra.Object.Renderer
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Object.Renderer.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4550.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ASToFra.Texture.Object
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Texture.Object.DLL
----------------------------------------
ASToFra.Texture.Writer
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Texture.Writer.DLL
----------------------------------------
ASToFra.Object.Processor
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Object.Processor.DLL
----------------------------------------
ASToFra.Utils
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Utils.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4605.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
ASToFra.MapRenderer
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.MapRenderer.DLL
----------------------------------------
ASToFra.Geometry
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.Geometry.DLL
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
ASToFra.FSUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.FSUtils.DLL
----------------------------------------
ASToFra.EventLog
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.EventLog.DLL
----------------------------------------
OpenTK.GLControl
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/OpenTK.GLControl.DLL
----------------------------------------
OpenTK
Assembly Version: 3.1.0.0
Win32 Version: 3.1.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/OpenTK.DLL
----------------------------------------
ASToFra.ParticleEffects
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.ParticleEffects.DLL
----------------------------------------
Interop.WMPLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/Interop.WMPLib.DLL
----------------------------------------
ASToFra.LicenseHelper
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.LicenseHelper.DLL
----------------------------------------
Portable.Licensing
Assembly Version: 1.0.0.0
Win32 Version: 1.1.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/Portable.Licensing.DLL
----------------------------------------
AssimpNet
Assembly Version: 5.0.0.0
Win32 Version: 5.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/AssimpNet.DLL
----------------------------------------
ASToFra.XPUtils
Assembly Version: 1.0.0.0
Win32 Version: 1.6.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ASToFra.XPUtils.DLL
----------------------------------------
lib3ds.Net
Assembly Version: 2.0.0.15635
Win32 Version: 2.0.0.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/lib3ds.Net.DLL
----------------------------------------
ObjectListView
Assembly Version: 2.9.1.25410
Win32 Version: 2.9.1.0
CodeBase: file:///L:/FSX%20Addons/FS%20Addons%202/FSX%20Freeware%202/Tools/MDL%20Converter/Development%20Releases/2023/modelconverterx_latest_development_release_04-03-2023/ObjectListView.DLL
----------------------------------------
System.Drawing.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4200.0 built by: NET48REL1LAST_C
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.Design.dll
----------------------------------------
System.Design
Assembly Version: 4.0.0.0
Win32 Version: 4.8.4084.0 built by: NET48REL1
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Design/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Design.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.

I've noticed though that if I resave the problem textures in DXT BMP as exactly the same (DXT 5 in this case), the textures show up fine!
 

Attachments

  • Untitled.jpg
    Untitled.jpg
    539.7 KB · Views: 44
Last edited:
Hi,

Would you have one of these textures as sample to debug with? Might be related to the mipmap change I made recently.
 
Hi Arno, the latest release certainly has something strange going on. Here are 2 images of a FS2004 heli: the image with the lighter camo is the "strange" coloring from the current release, the other darker camo is exactly the same heli on an older (13.08.2022) release. The file can be downloaded from: http://www.simviation.com/cgi-bin/syb2.cgi?section=helicopters&file=ALPHA_Hughes_MD500_FS9.zip

EDIT: actually maybe something is going on with my setup.... Even with the earlier release, textures are not showing up properly - the Material Editor will show the name of the BMP textures, but show only blanks for the actual textures. Puzzling...
 

Attachments

  • Clipboard 1.jpg
    Clipboard 1.jpg
    25.8 KB · Views: 38
  • Clipboard 2.jpg
    Clipboard 2.jpg
    24.7 KB · Views: 34
Last edited:
Yes Arno, I'll attach one for you.
Thanks. I see ImageTool also refuses to load this texture. I am going to debug in my code to see what goes wrong.
 
I have been able to reproduce the issue. The problem was that the DDS header specified 0 mipmaps. I have made the DDS reader more flexible now so that it loads this file correctly as well.
 
I have been able to reproduce the issue. The problem was that the DDS header specified 0 mipmaps. I have made the DDS reader more flexible now so that it loads this file correctly as well.
Thanks Arno.

Interestingly, I'm able to open those textures that were showing black in MCX in the P3D version of Image Tool, without issue!
 
Interesting, the P3D v1.4 SDK ImageTool does not, but newer ones from v4/v5 can indeed open it.

The fix will be in the next MCX release btw.
 
Back
Top