I’m trying to resolve an issue raised, so I thought I would start with a PG. The PG itself seems to work once and then fail the second time:
create env texture | Babylon.js Playground (babylonjs.com)
Separately and I’ll need to figure this out on my own looks like - the codesandboxes crash as there is no camera defined
- because that helper method is creating a “hostingScene” ( Babylon.js/environmentTextureTools.ts · BabylonJS/Babylon.js (github.com)) and I try to render it I wonder if the “hostingScene” could be patched so that it’s “render” method was a no-op. I’ll see about that one as it’s technically a bug in
react-babylonjs
and I could be adding guard clauses - but I was hoping to avoid that as part of the defautl runRenderLoop, but I’m not expecting Scenes to be added at runtime that cannot be rendered (I render all Scenes for multi-canvas stuff):
sandbox issue: strange-sun-e824l5 - CodeSandbox
my version more declarative: boring-fast-2nj6ls - CodeSandbox
Just wondering if anybody had a bright idea for that one.