• Godot Help
  • JLTF runtime import creates too large of a mesh

I'm trying to make a 3d game where the user can import jltf files for different parts of the robot, that can then have joints added to them so they can be used in a simulation. I'm importing the jltf files using

var gltf_document_load = GLTFDocument.new()
var gltf_state_load = GLTFState.new()
var _error = gltf_document_load.append_from_file(pathToFile, gltf_state_load)
var gltf_scene_root_node = gltf_document_load.generate_scene(gltf_state_load)

This works for simple meshes like a box but for more complex ones like the image provided I get an error that that Condition "surfaces.size() == RenderingServer::MAX_MESH_SURFACES" is true. Is there a way for me to still be able to import and use these larger meshes?

    spaceman11 Is there a way for me to still be able to import and use these larger meshes?

    I guess not. As I understand it, jlTFv and glTF are somewhat different and a special converter is needed.

    jlTF is a very specific format — I couldn't find enough information about it.

    Is it possible to convert jlTF to glTF in another application?

      kkkkkkabc You can think of jltf as gltf, judging from the code

      Apparently there is a difference after all, otherwise it would import normally. If you can share one of the problematic files — I will take a look at it.

        Tomcat Apparently it's a format he invented himself.So only he knows the difference.