- Sort Posts
- 17 replies
- Last post
Enabling Lighting Estimation
Enabling Lighting Estimation
Thanks, So ARKit only devices(iPad pro and iPad 2017), might I suggest a column on your ground plane compatible devices webpage saying which are working with light estimation as this is not mentioned anywhere and then when it comes to ARcore devices having it implemented then developers will know which are working and which are not.
Thanks.
Enabling Lighting Estimation
I've had a go at this on a Samsung S8 (Unity 2017.3.0p3 + Vuforia 7.0.43), cannot get it to work though.
Any advise why this is not working?
This is the code:
using System.Collections; using System.Collections.Generic; using UnityEngine; using Vuforia; public class IlluminationEstimation : MonoBehaviour { public Light m_LightToEffect; private IlluminationManager m_IlluminationManager; private float? m_Temperature; private float? m_AmbientIntensity; private void Start() { m_IlluminationManager = new IlluminationManager(); } private void Update() { if (m_IlluminationManager == null) return; if(m_LightToEffect != null) { m_AmbientIntensity = m_IlluminationManager.AmbientIntensity; if(m_AmbientIntensity != null) { m_LightToEffect.intensity = (float)m_AmbientIntensity; } m_Temperature = m_IlluminationManager.AmbientColorTemperature; if (m_Temperature != null) { m_LightToEffect.colorTemperature = (float)m_Temperature; } } } }
Light estimation is currently ARKit devices only.
Apologies for the inconvenience,
Vuforia Support
Enabling Lighting Estimation
Enabling Lighting Estimation
I've had a go at this on a Samsung S8 (Unity 2017.3.0p3 + Vuforia 7.0.43), cannot get it to work though.
Any advise why this is not working?
This is the code:
using System.Collections; using System.Collections.Generic; using UnityEngine; using Vuforia; public class IlluminationEstimation : MonoBehaviour { public Light m_LightToEffect; private IlluminationManager m_IlluminationManager; private float? m_Temperature; private float? m_AmbientIntensity; private void Start() { m_IlluminationManager = new IlluminationManager(); } private void Update() { if (m_IlluminationManager == null) return; if(m_LightToEffect != null) { m_AmbientIntensity = m_IlluminationManager.AmbientIntensity; if(m_AmbientIntensity != null) { m_LightToEffect.intensity = (float)m_AmbientIntensity; } m_Temperature = m_IlluminationManager.AmbientColorTemperature; if (m_Temperature != null) { m_LightToEffect.colorTemperature = (float)m_Temperature; } } } }
Enabling Lighting Estimation
Here are the native APIs: https://library.vuforia.com/content/vuforia-library/en/reference/cpp/classVuforia_1_1Illumination.html#a98e0b0ecf04a3b96a1b2241961a4f130
Thanks,
Vuforia Support
Enabling Lighting Estimation
Hello all,
Unity has light estimation as well. You can view the APIs for it here: https://library.vuforia.com/content/vuforia-library/en/reference/unity/classVuforia_1_1IlluminationManager.html#aaee41bf33e97294dd70bb67472b3bb79
Thanks,
Vuforia Support
Hello @MultiMediaMarkers,
From our SDK 8.3 (coming soon!) release notes:
"Additional methods have been added to the Vuforia::Illumination class in native and Unity APIs that will return colorCorrection and intensityCorrection values. These values will be seen to change when using ARCore, on other platforms default values will be returned."
Thanks,
Vuforia Engine Support