Melo965
Resource contributor
- Messages
- 118
- Country

Hello Everyone,
I am using Blender2P3DFSX v1.0.20 and Blender v3.6.5. And ModelConverterX 1.6.
My first attempt at a FSX .MDL creation was just a single object (fuselage) and that appeared to work well. Object and texture appeared in MCX.
My second attempt was to import my whole aircraft (so far) and that did not work. None of the textures were present on the aircraft.
I am working from the old Blender tutorials from Krispy1001. For the materials I selected Specular Material under P3D/FSX Material Params and then made a new material for each object in the scene just like Krispy1001 did in his tutorial. In my case I deselected Use Nodes in Blender and made a material for each seperate object. Is it better in Blender to Use Nodes to generate the materials?
I have not yet started adding textures to do the UVW unwrapping. I figured it would be easier to just output a .MDL with just materials as a first process to confirm that the FSX export process works Ok on my rig. Do I need to have textures along with the materials?
The .MDL creation fails and the output system console has some errors. Also there are no material colors on the .X file upon import to MCX.
I already read about the "Degenerate poly detected" errors and can go back and fix them myself.
But I would like advice about the other errors in my output below.
And the main error is probably that the vertex limit of 65535 has been exceeded. I did read elsewhere on this forum that there is a way around that limit but I only saw it tested out for 3DS Max, and I am using Blender only. Is that work around available for a Blender Workflow too?
Here is my Blender2P3DFSX system console log:
======================================================================================================
Creating MDL file
SDK root directory:
D:\Flight Simulator X SDK\SDK
XtoMdl.exe path:
D:\Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\3DSM7\Plugins\XToMdl.exe
bglcomp.exe path:
D:\Flight Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK\BglComp.exe
======================================================================================================
XToMdl.exe (C) Microsoft
The following output is generated by the tool XToMdl.exe.
This tool is provided with your P3D/FSX SDK and is in no way
related to Blender2P3D/FSX author(s), except by its use here.*
======================================================================================================
****************** Begin of XtoMdl.exe output ******************
OutputFile: G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.MDL
Output file after modification: G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.MDL
Creating output MDL file: G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.MDL
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=2.834323 y=1.392665 z=0.082302
warning : Face vertex 1 x=2.980435 y=1.370755 z=0.07852
warning : Face vertex 2 x=2.980435 y=1.370755 z=0.07852
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=8.631897 y=0.523299 z=-0.067789
warning : Face vertex 1 x=2.980433 y=1.370755 z=0.078519
warning : Face vertex 2 x=2.980433 y=1.370755 z=0.078519
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=-2.981458 y=1.355078 z=0.082162
warning : Face vertex 1 x=-2.980435 y=1.370755 z=0.07852
warning : Face vertex 2 x=-2.980435 y=1.370755 z=0.07852
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=-2.981416 y=1.355077 z=0.07802
warning : Face vertex 1 x=-2.980433 y=1.370755 z=0.078519
warning : Face vertex 2 x=-2.980433 y=1.370755 z=0.078519
CRASHTREE no granularity specified
CRASHTREE completed in 00:00:00.1874506
error : Vertex list has too many vertices (459356), max allowed: 65535
error : Attempting to add an invalid vertex buffer!
error : Vertex list failed allocating. Most likely exceeds the 65535 limit.
Usage: XToMDL.exe /KEEP /NOGUI /BATCH /NOCRASH /BMP2DDS /XMLSAMPLE /XANIM /DICT
ictFileName /OUT:OutfileName Filename.X
Export to MDL failed. Please check the console for details.
Traceback (most recent call last):
File "C:\Users\. . . .\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender2P3DFSX\func_export.py", line 350, in Export
assert getsize(Util.ReplaceFileNameExt(self.config.filepath, '.MDL'))
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\. . . .\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender2P3DFSX\ui_export.py", line 194, in execute
Exporter.Export()
File "C:\Users\. . . .\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender2P3DFSX\func_export.py", line 355, in Export
raise ExportError("Export to .MDL failed. XToMdl.exe returned an error.")
Blender2P3DFSX.li_export.ExportError: Export to .MDL failed. XToMdl.exe returned an error.
Thanks a lot for any assistance!
I am using Blender2P3DFSX v1.0.20 and Blender v3.6.5. And ModelConverterX 1.6.
My first attempt at a FSX .MDL creation was just a single object (fuselage) and that appeared to work well. Object and texture appeared in MCX.
My second attempt was to import my whole aircraft (so far) and that did not work. None of the textures were present on the aircraft.
I am working from the old Blender tutorials from Krispy1001. For the materials I selected Specular Material under P3D/FSX Material Params and then made a new material for each object in the scene just like Krispy1001 did in his tutorial. In my case I deselected Use Nodes in Blender and made a material for each seperate object. Is it better in Blender to Use Nodes to generate the materials?
I have not yet started adding textures to do the UVW unwrapping. I figured it would be easier to just output a .MDL with just materials as a first process to confirm that the FSX export process works Ok on my rig. Do I need to have textures along with the materials?
The .MDL creation fails and the output system console has some errors. Also there are no material colors on the .X file upon import to MCX.
I already read about the "Degenerate poly detected" errors and can go back and fix them myself.
But I would like advice about the other errors in my output below.
And the main error is probably that the vertex limit of 65535 has been exceeded. I did read elsewhere on this forum that there is a way around that limit but I only saw it tested out for 3DS Max, and I am using Blender only. Is that work around available for a Blender Workflow too?
Here is my Blender2P3DFSX system console log:
======================================================================================================
Creating MDL file
SDK root directory:
D:\Flight Simulator X SDK\SDK
XtoMdl.exe path:
D:\Flight Simulator X SDK\SDK\Environment Kit\Modeling SDK\3DSM7\Plugins\XToMdl.exe
bglcomp.exe path:
D:\Flight Simulator X SDK\SDK\Environment Kit\BGL Compiler SDK\BglComp.exe
======================================================================================================
XToMdl.exe (C) Microsoft
The following output is generated by the tool XToMdl.exe.
This tool is provided with your P3D/FSX SDK and is in no way
related to Blender2P3D/FSX author(s), except by its use here.*
======================================================================================================
****************** Begin of XtoMdl.exe output ******************
OutputFile: G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.MDL
Output file after modification: G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.MDL
Creating output MDL file: G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.MDL
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=2.834323 y=1.392665 z=0.082302
warning : Face vertex 1 x=2.980435 y=1.370755 z=0.07852
warning : Face vertex 2 x=2.980435 y=1.370755 z=0.07852
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=8.631897 y=0.523299 z=-0.067789
warning : Face vertex 1 x=2.980433 y=1.370755 z=0.078519
warning : Face vertex 2 x=2.980433 y=1.370755 z=0.078519
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=-2.981458 y=1.355078 z=0.082162
warning : Face vertex 1 x=-2.980435 y=1.370755 z=0.07852
warning : Face vertex 2 x=-2.980435 y=1.370755 z=0.07852
warning : Degenerate poly detected in file (G:\Blender Foundation\blender-3.3.4\3.3\datafiles\projects\FSX_Export\meteorpr19a-test-05-M.x) mesh ()
warning : Face vertex 0 x=-2.981416 y=1.355077 z=0.07802
warning : Face vertex 1 x=-2.980433 y=1.370755 z=0.078519
warning : Face vertex 2 x=-2.980433 y=1.370755 z=0.078519
CRASHTREE no granularity specified
CRASHTREE completed in 00:00:00.1874506
error : Vertex list has too many vertices (459356), max allowed: 65535
error : Attempting to add an invalid vertex buffer!
error : Vertex list failed allocating. Most likely exceeds the 65535 limit.
Usage: XToMDL.exe /KEEP /NOGUI /BATCH /NOCRASH /BMP2DDS /XMLSAMPLE /XANIM /DICT
Export to MDL failed. Please check the console for details.
Traceback (most recent call last):
File "C:\Users\. . . .\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender2P3DFSX\func_export.py", line 350, in Export
assert getsize(Util.ReplaceFileNameExt(self.config.filepath, '.MDL'))
AssertionError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\. . . .\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender2P3DFSX\ui_export.py", line 194, in execute
Exporter.Export()
File "C:\Users\. . . .\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\Blender2P3DFSX\func_export.py", line 355, in Export
raise ExportError("Export to .MDL failed. XToMdl.exe returned an error.")
Blender2P3DFSX.li_export.ExportError: Export to .MDL failed. XToMdl.exe returned an error.
Thanks a lot for any assistance!