UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Support for draco extension

Open aashishagrawall opened this issue 7 years ago • 11 comments

Recently I read about draco extension on gltf,but I was not able to find out proper way to implement this exention on unitygltf repo.I am currently working on app that requires 3d object to be imported at runtime effectively and very fast. I find draco extension is the only way to acheive this and I have gone through papers on internet but was not able to figure out how to implement this .Please anyone can assist how can I start implementing draco extension on gltf

aashishagrawall avatar Apr 24 '18 10:04 aashishagrawall

Have you tried using https://github.com/google/draco/tree/master/unity?

bghgary avatar Apr 24 '18 14:04 bghgary

vote +1 for this extension support, Microsoft has used draco in it's Microsoft.glTF.CPP pipe-line.

tufeixp avatar Nov 28 '18 06:11 tufeixp

@bghgary That extension loads draco compressed geometry (.drc files and buffers), which does not include textures. Supporting draco compression in gltf/glb would be a huge win for this module.

boblaublaw avatar Nov 28 '18 07:11 boblaublaw

@boblaublaw The original question is how to implement the draco extension in this project. The link I sent should help with that.

bghgary avatar Nov 28 '18 18:11 bghgary

So, is this on the roadmap?

BrahimHadriche avatar Jan 03 '19 20:01 BrahimHadriche

No one is actively working on it, but we always welcome contributions!

blgrossMS avatar Jan 03 '19 21:01 blgrossMS

Since draco is c++, I'm guessing it has to be built as a plugin for different platforms. What platforms should it include? Windows, macOS, iOS and Android for example?

iBicha avatar Jan 06 '19 15:01 iBicha

Yeah wrapping the existing plugins in the work from the repo that Gary linked would be a good start

blgrossMS avatar Jan 07 '19 16:01 blgrossMS

Well I looked around, for once, the existing plugin doesn't have a compressing method yet (only decompression) so it will need to be worked out. Second, if I understand correctly, the extension is supposed to replace the bufferViews with their decompressed equivalent, which will need to be done in the loader and not the extension, which is weird and hacky. I guess the current architecture of UnityGLTF doesn't allow much flexibility to do things. Am I missing something?

iBicha avatar Jan 07 '19 23:01 iBicha

Hi guys ! If someone here is still looking for this extension (for a long time like me), take a look at this awesome GLTF importer alternative : https://github.com/atteneder/glTFast I just found this and with simple fixes, I make it working ! Hope this helps ;)

AlexPiro avatar Oct 06 '19 09:10 AlexPiro

Any update on this?

IsmaeelGoraya avatar Jun 12 '20 08:06 IsmaeelGoraya

Import is now available in latest version. Export still not

robertdorn83 avatar Jan 23 '24 12:01 robertdorn83