A GLB Can Still Need External Textures: Audit a Drone Model Handoff
Extract the JSON header of a glTF 2.0 GLB and inventory core resource references before assuming a drone review model is self-contained.

Treat the extension as a starting point
A review model may open correctly on the producing workstation and lose its textures after delivery. Before blaming reconstruction quality, inspect the package that actually reached the recipient. A Binary glTF filename is useful format context, but it should not replace a dependency review. This tutorial shows a narrow way to inspect a GLB JSON chunk and list core resource declarations without downloading referenced content. It concerns a possible drone-derived presentation model in a NiVO workflow, not a claim that a particular NiVO product exports glTF or that an actual project model was tested during article preparation.
Record the accepted model revision, export application, recipient viewer and intended use. Preserve the received folder exactly, including any nested texture directories. Ask whether the recipient copied one file out of a larger package or opened a cached project that already had resources available. Those observations can explain why a local preview and a delivered preview disagree. Keep an analytical master separate from a display derivative. A complete texture package helps communicate a surface, but it does not establish the geometric accuracy, reference system or suitability of that surface for measurement. Packaging acceptance needs its own clear and limited question.
Read resource declarations rather than guessing
Khronos explicitly allows a Binary glTF asset to reference external resources. Core buffers and images can carry URIs; images may instead reference buffer views. A data URI embeds its payload in the declaration. An image buffer view requires tracing its containing buffer before calling the resource self-contained, because that buffer can itself be external. The specification therefore supports more than one packaging arrangement. Review the actual declarations rather than treating the file extension as proof that every dependency is inside the container. Preserve extension declarations as well, since a core-only inventory cannot describe every extension-defined resource relationship.
In a real handoff, create an inventory that distinguishes observed references from verified resources. A relative texture name in JSON tells you what the asset requests; it does not prove that the file exists in the delivery or that the recipient can decode it. Keep the exact spelling and case during comparison. Do not fetch remote URLs automatically while investigating an unfamiliar package. Instead, identify which dependencies are expected to travel with the approved release and obtain them through the responsible producer. This keeps a packaging diagnosis focused on supplied evidence and avoids silently substituting a resource that merely has a similar filename.

Product context only; this photograph does not depict the constructed examples in this article.
Extract the first JSON chunk with bounded reading
The Python recipe below checks the container signature, version and declared total size, then reads the first JSON chunk with a sixteen-mebibyte teaching limit. It lists core buffer and image declarations and extension names without opening their URIs. Python struct supplies explicit little-endian integer decoding. Run it with the intended local filename as the argument. It stops on several obvious header problems, but is not a complete GLB validator: it does not validate later chunks, schemas, buffer ranges, images or extension behavior. The limit is a deliberate example policy, not a glTF format maximum or project delivery requirement.
Retain the script version and actual output if you use this inspection on a delivery. A rejection means that the narrow recipe could not complete its requested inspection; it is not a universal diagnosis of the model. Conversely, a printed inventory is not a passed conformance result. The constructed cases used to check this recipe exercise header and declaration handling only. They do not provide reconstructed geometry, valid image payloads or a real project model. Keep those limits visible when sharing the method with a colleague who may otherwise mistake a small, readable inspection script for a production acceptance tool.
import json, os, struct, sys
def inventory(filename):
with open(filename, "rb") as stream:
header = stream.read(12)
if len(header) != 12:
raise ValueError("short header")
magic, version, total = struct.unpack("<4sII", header)
if magic != b"glTF" or version != 2 or total != os.fstat(stream.fileno()).st_size:
raise ValueError("container header mismatch")
chunk = stream.read(8)
if len(chunk) != 8:
raise ValueError("missing JSON chunk")
size, kind = struct.unpack("<II", chunk)
if kind != 0x4E4F534A or size % 4 or size > 16 * 1024 * 1024 or 20 + size > total:
raise ValueError("unsupported JSON chunk")
document = json.loads(stream.read(size).decode("utf-8"))
for group in ("buffers", "images"):
for index, item in enumerate(document.get(group, [])):
uri = item.get("uri")
if uri is not None:
value = "data URI (embedded)" if uri.startswith("data:") else uri
else:
value = {"bufferView": item.get("bufferView"), "uri": "absent; trace storage"}
print(group, index, value)
print("extensionsUsed", document.get("extensionsUsed", []))
print("extensionsRequired", document.get("extensionsRequired", []))
if __name__ == "__main__":
inventory(sys.argv[1])Interpret a constructed missing-texture case
Imagine a fictional model whose image declaration requests textures/surface.png. The sending workstation has that directory beside the GLB, while the receiving folder contains only the GLB. The inventory would expose the requested name, making the missing companion a concrete question for the producer. This is a constructed dependency scenario, not an inspected customer delivery or proof that every blank material is caused by an absent file. A real investigation must compare the exact received package and actual viewer diagnostics before assigning a cause. Keep the resource identity attached to the release rather than searching unrelated folders for a plausible substitute.
If an image uses a buffer view instead, follow the referenced buffer view to its buffer and establish where those bytes are stored. The small recipe deliberately prints that relationship as something to trace rather than asserting that a missing URI proves successful embedding. Use a suitable glTF-aware validator and a compatible receiving viewer for the full assessment. Record required extensions and confirm their support with the actual tool. A package may contain its resources and still fail to render for another reason. Preserve that distinction so a completed inventory does not become an unsupported claim that the entire model will display correctly everywhere.
Verify the package in an isolated receiving context
Perform a receiving test using an approved copy of the intended delivery, separate from the export workstation folder and its cached project state. Open the identified model with the agreed viewer and record actual warnings, missing resources and visible material behavior. If external resources are intentional, preserve their relative folder arrangement and document that dependency. If the delivery contract requires a self-contained artifact, ask the producer for a supported export that meets that requirement, then repeat the review on the newly identified release. Do not rename the original file or alter JSON references silently to make a temporary local preview look complete.
Check what the recipient needs beyond a textured view. A presentation model may require attribution or redistribution records for supplied textures, and its source relationship should be clear. Obtain those records from the actual asset owner rather than inventing a license from file availability. Inspect geometry, scale and scene transforms through their own acceptance process where relevant. The resource inventory does not validate coordinates or determine whether the mesh is suitable for a measurement task. Retaining separate packaging and analytical findings makes the handoff easier to review and prevents a successful material display from being mistaken for a complete survey validation.
Deliver a dependency finding another reviewer can use
A useful release record names the GLB revision, core resource references, required extensions, supplied companion paths and the actual receiving test. Mark which relationships were merely observed and which were verified with suitable tools. Include unresolved resource or viewer limitations and the producing application details needed to reproduce them. Another analyst should be able to identify the exact package without relying on a workstation cache or a screenshot of a previous export. If the proposed fix changes the resource arrangement, preserve the original and give the candidate a new identity before comparing the result with the acceptance requirements.
For NiVO project communication, this turns a vague texture complaint into a practical delivery question: which resources does the agreed model request, and did the recipient receive and interpret them? The answer should come from the identified package and actual test rather than the filename alone. This review complements a glTF node-transform audit while addressing a different failure mode. A complete dependency record helps the recipient understand what must travel together, what was checked and what remains outside the inspection. It also preserves the distinction between a convincing visual presentation and the independent evidence required for analytical use.


