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

Blender 2 P3DFSX first attempts

Melo965

Resource contributor
Messages
118
Country
us-washington
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:DictFileName /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!
 
Back
Top