- Messages
- 1,840
- Country

[modified after 'experimenting']
After creating a new scenery model and adding the folder containing the .gltf, .bin and .xml files (created by the Asobo exporter in Blender) to my modellib folder and the associated texture files to the texture folder, when I load the project in SDK project editor and do a build I get an error.
When I remove the new scenery model from the modellib folder I don't get the error.
The build complains that it can't find the .gltf in the _PackageInt/_tempfiles folder (see image below).
It now appears that all the errors are the result of the error "... has an invalid triangle mode, only triangle lists are supported"
I found that 'invalid triangle' can be corrected by using MESH CLEANUP > DELETE LOOSE and MESH CLEANUP > DECIMATE DISSOLVE.
HOWEVER I have a really WEIRD situation. My (complex) scenery object was created with 2 separate Blender files (to keep things separate and for my piece of mind). I found that the invalid triangle error was related to just ONE of those 2 separate 'parts'. I then corrected this blender file and was able to build it (the single part) without error.
If I export each of the separate blender files into 2 separate 'objects' (.gltf, .bin, '.xml etc) and place them into the modellib folder and build there are NO ERRORS.
HOWEVER if I append the 2 separate blender files into 1 blender file and export when I use the single scenery in my modellib and build I get the error!
I prefer to have a single scenery object as having my scenery object in 2 separate objects means I have to place 2 separate 'models' to the correct position instead of only one. Very annoying.
Any ideas how I can create a single scenery object from the three blender files and not get the "invalid triangle mode" error?
After creating a new scenery model and adding the folder containing the .gltf, .bin and .xml files (created by the Asobo exporter in Blender) to my modellib folder and the associated texture files to the texture folder, when I load the project in SDK project editor and do a build I get an error.
When I remove the new scenery model from the modellib folder I don't get the error.
The build complains that it can't find the .gltf in the _PackageInt/_tempfiles folder (see image below).
It now appears that all the errors are the result of the error "... has an invalid triangle mode, only triangle lists are supported"
I found that 'invalid triangle' can be corrected by using MESH CLEANUP > DELETE LOOSE and MESH CLEANUP > DECIMATE DISSOLVE.
HOWEVER I have a really WEIRD situation. My (complex) scenery object was created with 2 separate Blender files (to keep things separate and for my piece of mind). I found that the invalid triangle error was related to just ONE of those 2 separate 'parts'. I then corrected this blender file and was able to build it (the single part) without error.
If I export each of the separate blender files into 2 separate 'objects' (.gltf, .bin, '.xml etc) and place them into the modellib folder and build there are NO ERRORS.
HOWEVER if I append the 2 separate blender files into 1 blender file and export when I use the single scenery in my modellib and build I get the error!
I prefer to have a single scenery object as having my scenery object in 2 separate objects means I have to place 2 separate 'models' to the correct position instead of only one. Very annoying.
Any ideas how I can create a single scenery object from the three blender files and not get the "invalid triangle mode" error?
Last edited: