glTFast icon indicating copy to clipboard operation
glTFast copied to clipboard

Unable to export draco compressed GLB file at runtime : DracoUnity package needs to be installed

Open Sov3rain opened this issue 1 year ago • 3 comments

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: image

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

Sov3rain avatar Dec 08 '23 11:12 Sov3rain

Did you find any solutions there? @Sov3rain ?

Muhammad079 avatar Feb 05 '24 09:02 Muhammad079

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.

Sov3rain avatar Feb 06 '24 10:02 Sov3rain

hello, is meshoptimizer supported instead?

monkyver avatar Feb 29 '24 11:02 monkyver