I’ll try to create a minimap for useage in AR. While everything works fine in a “normal” build, the canvas rendering itself is somehow frozen or not doing anything in AR. It works in the WebXR AR simulator in the browser, but on my device (Chrome, Android 13, Pixel 5) the canvas stays white, or just shows one frame that was recorded somtime.
Is there something wrong with my thinking?
Code will follow in the comments.
Original Post on Discord
by user 474974683163394049
MiniMap class:
by user 474974683163394049
by user 474974683163394049
index.html:
by user 474974683163394049
Canvas stays white:
by user 474974683163394049
after ending and starting the AR mode again a “screenshot” appears:
by user 474974683163394049
example can be found here: https://hazel-supreme-snowplow.glitch.me/
by user 474974683163394049
Are you sure the method is not called? There’s no reason why it shouldnt really
the only real indicator I have is, that the canvas stays white 
by user 474974683163394049
There might be differences in behaviour how drawing buffers are preserved between AR and non-AR modes
May be worth trying to make your own renderer and explicitly specifying that they should (three.js docs)