im looking to do somthing like this https://cs.stackexchange.com/questions/123464/what-is-an-algorithm-to-find-the-largest-rectangle-of-white-space-in-an-image
with the picking scene that i am using for GPU picking like at the end of the page here (mine in comment too long)https://mediawing.jp/js/three.js/manual/en/picking.html
do you know any similar examples ? can you read a section of screen with https://threejs.org/docs/#api/en/renderers/WebGLRenderer.readRenderTargetPixels
the background color i am searching for squares of can be emissive: new THREE.Color(0),// id = 0
this is how other objects are added:
let PickerMesh = child.clone() // create cloan for invisable picking scene
PickerMesh.material = new THREE.MeshPhongMaterial({ //give it a special mesh that works as an ID not a real colour
emissive: new THREE.Color(4), color: new THREE.Color(0, 0, 0), specular: new THREE.Color(0, 0, 0),
side: THREE.DoubleSide, alphaTest: 0.5, blending: THREE.NoBlending,
});
this._pickingScene.add(PickerMesh); ```