Closed dev9970 closed 5 months ago
GLTFAsset.dracoDecompressorClassName = "DracoDecompressor"
There is a sample implementation of it here: https://github.com/warrenm/GLTFKit2/blob/395eca255a2f1f9ae9d1bb91034a6cb58b1c5a63/GLTFViewer/macOS/SampleDracoPlugin.mm#L64
There's a complete example of how to use GLTFKit2 with draco decompression in the official glTF viewer for iOS published by the Khronos group here.
Here's a list of steps you can use to add draco support to your own app, assuming you have an existing Swift project that already uses GLTFKit2 as a Swift package.
#import "SampleDracoPlugin.h"
(or your own plugin's header) in the bridging header so your plugin's interface becomes available to your Swift code.dracoDecompressorClassName
class property on the GLTFAsset
class. This will allow the asset loader to instantiate your loader plugin and decode draco-compressed assets for you.This issue will be automatically closed as complete in seven days if no further response is received.
Closing.
Is there any example of How to use GLTFDracoMeshDecompressor in swift ? need more explanation with example