Looking at a light in my room can i detect its a light?

Is there a way to detect that it's a light and place an 3d object on that light source?
How would you accomplish this?

I tried capturing an image and searching each pixel for white areas. But to get the location in real world and place object there I failed.

Tried meshing room but where light is located it will not mesh the light. It's like a hole in the mesh where light is.

Hi @janikows,

There are a few limitations to the meshing function. The meshing system is looking for textured surfaces and light sources can make it difficult to detect surfaces. It is possible to use the device's light sensors. They will not point out the origin of the light, though. Your easiest solution may be to manually cover the light using a raycast or spatial mapping.



1 Like