GLEAM is an augmented reality framework that provides accurate and real-time illumination on mobile devices. It currently supports the ARKit and Vuforia plugins for Unity.
To use GLEAM in your own Unity project, clone this repository and export to a Unity package in the editor. You can then drag this package into your own project.
The Unity scene must contain the following objects:
- a reflection probe
- a mesh with a reflective material
- an ARCamera
- a NetworkManager object
The real world scene must contain the following objects:
- visible image target
- reflective sphere
- Attach the GLEAMBehaviour script to the reflective mesh.
- Position the reflection probe at the same spot as the reflective mesh.
- In the real world, measure the distance between the center of the image target and the reflection probe on each axis. Set the "probeOffset" parameter in GLEAMBehaviour to this Vector3. (1 Unity unit = 1 meter).
- Drag a reference to the reflective mesh to the "probe" variable.
- Set "intensity" to 1.
- Drag the scene's skybox into the "skyMaterial" reference.
To activate GLEAM in the scene, call NetworkScript.makeHost()
Note that the current version of GLEAM is only supported on Unity 2018.4.8 and up.
#Pictures
#Sample Scene
In the imported Unity package, view the scene called Aug22scene.unity