Hello,
I am trying to use follow camera in offscreen canvas running in worker. I think follow camera needs controls attached to work properly which it obviously doesn’t have. It seems only rotation works but not position following mesh. Would anyone know if I can still get the follow camera work somehow or I need a custom solution?
Do you have a simple repro in the PG so we can have a look?
Unfortunately no, not sure if its simple to setup workers in PG. Camera setup is just taken out from follow camera documentation PGs and the mesh is simple box. I am using latest bjs.
There is the special BABYLON class for worker pool - Babylon.js docs
Here is the simplest PG example - https://playground.babylonjs.com/#SAXG32#18 (see console messages)
Thanks, I will try to reproduce using worker pool.
Here is another PG example, probably it will be even easier to use it for different cameras - https://playground.babylonjs.com/#TJ56DX#13