How do I create a batch and feature table for models?

139 views
Skip to first unread message

mholt...@gmail.com

unread,
Sep 17, 2019, 3:44:14 AM9/17/19
to cesium-dev
How do I create a batch and feature table when exporting my model with Blender as gltf-Model and using the 3d tiles tools to convert it into b3dm?
The shapefile I import into Blender 2.80 contains attributes which should be added to each feature in order so style and query these features.
But every export as gltf/b3dm says there are 0 features.
Unfortunately, I cannot upload the files to Cesium Ion.

mholt...@gmail.com

unread,
Sep 17, 2019, 4:54:02 AM9/17/19
to cesium-dev
I have found out, that the attributes are stored in the b3dm-File for each node at nodes->extras, but how do I access these values with the functions for Cesium.Cesium3DTileFeature or are there other other possibilities? I think the point is, that i need to create Features from my model..
 
{
   
"asset":{
       
"generator":"Khronos glTF Blender I/O v0.9.36",
       
"version":"2.0"
   
},
   
"scene":0,
   
"scenes":[
       
{
           
"extras":{
               
"SRID":"EPSG:2056",
               
"crs x":2675421.847511501,
               
"crs y":1264763.9547490003,
               
"longitude":8.44018661,
               
"latitude":47.52928144
           
},
           
"name":"Scene",
           
"nodes":[
               
0,
               
1,
               
2,
               
3
           
]
       
}
   
],
   
"nodes":[
       
{
           
"extras":{
               
"X":1234,
               
"Y":5678,
               
...
           
}
         
}
     
]
     
...

Omar Shehata

unread,
Sep 18, 2019, 2:32:52 PM9/18/19
to cesium-dev
Cesium ion currently only supports creating batch table properties for KML/COLLADA or CityGML source data:


There's an example here about how the input for KML/COLLADA is expected to look like for embedding per-feature properties:


In case you haven't seen it, the Cesium ion tiling pipeline is available offline as well: 


That glTF you showed with attributes in the "extras" property, was that generated from Blender? 

mholt...@gmail.com

unread,
Sep 19, 2019, 2:32:01 AM9/19/19
to cesium-dev
Thanks, where can I download this tiling pipeline to test it?

The exported glTF is generated by Blender, yes. I used the official glTF-Exporter.

Omar Shehata

unread,
Sep 19, 2019, 4:22:04 PM9/19/19
to cesium-dev
You can reach out to sa...@cesium.com and they'll set you up with an evaluation.

Being able to read metadata like this from glTF is definitely something we want to officially support. One issue is that there isn't currently a standard for how to embed this data, so I'm curious to hear more about your process here. Were these long/lat's originally from the shapefile? Did you use any Blender plugins for importing this?

mholt...@gmail.com

unread,
Sep 20, 2019, 3:30:24 AM9/20/19
to cesium-dev
Yes, I have imported a shapefile with its geometry and the attributes into Blender with the included GIS-Import and exported it as glTF. In the glb-File they are kept as JSON, but i guess the pipeline of 3d-titles-tools doesn't recognize the structure how they were stored in the glb file.
Reply all
Reply to author
Forward
0 new messages