Importing IFC File to Playcanvas


#1

Hi,

Is there a way to import IFC 3D model to Playcanvas and what could be the recommended approach?


#2

Unfortunately, your choices are to convert to a supported type first (GLTF or FBX) or write your own external convertor to the PlayCanvas model format (https://developer.playcanvas.com/en/user-manual/graphics/file-format/).


#3

If you have blender (it’s free at www.blender.org) you can probably find an addon that will import IFC’s. Blender exports to FBX out of the box.

https://github.com/IfcOpenShell/IfcOpenShell Here’s one you could try.


#4

I’ve heard about some online 3d converters that you could use to convert IFC to FBX


#5

Could the IFC be converted to graph database and then the gaming engine do queries to reconstruct the physical entities? Wouldn’t be a better approach than changing format?


#6

If you happy to generate the mesh programmatically, yes that’s another way to do it. Not 100% sure that it is ‘better’ since there is a lot more code to write compared to converting a file format.