I have a project and I need to put some attributes in the construction, I tried to use the local .glb, but I saw that the .glb file is a single object, I wanted to know how I can add these clickable attributes in the constructions.
hi,
that particular BIM asset from Cesium Sandcastle
is in 3D Tiles which uses B3DM format for its content children. I assume you have converted one B3DM file to .glb.
using 3d-tiles-tools
as I suggested in Searching for local .glb file 3D Tiles BIM - #2 by xmitter
If you have used the convertB3dmToGlb
then it will store the attribute data from feature and batch table into resulting glTF (.glb
) using EXT_mesh_features and EXT_structural_metadata glTF extensions.
If you have used the b3dmToGlb
command then it just “Extract the binary glTF asset from the input b3dm.” without attribute data.
Also be aware that the asset contains multiple B3DM content files which can for example provide better LOD.
I don’t really understand why are you trying to do this with that particular sample asset, it would be good if you could give some more information what you are trying to achieve.
Thanks for this feedback, I used the suggested tool but managed to extract the .glb without the metadata. I have a presentation project using this specific project, bringing the information when I click on any object on the screen, I’m using CesiumJS
Alright, so if you use that specific asset then why not load it as 3D Tiles from Cesium Ion the same way its loaded in the sandcastle.
Also checkout other sandcastles that are also related to BIM - type AEC
into sandcastle search.
I would like to, but due to some limitations of the project I’m working on I can’t load it through Cesium Ion. The files are added directly to the project, so I’m looking for a way to load the metadata into the project using CesiumJS, but so far I haven’t been able to do it, the client wants that specific construction to make the presentation.
I’m not from Cesium, so I can’t guarantee that my ToS interpretation is correct, but I am afraid that its against Cesium Ion ToS to download and use its content like that:
Download Your Content for offline use (except for Web Browsers automatically caching locally on the client for performance) except to the extent downloading of Processed Content is available as a feature in Cesium ion.
though that paragraphs refers to “Your data” but it’s sort of logical you can’t do that with these assets either.
You might create such 3D Tiles using community converters or reconsider loading the asset from Cesium Ion. Or you can convert some other sample Ifc (BIM) that has licence you can work with - for example from GitHub - buildingSMART/Sample-Test-Files: Sample files of various formats and schema versions.
Then convert it using Cesium Ion and download the 3D Tiles, because that’s explicitly allowed:
except to the extent downloading of Processed Content is available as a feature in Cesium ion
It would be more of an internal presentation, I think that in this case it wouldn’t be necessary. They want to see if the library meets the requirements to continue in the project, so they want to see something similar in the examples offered by Cesium. I’m still learning about the tool, but in this case they’re in a bit of a hurry to see it.
I am very grateful for the help and attention, thank you very much for the guidance.