Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

Find altitude out of an octant ? #29

Open
Rakiah opened this issue Feb 4, 2019 · 9 comments
Open

Find altitude out of an octant ? #29

Rakiah opened this issue Feb 4, 2019 · 9 comments

Comments

@Rakiah
Copy link

Rakiah commented Feb 4, 2019

Hey guys, as stated in another issue i've been working on a process to dump large areas that are actually usable in 3d engine or possible to stream over a sig server, but what lack my system is actually the altitude

I can display my tiles next to each other and this blend kind of nicely except when there is an altitude difference between the tiles

would you think it'd be possible to actually the actual elevation of a tile ?

@Rakiah Rakiah closed this as completed Feb 4, 2019
@Rakiah Rakiah reopened this Feb 4, 2019
@LexSong
Copy link
Contributor

LexSong commented Feb 8, 2019

See #30, I think it's better to normalize all tiles with the same reference point, instead of normalize each tile individually and try to fix the height differences later.

@desmondCTNG
Copy link

desmondCTNG commented Aug 29, 2020

can someone find the height? coz using the same referencing point to normalize tiles is accurate only when the tiles are near each other.

When you download a large area, to prevent having not enough memory, you are forced to place the objects in multiple Blender files. This makes it hard to adjust the height manually. Only way to solve is to find the height of the tiles.

@zephirus
Copy link

When you create a tile or group of tiles, normalize only the first one and use the mid_point for everything else.

For the case where you want multiple blende files, when you create the second set of tiles, resuse again the same mid_point from the first tile of the first set of tiles created.

You will get perfect geometry everytime,

@zephirus
Copy link

Is there any why to know what is the z-axis value of a tile? From what I see, this is not yet something that is available in the code.

@desmondCTNG
Copy link

It is true you can normalize a small area, what about a large area? You may need another reference points.

@zephirus
Copy link

zephirus commented Sep 3, 2020 via email

@nmielcarek
Copy link

The position and altitude is encoded into each vertex of the obj file data. Due to being in ECEF format it may not be obvious, but you can use a tool or library to convert to Lat/Lon/Alt (see convertecef.com for a quick check).

@fs2020medan
Copy link

What does the obj vertice z axis tell you ? can we assume it must be in meter ?

also aint there is something when you retrieve from metadata server ? for example from another script

` var meta = getMeta(data.matrixGlobeFromMesh);

    if (id.length == maxLod)
    {
        lodMap.set(id, { matrix: data.matrixMeshFromGlobe, scale: meta.size});
    }
    else
    {
        var parentTransform = lodMap.get(id.substring(0, maxLod));
    }

    fs.writeFileSync(`${folder}\\${id}.pos`, JSON.stringify(meta.position));`

@HakkaTjakka
Copy link

Here a python script for use with bte121 /tpll conversion. It has lines of code to get height of geo coord.
https://github.com/HakkaTjakka/MinecraftWorldEditor/tree/master/project-obj has .bat for converting into a .exe.
For the height you need to adapt the script. Uses Python numpy and gnius lib.
It uses ellipsoid for getting height and is quite close...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants