RealityKit Model Entity will be darker when I use ARWorldTrackingConfiguration

RealityKit Model Entity will be darker when I use ARWorldTrackingConfiguration. When I place a Model Entity without ARWorldTrackingConfiguration, it is displayed brightly. Why? And does someone know how can I fix it?

May the force be with you and me.

Answered by DTS Engineer in 681187022

Hello,

By default, ARWorldTrackingConfiguration is set up to provide lighting estimates for the real world, and by default ARView utilizes this information to configure scene lighting based on these real world light estimates.

Could you provide some more details about your world tracking configuration? Are you manually configuring it? Is light estimation enabled? Is environment texturing enabled? Is your model somewhat reflective?

When you are viewing the model "without ARWorldTrackingConfiguration", what kind of configuration are you running, or are you viewing the model in .nonAR mode?

Accepted Answer

Hello,

By default, ARWorldTrackingConfiguration is set up to provide lighting estimates for the real world, and by default ARView utilizes this information to configure scene lighting based on these real world light estimates.

Could you provide some more details about your world tracking configuration? Are you manually configuring it? Is light estimation enabled? Is environment texturing enabled? Is your model somewhat reflective?

When you are viewing the model "without ARWorldTrackingConfiguration", what kind of configuration are you running, or are you viewing the model in .nonAR mode?

So, it have been solved by

let config = ARWorldTrackingConfiguration() 
config.environmentTexturing = .automatic

Thank you gchiste

RealityKit Model Entity will be darker when I use ARWorldTrackingConfiguration
 
 
Q