NiVO / BY TECHNOGISGermany · Indonesia
3D handoff tutorial

glTF Required Extensions: Check Reader Support Before a Drone Model Handoff

Compare extensionsUsed, extensionsRequired and a documented reader capability set before treating a drone model as ready for review.

glTF Required Extensions: Check Reader Support Before a Drone Model Handoff

Check the receiving reader before judging an incomplete model

A drone-derived model can be delivered as glTF and still depend on features that a particular receiving application does not support. A file extension and a familiar preview window do not describe the complete compatibility boundary. Before diagnosing a missing texture or an unexpected appearance as a production defect, inspect the declared extension names and identify the reader that will be used for review. This is a handoff question about an asset and a concrete software environment. It should be answered before a screenshot becomes the basis for accepting or rejecting the deliverable.

This tutorial constructs small declaration dictionaries and compares them with a deliberately supplied capability set. It does not load a real model, run a viewer, or establish the feature support of any NiVO product. The catalogue photograph provides aircraft context only. The useful outcome is a repeatable preflight for the desk review: identify required names, detect inconsistent declarations, and flag capabilities that still need evidence. Geometry, coordinate reference, texture availability, and the intended inspection task remain separate parts of the model handoff.

Distinguish used extensions from required extensions

The Khronos glTF specification provides a top-level extensionsUsed array for extensions used by an asset. Extensions needed to load or render the asset are listed in extensionsRequired. Every required name must also occur in the used array. The specification describes the required-extension concept as a reason an asset should not be loaded when the client lacks support. These declarations describe a dependency boundary; they do not implement the extension, install a decoder, or prove that an application supports a particular version or use of the feature.

Keep unsupported optional names visible in the report, too. Their absence from the required set does not promise that ignoring them will preserve every visual characteristic that matters to a project reviewer. The receiving workflow needs an explicit decision about acceptable fallback behavior. Equally, finding a required name absent from extensionsUsed is a declaration inconsistency, not a reason to silently add the missing name and proceed. Ask the producer for a checked export or resolve the discrepancy through the project process while retaining the originally received asset.

Restored NiVO VTOL V3 product image from the supplied brochure
Restored NiVO VTOL V3 product image from the supplied brochure.Source: NiVO / TechnoGIS catalogue materials supplied by the site owner · Catalogue photo
Product context only; this photograph does not depict the constructed examples in this article.

Compare explicit sets with a bounded Python check

The function below accepts an already parsed top-level dictionary and an explicit set of supported names. It checks the shape of the two declaration arrays, rejects repeated or empty names under this review profile, and reports three differences in sorted order. Names are compared exactly. The caller must supply a set of strings rather than a single string that could accidentally be treated as a collection of characters. Requiring that shape makes the test input deliberate, but it does not turn a manually entered capability set into evidence about an actual application.

The constructed example lists KHR_texture_transform as required and KHR_materials_unlit as additionally used. Its deliberately limited reader set includes only KHR_materials_unlit. The reported missing_required list therefore contains KHR_texture_transform, while required_not_used is empty. This is a declaration-level example, not a complete glTF asset. No materials, textures, meshes, buffers, or extension payloads are present. A second check with both names in the supplied capability set would remove the reported required-name gap, but would still not prove that an actual scene can be rendered correctly.

def extension_gate(document, supported):
    if not isinstance(document, dict):
        raise ValueError("Expected a parsed top-level object")
    if not isinstance(supported, set) or not all(
        isinstance(name, str) and name for name in supported
    ):
        raise ValueError("Supported names must be an explicit string set")

    def names(key):
        value = document.get(key, [])
        if not isinstance(value, list) or not all(
            isinstance(name, str) and name for name in value
        ):
            raise ValueError("Invalid declaration array: " + key)
        if len(value) != len(set(value)):
            raise ValueError("Repeated declaration name: " + key)
        return set(value)

    used = names("extensionsUsed")
    required = names("extensionsRequired")
    return {
        "required_not_used": sorted(required - used),
        "missing_required": sorted(required - supported),
        "unsupported_optional": sorted((used - required) - supported),
    }

# Constructed declarations, not a complete glTF asset or viewer test.
toy = {
    "extensionsUsed": ["KHR_texture_transform", "KHR_materials_unlit"],
    "extensionsRequired": ["KHR_texture_transform"],
}
reader_capabilities = {"KHR_materials_unlit"}
print(extension_gate(toy, reader_capabilities))

Build the capability set from evidence about the actual reader

For a real handoff, identify the receiving application, its version, the relevant import path, and any installed plugins. Consult its current documentation and verify the required behavior using an appropriate asset in that environment. Record the evidence beside the supported-name set used for comparison. A statement that a program opens glTF is too broad to establish support for every extension. Even within a documented feature, an application setting or a particular import route can be relevant to the actual review. Keep the capability record tied to the workflow that will be used.

Do not populate the set by copying the asset declarations themselves. That would make the difference calculation empty without supplying any information about the reader. Similarly, a successful preview from the producing application does not demonstrate compatibility in the receiver. If an extension remains unverified, report it as unverified and arrange a receiving-side test or an agreed alternative export. Preserve a distinction between documented support, behavior actually observed in a test, and assumptions awaiting confirmation. Those distinctions make a compatibility report useful when the software environment changes later.

Keep declaration checks separate from payload and visual checks

The function does not traverse the document to discover extensions objects or verify that every actual use is declared. It also does not validate the content of an extension payload against its specification. A producer could supply consistent top-level arrays while including an invalid payload elsewhere. Run appropriate format validation and examine the real asset rather than treating set consistency as a complete validator. Parsing a glTF document or extracting JSON from a GLB container is another step; this example begins after a top-level object is already available and performs neither container parsing nor resource fetching.

Once declarations and required support are resolved, review the actual model in the receiving environment. Check the appearance and the resources relevant to the task, retain the tested package identity, and record any fallback limitations. A viewer that displays something has not thereby established the correctness of a coordinate reference, a scale interpretation, or a measurement. Separate those project checks from rendering compatibility. This prevents an extension-support discussion from accidentally becoming an unsupported claim that a drone-derived model is geometrically validated or ready for every downstream analysis.

Make the handoff decision specific to the tested environment

A useful handoff record includes the received asset identity, the exact used and required names, the receiver version, and the source of the capability evidence. Attach the set-comparison output and any independently performed validation or rendering results. If a required capability is missing, pause that review path and agree a supported reader or a checked replacement export with the producer. Removing a name from extensionsRequired without changing the asset correctly is not a compatibility repair. It changes the declaration while leaving the dependency question unresolved.

When no required-name gap is reported, phrase the result narrowly: the supplied declarations are consistent under this check and their required names are present in the documented capability set. Continue with payload validation and actual receiving-side review. That wording remains useful even if a later test reveals a separate issue, because it identifies exactly what was established. For a drone-model delivery, a clear dependency record helps the team reproduce its review environment and request the right correction, while avoiding the assumption that all files carrying the same glTF extension behave identically in every reader.

Technical references

  1. Khronos glTF 2.0: extensionsUsed and extensionsRequired ↗
  2. Khronos glTF 2.0: asset version and required-support concept ↗
← All articles

Related articles

All articles ↗
LET’S TAKE FLIGHT

Your next mission
starts with a conversation.

Talk to our team