-
Notifications
You must be signed in to change notification settings - Fork 39
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed
Description
Hey there, I'm trying to load a .glb file through ModelIO I'm using the following code:
let assetURL = Bundle.main.url(forResource: path, withExtension: nil)!
let gltfAsset = try! GLTFAsset(url: assetURL)
let bufferAllocator = MTKMeshBufferAllocator(device: device)
let mdlAsset = MDLAsset(gltfAsset: gltfAsset, bufferAllocator: bufferAllocator)The asset I'm trying to load is part of this pack: https://kenney.nl/assets/mini-dungeon (free to download) I'm specifically loading the banner asset in this example. Models > GLB Format > banner.glb
The loaded gltf asset seems to contain some data, the mdl asset seems to be empty. In the screenshot the upper part is some of the content of the gltf asset according to the Xcode debugger, the bottom part is the mdl asset.

What could I be doing wrong here?
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is needed