my GLTFLoader is working fine but when i want to add draco compressed gtlf it wont load
d even i add the draco gtlf cdn import and draco is loaded and working as you see in the code example
“note”
the compressed gtlf i working in gtlf viewr
even it loading in gtlf viewr
this is the orginal gtlf link model : ( “https://s3-us-west-2.amazonaws.com/s.cdpn.io/409445/bus_body_red.glb ”,)
this is the orginal draco gtlf link model : (https://cdn.glitch.global/6b16bcd8-beed-428f-8cd4-302b15932366/bus1.glb?v=1672792949675 )
my live code : compassionate-sea-b9e1mj - CodeSandbox
win
January 4, 2023, 5:27pm
2
Your code sandbox seems to be loading a bus in. Is this what you intended? Maybe the loading was restricted by available memory or something?
this is the orginal gtlf link model and = its working as i said before but the other gtlf model its not working wich is this this = the draco gtlf link model : (https://cdn.glitch.global/6b16bcd8-beed-428f-8cd4-302b15932366/bus1.glb?v=1672792949675 )
i linked the both model links to but theree is something messing
win
January 5, 2023, 12:42am
4
Okay, I think I got it working. Just change this:
dracoLoader.setDecoderPath(
"https://unpkg.com/three@0.148.0/examples/jsm/libs/draco/draco_decoder.js"
);
to this (specify the folder instead of the js file):
dracoLoader.setDecoderPath(
"https://unpkg.com/three@0.148.0/examples/jsm/libs/draco/"
);
and use the reduced glb url too.
Here’s the updated codepen. cool-resonance-v2p8k6 - CodeSandbox Hope this helps
wow man , do you know i tried this before and it didnt work … thanks man i apprecete your help
1 Like