Recommended way to load obj in a worker? #76
Unanswered
geoff-harper
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Hi @geoff-harper, you could comment this block an pass the url from the main to the worker containing the whole application. I am assuming you are using a module worker, so you can just import everything you need via import statements (as you would do on main). You could pass urls from the main when initialsing the worker. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey Kai, back once again. I'm playing around with loading a scene and an obj in an
OffscreenCanvas
in a worker. I understand that the parallel loader will go off into another thread, fetch/parse and bring it back to the main thread, but I don't think this is quite what I'm looking for. I'm curious if there's a way to just use the regular loader in a worker? Since I'd already be calling it from a worker anyways. My only roadblock so far is thatOBJLoader2
useswindow
in the load methodWould there be a way to work around this little snippet? Or maybe parallel is actually what I'm looking for?
Beta Was this translation helpful? Give feedback.
All reactions