boku-ilen / landscapelab

Geodata-driven Landscape Visualization built with Godot and Geodot
https://landscapelab.boku.ac.at/
Other
39 stars 12 forks source link

Load and display GeoJSON multipolygons for assets #60

Closed MathiasBaumgartinger closed 5 years ago

MathiasBaumgartinger commented 5 years ago

First a request to load all the assets from the server needs to be implemented. These will fill the ui_controller.gd script. Once loaded when choosing an asset a GeoJSON multipolygon should be drawn to see where the asset can be placed. This will be shown until leaving the edit mode.

MathiasBaumgartinger commented 5 years ago

Assets-JSON requested from server now and loaded into the UI. Probably needs some tweaks and functionality.

MathiasBaumgartinger commented 5 years ago

Now does everything like it should, the problem is the itemSpawner gets set the according item id. For me locally the itemSpawner does not spawn items however.

MathiasBaumgartinger commented 5 years ago

Need placement arreas to continue with work.

chrisgraf commented 5 years ago

the real data is still in preparation .. can you add a dummy fixture?

MathiasBaumgartinger commented 5 years ago

WorldPosition.get_position_on_ground(vec : Vector3)

With this function the required y-axis for a given Vector3 with proper set x- and z-axis can be found.

MathiasBaumgartinger commented 5 years ago

Added dummy fixtures, will continue work once real data is there :)

chrisgraf commented 5 years ago

We probably need to enhance the given code to also cope with point data

we will not implement point data for 0.4

chrisgraf commented 5 years ago

missing issue is the check if the overlay is above the surface

chrisgraf commented 5 years ago

this is moved and discussed further in #31 so closing this as duplicate