Hi,
Is it possible to specify a worker that is not in the Workers directory?
I'm trying to create a plugin to read TIN and Polyhedral surfaces from a WFS source. The worker will do tesselation, normal, tangent, and binormal computation.
My geometry class as the attribute _workerName but specifying a directory realtive to the Worker directory seems cumbersome.
Any advice on how to do that cleanly ?
Thanks,
Vincent.
Did you try specifying an absolute path to your worker? I’m not sure if it will work or not, but it’s worth a try. Supporting custom geometry with custom web workers isn’t something we’ve done a lot with (which is why the variable has an underscore in front of it and is not part of the public API, but it should be possible.
Did you try specifying an absolute path to your worker? I'm not sure if it
will work or not, but it's worth a try. Supporting custom geometry with
custom web workers isn't something we've done a lot with (which is why the
variable has an underscore in front of it and is not part of the public
API, but it should be possible.
Yes, I tried that, but 'Worker/' is prepended to the path.
Ahh you are correct. I think this is something we can (hopefully) fix easily on our end, I wrote up this issue on the subject: https://github.com/AnalyticalGraphicsInc/cesium/issues/2550 We might be able to get to it for 1.8 if it’s as easy as I think it is.
Matthew,
Do we have to create workers in a build or can we create them ourselves as this post suggests? I've created a plug-in that uses a custom geometry and I am not sure how to make a worker without defining my own build so I have to directly call createGeometry from my app.