FBX import - no materials

unhandled

#1

Hi @tim,

Trying to import FBX file of an architectural model into Rhino (V6) - the geometry imports well, but there is no material information. Any chance we can have FBX importer create/convert materials into Rhino?

I can upload a sample model to test if that would help. The FBX is an export of Revit model.

Thanks,

–jarek


(Nathan 'jesterKing' Letwory) #2

AFAIK materials should convert to Rhino versions. Do the materials show up in other software, i.e. Blender?


#3

They show in 3DSMax… don’t have other software to test with now. So yes, the material info is there.


(Nathan 'jesterKing' Letwory) #4

I tweaked FBX material export and import some months ago. A file with the problem would be useful.


#5

Hi Nathan,

I have uploaded the FBX file to support with your email.
Let me know if you get a chance to take a look.

Many thanks,

–jarek


(Nathan 'jesterKing' Letwory) #6

Thanks, I received the file. Before I could investigate I managed to crash my desktop (into which I remote), so it may have to wait until tomorrow.


#7

Ooops. FYI - if that helps, it was exported from Revit 2018 as “FBX 2015 or earlier” format.
It doesn’t really give you that many export settings.

What kind of information is there embedded in FBX - is there a layer information too, by any chance?
Apart from materials this is something that would be good to have.

Thanks for looking into it!

–jarek


(Nathan 'jesterKing' Letwory) #8

@Jarek, preliminary investigation shows that for some reason the FBX SDK doesn’t find any materials.

Would it be possible to create a simple box scene with one material only that reproduces this problem, and have both the binary and ASCII versions of the FBX generated by Revit 2018?

I have logged this as https://mcneel.myjetbrains.com/youtrack/issue/RH-46276

/Nathan

p.s. Blender doesn’t see any materials either
p.p.s The import of geometry has 6 bad objects


#9

Hi Nathan,

I have prepared a simple file, hope it will be easy to test on your end.
Uploaded zipped package to mcneel support file upload with your name. Hope you can take a look.

Basically there is a Revit file with a few ‘generic’ walls with various materials assigned to them (or some of them have per-face materials). Revit file attached, just in case.

Then, importing the FBX into 3DMax, recognizes these materials. For walls with several materials assigned, the multi-material is created. And also, the material types are not ‘generic’, they are of type like “Autodesk Glass”, “Autodesk…” - so rather product specific, yet they all must have the color, transparency, texture map etc. written somewhere and accessible.

In Rhino, all the geometry imports OK, but no materials, and the objects are not even split by where the materials were assigned.

Ideal behavior would be: on Rhino import, geometry is split by material type, so if a “box” has different materials assigned to its faces, it would be split into several objects. The multi-face material in Rhino is not very well implemented and getting single objects with multi-materials in them would only add to the mess.
As for materials themselves, if there was a way to convert the Autodesk-specific types to Rhino generic types with basic color and transparency properties, it would be enough. Hope this info is there somewhere to access.
Cherry on top would be placing the objects on new layers per-material name.

Thanks for looking into this. Most of our project start with either SketchUp or Revit files. Making this type of FBX import work would be a huge improvement for Revit-Rhino imports.

.
.
PS. The YT item is not permitted for public view…


(Nathan 'jesterKing' Letwory) #10

Thanks, I looked and the behavior is still the same. Could you still do the text-version of the FBX and, if not too much of a bother, also perhaps to different versions of FBX?

The FBX SDK we use is of the opinion that the file does not have materials, at least not with the current way we use it.

We’ll first investigate this material problem, and then see how we can address your other requests.

Aye, it is not public, because your initial file was mentioned in the description. I have now edited the report and moved the link to a protected comment.


#11

Hi Nathan,

So, Revit does not have an option for ASCII FBX, but I can save ASCII FBX from 3DSMax, from the file imported from Revit that retained the materials.
Attached is the file I uploaded before in FBX 2014 version ASCII format.

Opening it in Notepad shows some Materials info…

Also, when importing this version into Rhino 6, the model seems to be properly ‘split’ by material (a good thing!) but no material definition or names are assigned…

Hope that helps. I will be happy to do more back-and-forth and try more options and provide examples. Making this work would be a huge help.

thanks,

–jarek

Sample_Walls_FBX_From_3DMax.zip (23.8 KB)