Skip to content

Conversation

tomlee-dev
Copy link
Contributor

for distingushing other type of converted gltf (e.g. b3dm, vctr, pnts, cmpt)

for distingushing other type of converted gltf (e.g. b3dm, vctr, pnts, cmpt)
@timoore
Copy link
Contributor

timoore commented Aug 21, 2025

Hi, I don't think this the right approach, either in Cesium Native or for getting instancing working in Cesium for Unity. Cesium Native converts i3dm files to use EXT_mesh_gpu_instancing, which is also used for instancing in 3D Tiles 1.1, so any instancing implementation in runtime integrations should work with that glTF extension.

@TomLeeLive
Copy link

TomLeeLive commented Aug 22, 2025

@timoore thank you for the comment!

my purpose is that checking 3dtiles type of converted gltf in UnityPrepareRendererResources.cpp
what is the best way to check it with considering runtime performance? checking glTF extension of converted gltf in UnityPrepareRendererResources.cpp will be better way?

@TomLeeLive
Copy link

TomLeeLive commented Aug 22, 2025

@timoore oh I get it. for my comment above never mind!

I just add a method for checking it in UnityPrepareRendererResources.cpp

bool CheckForExtMeshGpuInstancing(
const CesiumGltf::Model& gltf,
const CesiumGltf::Node& node) {
return node.getExtensionCesiumGltf::ExtensionExtMeshGpuInstancing() !=
nullptr;
}

@tomlee-dev tomlee-dev closed this Aug 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants