Skip to content
Snippets Groups Projects
Commit d8a5caaa authored by Knuiman, Bart's avatar Knuiman, Bart
Browse files

Changed readme.

Can sync coords with terrain manager now.
parent 499b5e07
No related branches found
No related tags found
No related merge requests found
## 3dBuildings (URP & HDRP)
Downloads buildings from the 3DBag data set from TUDelft using the specified RD-coordinate as origin. This origin will be the zero point in unity world.
Downloads buildings from the 3DBAG data set from TUDelft using the specified RD-coordinate as origin. This origin will be the zero point in unity world.
https://3dbag.nl/en/viewer
### Dependencies
### Dependencies (GIT packages)
- geotiff (for height)
- utils
### Usage
......@@ -13,22 +14,6 @@ https://3dbag.nl/en/viewer
There is a Sample.mkv (movie clip) included. Simply drag into the Hierarchy, then select the prefab and press Generate in the Inspector. Check Console to see if action is happening. May take a minute to complete.
#### Adding (correct) elevation
- From the inspector select a folder where the tiff tiles for the current area reside and Preload height before pressing the Generate button.
- Alternatively, if this dataset is combined with 3dbasisvoorziening, the height data from 3dbasisvoorziening can be used to avoid loading the data twice.
```
var heightData = basisVoorziening.GetComponent<BasisVoorziening>().HeightData;
go.GetComponent<DownloadBuildings>().heightDatas.Add( heightData );
go.GetComponent<DownloadBuildings>().Generate();
```
- Yet another method would be to load the height data from script instead of selecting a folder.
```
var heightData = GeoTiffHeight.Load( filename );
go.GetComponent<DownloadBuildings>().heightDatas.Add( heightData );
go.GetComponent<DownloadBuildings>().Generate();
```
Height is now automatically integreated in the builds. One no longer needs to pre-download an Geotiff file from GeoTiles library.
![Image](./example.png "Example")
\ No newline at end of file
......@@ -4,8 +4,9 @@ Downloads buildings from the 3DBag data set from TUDelft using the specified RD-
https://3dbag.nl/en/viewer
### Dependencies
### Dependencies (GIT packages)
- geotiff (for height)
- utils
### Usage
......@@ -13,22 +14,6 @@ https://3dbag.nl/en/viewer
There is a Sample.mkv (movie clip) included. Simply drag into the Hierarchy, then select the prefab and press Generate in the Inspector. Check Console to see if action is happening. May take a minute to complete.
#### Adding (correct) elevation
- From the inspector select a folder where the tiff tiles for the current area reside and Preload height before pressing the Generate button.
- Alternatively, if this dataset is combined with 3dbasisvoorziening, the height data from 3dbasisvoorziening can be used to avoid loading the data twice.
```
var heightData = basisVoorziening.GetComponent<BasisVoorziening>().HeightData;
go.GetComponent<DownloadBuildings>().heightDatas.Add( heightData );
go.GetComponent<DownloadBuildings>().Generate();
```
- Yet another method would be to load the height data from script instead of selecting a folder.
```
var heightData = GeoTiffHeight.Load( filename );
go.GetComponent<DownloadBuildings>().heightDatas.Add( heightData );
go.GetComponent<DownloadBuildings>().Generate();
```
Height is now automatically integreated in the builds. One no longer needs to pre-download an Geotiff file from GeoTiles library.
![Image](./example.png "Example")
\ No newline at end of file
......@@ -94,6 +94,11 @@ namespace Wander
int numFinishedGlbLoads;
int numFinishedMeshBuilds;
public void SetGPSCoord( Vector2 gps )
{
RDUtils.GPS2RD(gps.x, gps.y, out rdOffsetX, out rdOffsetY );
}
public void Generate()
{
Cancel();
......
......@@ -2,7 +2,8 @@
"name": "3DBuildings",
"rootNamespace": "Wander",
"references": [
"GUID:e44d054dba23a8349a137db68e558dce"
"GUID:e44d054dba23a8349a137db68e558dce",
"GUID:c2a8fdf421d3fc14dbff9693e60a8787"
],
"includePlatforms": [],
"excludePlatforms": [],
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment