1 (edited by fink.mgdn 2022-01-10 16:08:50)

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

Post's attachments

Attachment icon SC.jpg 266.63 kb, 262 downloads since 2022-01-10 

Re: Horizon with Bing Elevations Data

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.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

3 (edited by casparhenrik 2022-01-20 23:51:26)

Re: Horizon with Bing Elevations Data

Hello Alex,
When i add the horizon_OM3.cs script and zoom far enough I get these artefact, any idea why ?

Post's attachments

Attachment icon GameView.PNG 288.39 kb, 278 downloads since 2022-01-21 

Re: Horizon with Bing Elevations Data

Here are the settings in the inspector

Post's attachments

Attachment icon Isnpector.PNG 34.35 kb, 237 downloads since 2022-01-21 

Re: Horizon with Bing Elevations Data

Sorry for the spam, I can't figure out how to add multiple attachments...
I get those errors in a webgl build

Post's attachments

Attachment icon WebglError.PNG 30.12 kb, 288 downloads since 2022-01-21 

Re: Horizon with Bing Elevations Data

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.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.

7 (edited by casparhenrik 2022-01-21 10:13:29)

Re: Horizon with Bing Elevations Data

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)

Re: Horizon with Bing Elevations Data

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.

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.