fix ept loader

This commit is contained in:
m-schuetz 2021-01-24 19:23:39 +01:00
parent 080334e0f2
commit 77874821df
5 changed files with 11 additions and 5 deletions

View File

@ -190,7 +190,7 @@
</a>
</td><td>
<a href="http://potree.org/potree/examples/vr_lion.html" target="_blank">
<img src="examples/thumbnails/lion.png.jpg" width="100%" />
<img src="examples/thumbnails/lion.png" width="100%" />
</a>
</td><td>
<a href="http://potree.org/potree/examples/vr_dechen_cave.html" target="_blank">

View File

@ -41,9 +41,13 @@ let workers = {
"src/workers/EptLaszipDecoderWorker.js"
],
"EptBinaryDecoderWorker": [
"libs/ept/ParseBuffer.js",
"src/workers/EptBinaryDecoderWorker.js"
],
"EptZstandardDecoderWorker": [
"src/workers/EptZstandardDecoder_preamble.js",
'libs/zstd-codec/bundle.js',
"libs/ept/ParseBuffer.js",
"src/workers/EptZstandardDecoderWorker.js"
]
};

View File

@ -1,4 +1,4 @@
importScripts('/libs/ept/ParseBuffer.js');
// importScripts('/libs/ept/ParseBuffer.js');
onmessage = function(event) {
parseEpt(event);
}

View File

@ -1,6 +1,6 @@
window = { };
document = { };
importScripts('/libs/zstd-codec/bundle.js', '/libs/ept/ParseBuffer.js');
// window = { };
// document = { };
// importScripts('/libs/zstd-codec/bundle.js', '/libs/ept/ParseBuffer.js');
onmessage = async function(event) {

View File

@ -0,0 +1,2 @@
window = { };
document = { };