Hi Matthias! To help you with the issue of baked light not displaying correctly in AR (iOS) while it looks fine in the browser, we can consider a few steps:
Check Lightmap Resolution: Make sure that the lightmap resolution in Unity is set high enough to capture the details of your brick building. You can adjust this in the lighting settings.
Use UV Mapping: Ensure that your brick building’s UVs are properly laid out for light mapping. Overlapping UVs can lead to issues with the baked lightmaps.
Lightmap Compression: Sometimes, compression settings can lead to a loss of detail in the baked lightmaps. Try disabling compression to see if that improves the quality.
Adjust Material Settings: Ensure that the materials used on your brick building are compatible with lightmaps. They need to have the proper shader settings applied.
Exporting for AR: When exporting from Unity, double-check the settings specific to AR. Ensure that baked lighting data is included in the export to ensure it appears correctly in your AR application.
Lighting Settings in AR: In your AR environment, make sure that the lighting settings (especially in regards to baked lighting) match what you expect based on your Unity scene.
If you can provide more specific information about your Unity version and entity setup, I can help further refine these suggestions!
1 replies left - Get a PRO license for more AI replies. thread_vY7FXKzmDwCSWKIwiJYgT3so Reply to this message to continue the conversation
The only way for me at the moment is to bake the maps externally. But that has extreme limitations in terms of quality. It would be better to be able to use the GI lighting (exr) generated by Unity in AR.
Currently, lightmaps on iOS are not supported. You can bake the data into albedo as you mentioned, but depending on the scene that can result in lots of large textures.
The reason it’s not supported at the moment is on Apple’s side – their USD implementations doesn’t support multiple UVs in iOS 17 and earlier.
We have ongoing efforts to support MaterialX in our USDZ exporter, which (among other things) will allow us to export lightmaps properly, with the right math, on iOS 18+ (where Apple added the ability to do so).