Godot - importing models from Blender, missing materials.
-
Hi, I've put together a sample project at https://github.com/IanBUK/GodotBlenderModelMaterialTest which demonstrates my problem.
When I use any of the free 3D models, for example the 'Nathan' FBX model from RenderPeople used in my sample app, the materials show in Blender. When exported as gltf files, they also show in Godot editor. If I run the simple app on my Mac, then they also on the build running on the Mac desktop. However, when I export to Android - using a Samsung A8 - the materials are missing.
I've created a simple Blender object, basically a box with a material wrapped around it, and that shows fine in Blender, Godot, Mac desktop ... and on Android.
I then added a csg mesh to my sample, and applied the material from the Nathan model to it. It shows fine in the Godot editor, fine when running the sample on Mac, but it doesn't appear when I export to Android.
I've no idea what's going wrong - can anyone advise please?
In Godot Editor
Running on Mac
Running on Android
-
@IanBUK said in Godot - importing models from Blender, missing materials.:
I use any of the free 3D models, for example the 'Nathan' FBX model from RenderPeople
I got this working!
What did I do, some may ask. Well, I took Blender out of the mix and just dragged a folder containing an fbx file and material files into a new folder under the Assets folder in my project. Then, I dragged the fbx file onto my main scene and opened it. I chose the "New Inherited" option, and then selected the mesh member of the model. Finally, I opened the "Material" drop-down of the "Mesh Instance" in the Inspector and dragged the .material file onto the "material 0" slot. I then ran the code locally and on my Android tablet. The model was shown with meshes in place. The photo below shows it running on the Android tablet.