I am using Godot to import a model from an .STL file in order to write a user interface for a robotic arm power washer. I have successfully displayed models with less than 1024 facets, but when they get larger, the facets with an index greater than 1024 show as transparent.
Below I show the function used to build the mesh from an array of facets. This is inside of a MeshInstance node. This node's parent is a RigidBody who's addShapes() function creates a trimesh shape and adds it to the RigidBody. I am then able to perform collisions, even with the facets that are transparent.
surfTool = SurfaceTool.new()
var mesh = Mesh.new()
var dataTool = MeshDataTool.new()
var material = FixedMaterial.new()
var selectedTriangles = 
for triangle in triangles:
I also have an additional procedurally generated line (primitivelinestrip) using immediate geometry in an ImmediateGeometry node which shows the path of the arm. This is built after the part model, and also does not appear if the part model size is greater than 1024 facets.
I am not aware of any maximum number for immediate geometry shapes, but it looks like I am running into a wall somehow. Anyone have any ideas?