Hello,
It seems the GUI has some issues in offscreen canvas worker.
Here is a PG:
You can just comment out GUI section to check if the pg is working otherwise. The gui section seems to be the problem.
Hello,
It seems the GUI has some issues in offscreen canvas worker.
Here is a PG:
You can just comment out GUI section to check if the pg is working otherwise. The gui section seems to be the problem.
I suppose its because offscreencanvas has no inputs. Is there any way to get GUI working even without inputs? Gui I want to use id an indicator without a need for an interaction.
I assume the solution is here - Support for offscreen canvas - #6 by kyptov
The GUI libs right now throw an error in canvas. That is what I was primarily concerned about. Is this what you are saying that implementing these changes from the post would prevent gui errors? Or its just enabling events in worker.
Just
But I believe you may use HTML elements, which should be much easier.
Thanks. It seems there is couple things in BJS that wont work in in offscreencanvas. I managed to find a way around for follow camera. Now it seems its similar story for gui. I wonder what else will be problematic.
If you have a list of what’s missing I can try to add them/fix them
GUI is a second thing after cameras I came across. I was hoping to transfer my project I did while ago so I imagine there could be other stuff by the time I finish. Maybe I stop posting about offscreencanvas issues and just post a summary when I finish.
BTW I am using comlink lib for workers which allows for transferring events among some other cool features. We can close this thread for now. Thanks for your help!