glTFast
glTFast copied to clipboard
Unable to export draco compressed GLB file at runtime : DracoUnity package needs to be installed
Describe the bug I can't figure out how to export a Draco compressed GLB file. I installed all packages available from the scope registry with the following versions:
- glTFast 6.0.1
- Draco 3D Data Compression 4.1.0
- KTX/Basis Universal Texture 2.2.3
I added an assembly definition file in my script folder:
My export script looks like this:
var exportSettings = new ExportSettings
{
Format = GltfFormat.Binary,
FileConflictResolution = FileConflictResolution.Overwrite,
Compression = Compression.Draco,
DracoSettings = new()
{
positionQuantization = 12
}
};
var exporter = new GameObjectExport(exportSettings, logger: logger);
exporter.AddScene(exportables);
bool success = await exporter.SaveToFileAndDispose(Application.persistentDataPath + "/export.glb");
I still get the following error:
DracoUnity package needs to be installed in order to support glTF extension KHR_draco_mesh_compression!
I can export non-compressed files with no issue.
Expected behavior I would like to be able to export draco-compressed GLB files at runtime.
Desktop (please complete the following information):
- glTFast version: 6.0.1
- Unity Editor version: 2021.3.28f1
- Render Pipeline and version: BiRP
- Platform: Editor, WebGL
Did you find any solutions there? @Sov3rain ?
Did you find any solutions there? @Sov3rain ?
Unfortunately, no. Draco compression is not our top priority right now and we clearly need help on this one.
hello, is meshoptimizer supported instead?