Building while on another build target for cross-app has Texture Format issues

So I am working on a cross-platform app using Needle for Web and other build targets that are Android/IOS, while on Android build target using play mode export to local server I always get this error -
Can not export cubemap - Format B10G11R11_UFloatPack32 is not supported on this platform. Try switching to another Build Platform. You are currently on Android

Is this an architectural issue with Unity where once on one build platform, conversion to some texture formats is blocked off, or can Needle say β€˜I am trying to export a webgl supported texture format, let me do it’?

Original Post on Discord

by user 103054507105067008

UnityEngine.Debug:LogError (object)
Needle.Engine.Shaders.CubemapExporter:RenderTextureToTexture (UnityEngine.RenderTexture) (at Library/PackageCache/com.needle.engine-exporter@2.59.3-pre/Shaders/Editor/CubemapExporter.cs:260)
Needle.Engine.Shaders.CubemapExporter:RenderTextureToEquirectTexture (UnityEngine.RenderTexture,bool) (at Library/PackageCache/com.needle.engine-exporter@2.59.3-pre/Shaders/Editor/CubemapExporter.cs:197)
Needle.Engine.Shaders.CubemapExporter:RenderSkyboxAndEnvironmentToEquirectTexture (bool,bool) (at Library/PackageCache/com.needle.engine-exporter@2.59.3-pre/Shaders/Editor/CubemapExporter.cs:130)
Needle.Engine.Gltf.LightmapsExporter:AddSkybox (Needle.Engine.Gltf.GltfExportContext,System.Nullable`1<int>,Needle.Engine.Gltf.ILightmapExtension&,Needle.Engine.Shaders.OutputFormat) (at Library/PackageCache/com.needle.engine-exporter@2.59.3-pre/Gltf/Editor/LightmapsExporter.cs:260)

by user 103054507105067008

Yes this is a Unity issue - at least for now. We ask Unity for the default format for the RT and it gives a unsupported texture format.

I think we can fix it - only ran into this few days ago here too. So havent looked much into it yet

For now I switch to WebGL for Needle builds while working on this, I’ll report back if I find anything else like that though. Would be interested in testing a fix for sure

by user 103054507105067008