IFC-models with babylonjs

Hi!

  1. Can babylonjs display ifc models directly or must they be converted to 3D object?

I’m a complete newcomer and ask the basic stupid questions.

  1. Scenario:
    Can I upload a file (ifc or 3D) on dropbox, integrate it on my web page as HTML code, in game mode accordingly:
    https://anders-lundgren.github.io/web-ifc-babylon/app/

This is my HTML-code that works from Dropbox, without game mode advantages:

<html>
<head>
  <title>Babylon.js Viewer - Display a 3D model</title>
  <script src="https://preview.babylonjs.com/viewer/babylon.viewer.js"></script> 
</head>
<body>
    <babylon model="https://dl.dropbox.com/s/72413xr0rfo8dgv/CF.%20Gaustablikk%20residence%20u.%20reis.glb" templates.main.params.fill-screen="true"></babylon>
</body>
</html>

What do you think?

Ref.: https://github.com/anders-lundgren/web-ifc-babylon#readme

1 Like

The Babylon viewer does not support IFC files, so you will need to use the code from the repo you linked to to display such files.

Or you can also try to convert your IFC file to glTF / glB file. That way, you will be able to use the Babylon viewer.

1 Like

Thanks for the answer Evgeni_Popov! Thats good enough for me