Jump to content

[SOLVED] FbxImporter issue caused by custom material


photo

Recommended Posts

Dear support,

We isolated a weird bug related to FbxImporter when you place in data folder a custom material, see attached file.

Simply put this cable custom material in data folder.

Then try to import an fbx with embedded material.

There is no error in editor console: material are created, mesh is there.. but the material are not properly allocated to surface.

Remove the cable custom material, restart editor and import will succeed.

So the question: what is wrong with this custom cable prop?

Kind regards,
Charles

cable.zip

Link to comment

Hi,

Ok, but you see where it does come from?

Is there smthg wrong with our custom material using shader?

And nothing that we can fix already in 2.13?

Kind regards,
Charles

Link to comment

Hi Charles,

Thanks for the waiting. It was an interesting bug in import procedure related to the not entirely correct custom base material setup.

Proper solution to this issue would be to modify your cable_base material. You need to remove attribute default="1" from XML:
image.png

This would fix your import issue with current SDK version.

In 2.14 even in this case it would work as expected, but we do not recommend to use default option in custom user materials (it should be only used for the built-in base materials like mesh_base).

In order to simplify the custom shaders creation we are currently preparing shader graph editor and materials templates that you can use and don't think about this strange options that can sudden broke something.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
  • silent changed the title to [SOLVED] FbxImporter issue caused by custom material
×
×
  • Create New...