Topic: Horizon issues

Hi

I changed the position by default of the map but the horizon does not follow map's position.
Any simple way to make Horizion follow map position at runtime?
Thank you

Re: Horizon issues

Hello.

I checked the work of Horizon2_ArcGIS, which you requested earlier, with random position of the map and it works correctly.
Horizon follows the map.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

3 (edited by Amen 2019-06-27 15:22:50)

Re: Horizon issues

Hi,
It follows but for not when you set rotation.y=180.But no problem i resolved the problem.
An other question please.
1-to get real elevation of a specifique point wich i specifie latitude,longitude , Something like "OnlineMapsElevationManagerBase.GetElevation(Langitude , Latitude )" inspite of px,py.
2- Some problem of Horizon  using ArcGISE
thank you

Post's attachments

Attachment icon horizonProblem.PNG 92.93 kb, 13 downloads since 2019-06-27 

Re: Horizon issues

You did not mention anything about turning.
Yes, in this case, the script may not work correctly.

1. Convert the coordinates to Unity World Position and use this way:
http://forum.infinity-code.com/viewtopi … 5200#p5200
2. This is a screenshot of the problem, right?
Unfortunately, I can not say anything based on this screenshot.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

5 (edited by Amen 2019-06-28 14:36:06)

Re: Horizon issues

1.I just need elevation of the lat,long of a scpecific point(in most case the center of the map ) ,my code seems to be wrong becaude values that i get seems to be different from the real world
public class GetElevationArcGIS : MonoBehaviour {
   
    double px, py;
    public GameObject container;
    OnlineMaps map;
    private OnlineMapsTileSetControl control;
    private void Start()
    {
        map = OnlineMaps.instance;
        control = OnlineMapsTileSetControl.instance;

    }
    private void Update()
    {
        float elevation = GetElevation(49.0083899664f, 2.53844117956f);
        Debug.Log(elevation);
    }
    private float GetElevation(float mx,float my)
    {
        float elevation = 0;

        OnlineMapsUtils.LatLongToMercat(ref mx, ref my);
        elevation= OnlineMapsElevationManagerBase.GetElevation(mx, my);
        return elevation;
    }
}

2.I'm using horizonArcGIS and i need to implement a switcher that active a desactive map object at runtime (some behavior for "fly scene") .So when desactiving map object Only horizon becomes black just like in the screenshot. So that the problem is in activing and desactiving Horizon_script.Any way to resolve this probleme.

Thank youuuu

Re: Horizon issues

1. If you want to get elevations from Elevation Manager, then you need to use a point in the scene, relative to top left corner of the map.
http://infinity-code.com/doxygen/online … a7c3d53b97
You are using Mercator position, which is wrong.

2. The updated script is attached.

Post's attachments

Attachment icon Horizon2_ArcGIS.cs 23.39 kb, 25 downloads since 2019-06-28 

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Horizon issues

thank youuuuuuuuuuuuuu

Re: Horizon issues

The script, with the support of the cache is attached.

Post's attachments

Attachment icon Horizon2_ArcGIS.cs 25.37 kb, 27 downloads since 2019-07-10 

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Horizon issues

Thank you Alex, I am really grateful