Closed
Conversation
// for the car example
var implicitId = 5;
var ext = gltf.extensions.CESIUM_3dtiles_batch_table;
var classInstance = ext.classIds.values[implicitId];
var offset = 0;
for (var i = 0; i < classInstance; ++i) {
offset += ext.classes[i].batchLength;
}
var sedan = ext.classIds[classInstance].instances.carType.values[implicitId - offset];
var color = ext.classIds[classInstance].instances.carColor.values[implicitId - offset];
|
|
We should be consistent with the glTF naming scheme i.e. use |
|
@lilleyse great to see this. Please bump to me when ready. |
ab137be to
4bd3baa
Compare
4bd3baa to
a725c55
Compare
Collaborator
Author
|
Renamed the extension to |
Collaborator
Author
|
a255540 to
d266dc5
Compare
Collaborator
Author
|
Renamed to |
734ba40 to
6b180b8
Compare
|
@lilleyse is this now built into the latest feature metadata extension? Or will this be a separate extension? |
Collaborator
Author
|
@pjcozzi this is separate from the metadata extension. I'm going to close this PR since it's out of sync with the latest |
40 tasks
kring
pushed a commit
that referenced
this pull request
Jan 11, 2021
Update to latest Khronos master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Note: this extension is not up-to-date with the latest draft of EXT_feature_metadata
Direct link to extension: EXT_3dtiles_feature_hierarchy
This extension is built on top of EXT_3dtiles_feature_metadata to allow for feature classes and metadata hierarchies.
The current 3D Tiles batch table hierarchy spec is here. It didn't take too much work to move it to glTF, the only difference is that binary properties can now use glTF accessors. Other changes include:
lengthproperty of a class is renamed toinstanceCountinstancesproperty of a class is renamed topropertiesto match the regular feature tableinstancesLengthtop-level property is renamed toinstanceCountNotes:
Instead should properties could be preceded by their class name (e.g.
Building#nameorBuilding.name) to avoid collisions?@mramato @kring is there anything else that would be nice to have for declarative styling purposes, specifically for the feature hierarchy?