26 (edited by negruj0w1tsch 2020-11-02 11:44:22)

Re: Extend Online Maps to create a horizon

Hello,

Due to some script related dependencies I have to rotate my map object in the scene. It's basically got a rotation 0/180/0 e.g. upside down than the default rotation. This, however causes an issue with the HorizonWithoutElevation script. The content of the map on the horizon tiles doesn't fit the main map. Any quick way to fix this while still keeping the 0/180/0 rotation of the map object?

Cheers,

Jürgen

Re: Extend Online Maps to create a horizon

It was not planned in this script that the map could be rotated.
Email me (support@infinity-code.com) and I will send you a modified script.

Kind Regards,
Infinity Code Team.

Ultimate Editor Enhancer (ex uContext Pro) is productivity PowerPack that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features to the editor, corrects and improves the editor’s built-in behaviors.

Re: Extend Online Maps to create a horizon

How do you use the scripts you publish?I used horizon. Cs directly.This is the error I got:

Assets\Infinity Code\Online maps\Scripts\Horizon2.cs(76,45): error CS0117: 'OnlineMapsUtils' does not contain a definition for 'GetWWW'
Assets\Infinity Code\Online maps\Scripts\Horizon2.cs(79,18): error CS1061: 'OnlineMapsTile' does not contain a definition for 'customData' and no accessible extension method 'customData' accepting a first argument of type 'OnlineMapsTile' could be found (are you missing a using directive or an assembly reference?)
...........

Re: Extend Online Maps to create a horizon

For Online Maps v3 you need to use Horizon2_OM3 script.

Kind Regards,
Infinity Code Team.

Ultimate Editor Enhancer (ex uContext Pro) is productivity PowerPack that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features to the editor, corrects and improves the editor’s built-in behaviors.

Re: Extend Online Maps to create a horizon

Alex Vertax wrote:

For Online Maps v3 you need to use Horizon2_OM3 script.

Thanks,But ,I used the script you mentioned, but my program did not get  OnlineMapsBingMapsElevationManager.instance:

Re: Extend Online Maps to create a horizon

This example requires Bing Maps Elevation Manager.
If you don't need elevations, see HorizonWithoutElevation script in the package.

Kind Regards,
Infinity Code Team.

Ultimate Editor Enhancer (ex uContext Pro) is productivity PowerPack that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features to the editor, corrects and improves the editor’s built-in behaviors.

Re: Extend Online Maps to create a horizon

Alex Vertax wrote:

Horizon 2 ArcGIS has many ways to fix this:
1. Decrease Position Y Offset, for example to “-25”.
2. Decrease In Map View Y Offset, for example to “-70”.
3. Increase Render Queue Offset, for example to "300".

Hi Alex, playing with elevation with the horizon_OM3.cs and the elevation manager, I wanted to have the small detailed map above the horizon one in the rendering. I wanted the y position at the same level for both the first option but then there was some overlap with the first option so no. I fail to see the purpose of the In Map View Y offset, could you explain a bit more?
I tried the third option but I've read that on the URP we had to set the ZTest property of the material to Always so that it shows up alwais on top.
The urp and shadergraph does not expose this property. The solution for me then was to play with the camera stacking with base and overlay, and have as many renderPipelineAsset and layers as I needed horizons.
I found this path a bit tedious but it works well, and I thought maybe there was a simpler option you had come up with?

Thank you for your time smile

Re: Extend Online Maps to create a horizon

Unfortunately, I am not an expert on shaders, and each of them was given to me through a lot of pain.
So I can't tell you which way is better here.

Kind Regards,
Infinity Code Team.

Ultimate Editor Enhancer (ex uContext Pro) is productivity PowerPack that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features to the editor, corrects and improves the editor’s built-in behaviors.

34

Re: Extend Online Maps to create a horizon

Hello Alex, I'm trying to figure out why Horizon keeps generating this kind of offset in the terrains around my central map?

This is right from a fresh map add with all values set to 1024

Post's attachments

Attachment icon mapsissue.jpg 82.44 kb, 1 downloads since 2022-04-29 

Re: Extend Online Maps to create a horizon

These scripts always use whole tiles, and it can have some offset from the main map.
You need to adjust Camera / Clipping Planes to make the user not see it.

Kind Regards,
Infinity Code Team.

Ultimate Editor Enhancer (ex uContext Pro) is productivity PowerPack that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features to the editor, corrects and improves the editor’s built-in behaviors.

36 (edited by mcb 2022-05-11 16:02:12)

Re: Extend Online Maps to create a horizon

Alex, how would I go about adding markers to the horizon terrains?

I'm using the Bing maps version if it matters

Re: Extend Online Maps to create a horizon

The horizon is not part of the map and cannot have markers.

Kind Regards,
Infinity Code Team.

Ultimate Editor Enhancer (ex uContext Pro) is productivity PowerPack that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features to the editor, corrects and improves the editor’s built-in behaviors.

38

Re: Extend Online Maps to create a horizon

ugh, ok, gonna have to come up with a different solution then, it looks so bad seeing markers just disappear when they hit the horizon terrains

Re: Extend Online Maps to create a horizon

Have a look at OnlineMapsMarkerFlatDrawer.OnCheckMarker2DVisibility.  Using this event, you can change the visibility check rules and make the markers visible from the outside of the map.

Kind Regards,
Infinity Code Team.

Ultimate Editor Enhancer (ex uContext Pro) is productivity PowerPack that take your workflow in Unity Editor to a next level, simplifies working with content, adds new features to the editor, corrects and improves the editor’s built-in behaviors.