fix ept loader
This commit is contained in:
parent
080334e0f2
commit
77874821df
@ -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">
|
||||
|
||||
@ -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"
|
||||
]
|
||||
};
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
importScripts('/libs/ept/ParseBuffer.js');
|
||||
// importScripts('/libs/ept/ParseBuffer.js');
|
||||
onmessage = function(event) {
|
||||
parseEpt(event);
|
||||
}
|
||||
|
||||
@ -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) {
|
||||
|
||||
|
||||
2
src/workers/EptZstandardDecoder_preamble.js
Normal file
2
src/workers/EptZstandardDecoder_preamble.js
Normal file
@ -0,0 +1,2 @@
|
||||
window = { };
|
||||
document = { };
|
||||
Loading…
x
Reference in New Issue
Block a user