Hi all, I am attempting to export a simple GLB from Blender and use it in ThreeJS with a multi-material. If I export the GLB with the Materials
dropdown in Blender’s export dialogue set to No export
, the scene compiles and renders correctly, but the object is not visible. I assume this is because Blender does not export my Material IDs (or Draw Groups, whatever they are called!), when no materials are being exported.
If I choose Placeholder
in the Material
dropdown in Blender’s export dialogue, then when I use the GLB, ThreeJS
throws the error
Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'morphAttributes')
I’ve tracked this down to the getParameters()
function in ThreeJS
. One of its arguments is object
and the function sets a const
to the geometry
property of that object
. In my case, my object
is a Group
and has no geometry
. Hence the error. I did not make this 3D mesh into a Group
, by the way - either Blender’s export did that or ThreeJS’s import.
Does anyone know of a workaround please?
Many thanks in advance