You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to get the attributes from an i3dm dataset. By looking at the b3dm example, I've also tried to access the batchid from the selected geometry but it's missing.
Should I use an other attribute for this purpose ? Or should we add ourselves an id in the i3dmLoader for each instance ?
Instances can't have per-vertex ids the way B3DM files do. For instances you can compute the instance id based on the instance number or by reading the BATCH_ID field from the BatchTable at the same index. From the BatchTable docs:
The length of each array is equal to batchLength, which is specified in each tile format. This is the number of features in the tile. For example, batchLength may be the number of models in a b3dm tile, the number of instances in a i3dm tile, or the number of points (or number of objects) in a pnts tile.
Original issue :
iTowns/itowns#2434
I've tried to get the attributes from an i3dm dataset. By looking at the b3dm example, I've also tried to access the
batchid
from the selected geometry but it's missing.Should I use an other attribute for this purpose ? Or should we add ourselves an id in the
i3dmLoader
for each instance ?To Reproduce
I've used b3dm example
Replacing new B3DMLoader() by the I3DMLoader
I've tried by using a subpart of the tileset from the original issue:
https://bertt.github.io/cesium_3dtiles_samples/samples/instanced/traffic_lights/tiles/0_1_9_0.i3dm
Thank you
The text was updated successfully, but these errors were encountered: