I have multi floor buildings data which is in 3D tiles format(screenshot attached), now i want to have building outline edges floorwise as like OSM buildings tileset have. I tried using silhouette but that is not working for every edge of the building.
Thanks dzung… I can see the outline edges in different color for OSM buildings tileset(Cesium ion), how it is possible in this case. is it happened in the preprocessing stage? if so how can we do that?
Thank you for your questions! I recommend checkout out our source code for more information on how we generate outlines for OSM buildings.
Unfortunately, I can’t think of a simple way to enable outlines on your tilesets. Our API currently does not support this functionality. Any suggestions from the rest of the community?
@sam.rothstein thx a lot for your quick answer. I looked into the code and as far as I understand this is the class which handles outline loading for models.
There is a property showOutline [boolean] in the Cesium3dTileset class, which seems to activate that logic and which supposedly only works for gltf models.
Currently I’m testing with tilesets which are created from a kmz file wich contains a .dae model.
My question is, would that work if my tileset would contain a glb/gltf file instead of a dae model?
While my intuition leads me to believe that this would not work, our documentation seems to state otherwise. Regardless, there is no downside to trying this out. Can you please give this a try and let me know if it works?
Thank you for giving this a try. As I eluded to above, I am not particularly surprised with the outcome of your test.
While I have access to the OSM Buildings dataset, I have not taken the time to look through the files to determine what is unique about the dataset regarding the showOutline method. I did find this page which provides some high-level information about the dataset:
I suspect that the dataset includes additional 3d data representing the building outlines that can be toggled by the showOutline property. While I worked on this somewhat relevant pull request a few months ago, I may need to check in with some other CesiumJS developers for more context on our OSM buildings dataset.
thanks for the further info, after investigating a bit further I can only some misleading information about the topic. If you look to this announcement you can read the following:
How can I activate the CESIUM_primitive_outline extension? The documentation on that aspect is not really clear even if here its stated that showOutlines relays on that extension.
Thank you for providing some more information. I just shared this thread with another Cesium developer who helped write the spec that you shared. He should get back to us shortly
It’s not possible to enable outlines unless the tileset has the CESIUM_primitive_outline extension already.
OSM buildings are generated with a custom pipeline that is different than the general purpose 3D buildings tiler in ion, so the only way to get outlines is by writing your own tiling pipeline. However we can consider adding this feature to ion in the future.
Just to follow up on this topic, does Ion now support the CESIUM_primitive_outline extension? I see some reference to it in the new release notes. I’d love to be able to have Ion process my tileset and then show the edges of my geometries
I’m encountering an issue while working with a glTF file that includes CESIUM_primitive_outline. When I use the Cesium.Model object to display the model, the outlines show up correctly. However, I ran into a problem when I processed the glTF through the model-tiler to convert it into a 3D tileset. When I view it in the Cesium viewer, the outlines are no longer visible.
Here’s a breakdown of my process:
I have a glTF file with CESIUM_primitive_outline.
Using Cesium.Model, the outlines are displayed as expected.
I then use the model-tiler to create a 3D tileset from the glTF.
When I load and view the tileset in the Cesium viewer, the outlines are missing.
Has anyone encountered a similar issue or has any insights into why the outlines are not showing up in the 3D tileset? Are there any specific considerations or configurations I might be missing during the tiling process?
Any help or suggestions would be greatly appreciated!