Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue about not rendering Delaware polygons into Unity #168

Closed
Mitko88 opened this issue May 30, 2024 · 5 comments
Closed

Issue about not rendering Delaware polygons into Unity #168

Mitko88 opened this issue May 30, 2024 · 5 comments

Comments

@Mitko88
Copy link

Mitko88 commented May 30, 2024

I've followed the steps as suggested, but I get an error in Unity. What could go wrong?

[2024-05-30 17:25:56.823] [error] [ErrorList.h:72] Errors when loading tileset:

  • Error when parsing tileset JSON, error code 3 at byte offset 0

The error is not very specific, that is why I've shared a link to the generated tiles:
https://drive.google.com/drive/folders/1CZDuQw-ls5z2f9yXD6flSZH1gOFJn1NR?usp=sharing

@bertt
Copy link
Member

bertt commented May 30, 2024

can you try with parameters '--create_gltf false --use_implicit_tiling false'

@Mitko88
Copy link
Author

Mitko88 commented May 30, 2024

Thank you for the quick reply. I've used these two parameters.

pg2b3dm -h localhost -U postgres -c geom_triangle -t delaware_buildings -d postgres -a ogc_fid --shaderscolumn shaders --create_gltf false --use_implicit_tiling false
Tool: pg2b3dm 2.8.1.0
Options: -h localhost -U postgres -c geom_triangle -t delaware_buildings -d postgres -a ogc_fid --shaderscolumn shaders --create_gltf false --use_implicit_tiling false
Password for user postgres:
Start processing 2024-05-30T19:56:23....
Input table: delaware_buildings
Input geometry column: geom_triangle
App mode: Cesium
Spatial reference of delaware_buildings.geom_triangle: 4326
Spatial index detected on delaware_buildings.geom_triangle
Query bounding box of delaware_buildings.geom_triangle...
Bounding box for delaware_buildings.geom_triangle (in WGS84): -75.59158711, 39.08939264, -75.44656349, 39.23050979
Height values: [0 m - 76.58 m]
Default color: #FFFFFF
Default metallic roughness: #008000
Doublesided: True
Create glTF tiles: False
Attribute columns: ogc_fid
Center (wgs84): -75.51907530249994, 39.15995121350005
Starting Cesium mode...
Translation ECEF: 1238318.875,-4794808.5,4006101.5
3D Tiles version: 1.0
Lod column:
Radius column:
Geometric errors: 2000,0
Refinement: REPLACE
Add outlines: False
Use 3D Tiles 1.1 implicit tiling: False
Maximum features per tile: 1000
Start generating tiles...
Creating tile: 4_11_8.b3dm
Tiles created: 238
Geometric errors used: 2000,0
Writing tileset.json files...
Writing tileset_3_5_4.json...
External tileset.json files: 27
Writing root tileset.json...

Time: 0h 0m 22s 916ms
Program finished 2024-05-30T19:56:46.

I've tried to visualize the tiles in Cesium ion, and I do not see any polygon.

@bertt
Copy link
Member

bertt commented May 30, 2024

looks alright like this, should be able to visualize the results in CesiumJS/Cesium for Unity. I'll take a look later

@bertt
Copy link
Member

bertt commented May 30, 2024

tried it, works alright for me... One difference I see it's:

Tiles created: 60
External tileset.json files: 8

versus:

Tiles created: 238
External tileset.json files: 27

Do you see something in CesiumJS when doing step 'Visualize in CesiumJS'?

What version of tessalate_building did you use? (should be 0.3.0)

What's the used database?

select version()

select postgis_full_version()

@Mitko88
Copy link
Author

Mitko88 commented May 30, 2024

I've figured out what is the issue. I did not configure the server properly to call the tileset.json. I've visualized the tiles properly in Unity now.

Thank you for the help!

@Mitko88 Mitko88 closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants