Hello,
I have worked with 2D in Defold for quite some time and have started fiddling around with 3D models recently. Unfortunately, I got stuck quickly…
I have created a model in the Basic 3d project template provided with Defold. I have tried to take a simple, freely available Collada-format model from the kenney_space-kit in order to add it to a Defold gameobject. Adding this model works somewhat - but unexpectedly, the model remains completely black and partly invisible.
The Collada file comes without any textures, but has orange and gray colors that do not get displayed, so I wonder what is wrong?
I created the Defold model object and set its “mesh” property to the “craft_speederA.dae” file and its material to “/builtins/materials/model.material”. There is no texture, so I leave “tex0” empty, just like skeleton, animations and default animation.
When, as an experiment, I do assign any bitmap as the model’s texture (e.g. “brown.png” or “green.png” from the Basic 3d template), the speeder model does get rendered with that texture (in parts), although of course, the texture does not fit the model.
However, just opening the .dae-File in even a very simple viewer (“Preview” on MacOSX), the model is rendered correctly including its colors, as intended by Kenny, but not so in Defold.
Can anyone give me a hint what I am doing wrong?
You can download the very simple example project at https://spaceboom.de/Basic3Dspeeder.zip
Thanks,
Lutz