Jump to content
Boberitto

Error while exporting model from Blender

Recommended Posts

I have this error while exporting my Blender model into .p3d

Python: Traceback (most recent call last):
  File "C:\Users\Norbi\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\ArmaToolbox\__init__.py", line 223, in execute
    exportMDL(self, filePtr, self.selectionOnly);
  File "C:\Users\Norbi\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\ArmaToolbox\..\ArmaToolbox\MDLexporter.py", line 511, in exportMDL
    export_lod(filePtr, obj, wm, idx)
  File "C:\Users\Norbi\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\ArmaToolbox\..\ArmaToolbox\MDLexporter.py", line 423, in export_lod
    writeFaces(filePtr, obj, mesh)
  File "C:\Users\Norbi\AppData\Roaming\Blender Foundation\Blender\3.6\scripts\addons\ArmaToolbox\..\ArmaToolbox\MDLexporter.py", line 111, in writeFaces
    raise RuntimeError("Model " + obj.name + " contains n-gons and cannot be exported")
RuntimeError: Model View Geometry contains n-gons and cannot be exported

Can anybody help?

Share this post


Link to post
Share on other sites

Hey mate, 

 

your model has n-gons, like your error is trying to tell you.

 

N-gons are planes that have more than 4 vertex points. So you need to get rid of them. Game Engines can't handle them, and the arma tool which you are using to export things for arma is checking if you have any.

 

The quick way is to triangulate everything or search with a blender tool for planes with more than 4 vertex points. 

  • Like 1

Share this post


Link to post
Share on other sites
On 8/15/2023 at 1:56 PM, Rxo said:

Hey mate, 

 

your model has n-gons, like your error is trying to tell you.

 

N-gons are planes that have more than 4 vertex points. So you need to get rid of them. Game Engines can't handle them, and the arma tool which you are using to export things for arma is checking if you have any.

 

The quick way is to triangulate everything or search with a blender tool for planes with more than 4 vertex points. 

Okay, thank you!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×