All Questions
Tagged with web-worker three.js
36 questions
0
votes
0
answers
21
views
Loading a model with GLTFLoader through Web Worker causes mesh deformation on SkinnedMesh
My page is taking a long time to load because of the loading of the models that I do as soon as the page loads
During loading in the main thread, page interactions, such as hover effects, etc., stop ...
1
vote
1
answer
874
views
Web worker still janks main thread
I’m having a strange issue with a fairly complex ThreeJS scene. I’ve spent a few days moving the entire 3D scene to an offscreencanvas and I’ve moved the loading of my GLB files and texture maps to a ...
0
votes
0
answers
38
views
Web workers importScripts() and three.js [duplicate]
Hi I am trying to create a fallback for firefox seen as they don't seem to support
so one option I've been reading about is importScripts();
In my worker file I have tried to replace these imports:
...
1
vote
0
answers
613
views
Emscripten threads and custom web workers
I wrote an app to process gcode files in C/C++ compiled using emscripten. File parsing and processing is done in std::threads. Displaying in webgl is done using Threejs on main browser thread.
Now, I ...
3
votes
1
answer
1k
views
Serializing and deserializing geometry in three.js using toJSON and BufferGeometryLoader. Transferring geometries as string
First of all - I'm a beginner in three.js and I just want to share my experience.
My task was to convert geometry into something and transfer it to another WebWorker(you cannot transfer all objects ...
0
votes
0
answers
406
views
Webworkers: bad performance after page reload
I am using a webworker to load an 3D object for three.js.
If i disable the browsercache the webworker has great performance, if i enable the browsercache and reload the page the webworker performs ...
1
vote
1
answer
1k
views
can`t use three.js texture loader in javascript worker
I'm trying to use three.js to load the texture.
main.js:
const worker = new Worker('../workers/worker.js', {
type: 'module'
});
and this is the simple worker.js:
import * as THREE from '...
2
votes
1
answer
83
views
Make object structured cloneable
Is there an automatic way to make an arbitrary JavaScript object structured cloneable by removing all methods from the object?
In my specific usecase I'm creating three.js BufferAttribute objects in ...
0
votes
0
answers
120
views
Three.js R105 - intersectObjects is not a function, collision worker
I am looking to perform collision detection in a seperate web worker. I was under the assumption that .intersectObject was a function of the raycaster. However, it appears that it is not?
How would I ...
4
votes
1
answer
4k
views
How to build Float32Array from ArrayBuffer
Consider I have an ArrayBuffer, as shown in next screenshot)
//recompute object from vertices and normals
const verticesBuffer:ArrayBuffer = e.data.verticesBufferArray;
const normalsBuffer:ArrayBuffer ...
2
votes
1
answer
2k
views
Can web workers support multiple events like message and progress?
Is it possible to write a web worker to respond to two different events?
I have a worker that loads a buffergeometry from various .json files by taking out the respective normal, position, index ...
4
votes
1
answer
5k
views
Web workers for loading object in three.js
I'd like to load and parse a 3D file using three.js and the corresponding Loader (e.g. PLYLoader). However, because my 3D files are very large, the Loader spends a long time parsing the file and ...
6
votes
1
answer
3k
views
Using webworker and IndexedDB for loader of Three js
I want to use dracoLoader of threeJS in multi-threads, then I selected Webworker and IndexedDB. I have gotten the correct Geometry in webworker, however, when I pass data to main thread using ...
2
votes
0
answers
197
views
Using workers causing the browser to crash?
I am trying to simulate around 10,000 objects using three.js. Since the objects are moving, I needed to calculate the trajectory at each instant. For that I decided to use workers. The following is my ...
0
votes
0
answers
171
views
JSON loader with webworker
How to load Three.js JSON model using webworkers? Main problem I an trying to solve is to make the browser UI responsive by offloading the computations to the webworker.