Heres an example of the new embedded_components (I think this is working now ).
embedded_components {
id: "Ads_mesh"
type: "model"
data: "mesh: \"/demo2/meshes/Ads.gltf\"\n"
"name: \"{{NAME}}\"\n"
"materials {\n"
" name: \"Ads\"\n"
" material: \"/demo2/materials/pbr-simple.material\"\n"
"textures {\n"
" sampler: \"albedoMap\"\n"
" texture: \"/demo2/materials/white.png\"\n"
"}\n"
"textures {\n"
" sampler: \"aoMetallicRoughnessMap\"\n"
" texture: \"/demo2/images/AdsAMRtexture.png\"\n"
"}\n"
"textures {\n"
" sampler: \"emissiveMap\"\n"
" texture: \"/demo2/materials/black.png\"\n"
"}\n"
"textures {\n"
" sampler: \"normalMap\"\n"
" texture: \"/demo2/materials/normal.png\"\n"
"}\n"
"textures {\n"
" sampler: \"reflectionMap\"\n"
" texture: \"/demo2/materials/grey.png\"\n"
"}\n"
"}\n"
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.70710677
y: 0.0
z: 0.0
w: 0.70710677
}
}
This is what they used to look like (roughly since I dont have the exact file on hand atm):
embedded_components {
id: "Ads_mesh"
type: "model"
data: "mesh: \"/demo2/meshes/Ads.gltf\"\n"
"name: \"{{NAME}}\"\n"
"material: \"/demo2/materials/pbr-simple.material\"\n"
"texture: \"/demo2/materials/white.png\"\n"
"texture: \"/demo2/images/AdsAMRtexture.png\"\n"
"texture: \"/demo2/materials/black.png\"\n"
"texture: \"/demo2/materials/normal.png\"\n"
"texture: \"/demo2/materials/grey.png\"\n"
position {
x: 0.0
y: 0.0
z: 0.0
}
rotation {
x: 0.70710677
y: 0.0
z: 0.0
w: 0.70710677
}
}
While its subtle this change is also elsewhere as well. And when generating was causing various problem, but more importantly I wasnt sure what it was supposed to be
I ended up making some dummy files and setting them on Defold side to see what they should be.
The import crashes (gltf and glb) are more complex and Im not certain what is really the cause there. I used to import quite large scenes (the blender demo for instance) and now these have multiple exceptions popping up and all sorts. I need to first get defender updated to match the expected formats, and then I can start measuring a bit better.