Topic: Horizon with Bing Elevations Data
I cannot create a horizon with Bing elevations. I get the error: Index was outside the bounds of the array. How do I fix this?
I am using Version 3.7.12
You are not logged in. Please login or register.
Infinity Code Forum → Online Maps Help → Horizon with Bing Elevations Data
I cannot create a horizon with Bing elevations. I get the error: Index was outside the bounds of the array. How do I fix this?
I am using Version 3.7.12
Hello.
Thank you for the bug report.
The problem has been fixed.
Please email me (support@infinity-code.com) and I will send you a modified script.
Hello Alex,
When i add the horizon_OM3.cs script and zoom far enough I get these artefact, any idea why ?
Here are the settings in the inspector
Sorry for the spam, I can't figure out how to add multiple attachments...
I get those errors in a webgl build
Hello.
I just tested this script for URP and it works correctly on my side.
In your settings, I see that you are using Mapbox Elevation Manager, but this script requires Bing Maps Elevation Manager.
About errors in the console:
Online Maps does not know what tiles are present on the server and tries to download each one.
Maybe I did not get the correct one because I get these errors when using bingMapsElevationManager with Horizon_OM3.cs
IndexOutOfRangeException: Index was outside the bounds of the array.
OnlineMapsSinglePartElevationManager`1[T].GetUnscaledElevationValue (System.Double x, System.Double z, System.Double tlx, System.Double tly, System.Double brx, System.Double bry) (at Assets/Infinity Code/Online maps/Scripts/Elevations/OnlineMapsSinglePartElevationManager.cs:89)
OnlineMapsSinglePartElevationManager`1[T].GetElevationValue (System.Double x, System.Double z, System.Single yScale, System.Double tlx, System.Double tly, System.Double brx, System.Double bry) (at Assets/Infinity Code/Online maps/Scripts/Elevations/OnlineMapsSinglePartElevationManager.cs:48)
OnlineMapsTileSetControl.GenerateTileVertices (OnlineMapsTileSetControl+MeshProps p, System.Int32 x, System.Int32 y, System.Int32 i) (at Assets/Infinity Code/Online maps/Scripts/Controls/3D/OnlineMapsTileSetControl.cs:194)
OnlineMapsTileSetControl.UpdateMapSubMesh (System.Int32 x, System.Int32 y, OnlineMapsTileSetControl+MeshProps p, UnityEngine.Material[] materials) (at Assets/Infinity Code/Online maps/Scripts/Controls/3D/OnlineMapsTileSetControl.cs:1232)
OnlineMapsTileSetControl.UpdateMapMesh () (at Assets/Infinity Code/Online maps/Scripts/Controls/3D/OnlineMapsTileSetControl.cs:1145)
OnlineMapsTileSetControl.UpdateControl () (at Assets/Infinity Code/Online maps/Scripts/Controls/3D/OnlineMapsTileSetControl.cs:1043)
OnlineMaps.CheckBufferComplete () (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:757)
OnlineMaps.LateUpdate () (at Assets/Infinity Code/Online maps/Scripts/OnlineMaps.cs:1088)
This is a known issue that has already been fixed, but a new version has not yet been published.
Email me (support@infinity-code.com) and I'll send you the modified script.
Infinity Code Forum → Online Maps Help → Horizon with Bing Elevations Data
Powered by PunBB, supported by Informer Technologies, Inc.