Does it work when you use the regular local server and then set the dracoDecoderPath ?
Iβll check later today sorry for the delay, tight deadline for a proj - will present a repro if it still occurs
by user 103054507105067008
Here is a repro attached using Needle 3.14.0 prev, and the logs in screenshot, running this while offline in VS Code using Live Server extension https://marketplace.visualstudio.com/items?itemName=ritwickdey.LiveServer
The main error is THREE.GLTFLoader: Couldn't load texture blob:
I have also uploaded the original project as a bug report through your reporting tool if that helps
by user 103054507105067008
Should I test this again@marcel with any recent updates?
by user 103054507105067008
Hi Rob, you donβt need to test this again yet - sorry I didnt get to looking into this further yet
Hi @ROBYER1 can you check your paths again? You have ktx2DecoderPath="/include/ktx/">
in the html file but on disc the directory is named ktx2
Ah crap sorry, was me copying this - I should have checked also
by user 103054507105067008
Changing to ktx2 didnβt seem to solve the issue, same errors about THREE.GLTFLoader
Just repasting here in case I refer back to this
<needle-engine dracoDecoderPath="/include/draco/" ktx2DecoderPath="/include/ktx2/">
</needle-engine>
by user 103054507105067008
Hi @ROBYER1 the issue was caused by a missing initialization call to the KTX2 loader. Will be fixed in the next version
Thank youuu!
by user 103054507105067008
Confirmed fixed in 3.16.3
by user 103054507105067008
@Marcel_Wiessler1 I am having issues with the local paths when a build is uploaded to an ftp server - in this case I am using in index.html
<needle-engine dracoDecoderPath="/include/draco/" ktx2DecoderPath="/include/ktx2/"> </needle-engine>
When running the dist locally using VS Code live server, it works fine, when I upload to FTP, I get an error for it searching for things like draco and ktx2 from a shortened url here:
https://demo.epm.digital/include/draco/draco_wasm_wrapper.js"
When the correct url should be
https://demo.epm.digital/modelpreviewtest/include/draco/draco_wasm_wrapper.js"
It is like the /include/ cuts off the actual folder the build is in?
by user 103054507105067008
try changing your path to ./include/draco
and ./include/ktx2/
Thanks!
by user 103054507105067008