3dcitydb / 3dcitydb-web-map

Cesium-based 3D viewer and JavaScript API for the 3D City Database
Apache License 2.0
359 stars 122 forks source link

Unable to get gltf models displayed on map #31

Closed BS666 closed 5 years ago

BS666 commented 6 years ago

Hi, I am trying to get the LoD2 example data of https://geobroker.geobasis-bb.de/gbss.php?MODE=GetProductInformation&PRODUCTID=0414a37a-a749-4ee6-9f59-a41226919c58 in web-map working - but unfortunately l can only see the rectangle of bounding box border. Is this a bug/misconfiguration /corrupt material? I'm lost on that one. Works fine with Google Earth Pro.

My Settings are based on default except: KML/COLLADA/glTFExport:General:Show bounding box borders [X] KML/COLLADA/glTFExport:General:Write JSON file [X] General:Logging:Console:Log level "DEBUG"

I did following:

Result:

Son-HNguyen commented 6 years ago

Hi @BS666

could you provide us the glTF you exported?

Best, Son

BS666 commented 6 years ago

Hi @Son-HNguyen

3dcitydb-web-map-test.tar.gz

thx in advance

Son-HNguyen commented 6 years ago

Hi @BS666

your glTF files seem to produce incorrect results on the web map, but I could still see the buildings (not only the bouding box).

I used the CityGML file in the link you provided and exported again and this is what I have on my computer: image

I guess the problem was somewhere while you were exporting the building. Follow our tutorial here and you should be able to get the same results.

Best, Son

CristinaIT commented 5 years ago

Hello, I have the same kind of problem with a LOD3 CityGML file. When I try to display my KML model in the web-map-client I can see only the blue bounding box. The file is defined with EPSG:32632 and works fine on google earth. Any suggestion?

You will find the exported file here attached.

Thank you in advance, Cristina.

cattura

UNIPV.zip

Son-HNguyen commented 5 years ago

What errors were shown in the developer mode in your browser?

I was able to visualize your provided data set without any problems (see picture). image Make sure the KML/COLLADA/glTF files and the web client are hosted on the same domain or use a proxy server to start the web client, otherwise you'd probably run into CORS problems (see #9, #26, #33, #39).

CristinaIT commented 5 years ago

Thank you for your answer. From the developer console in the browser it seems that it fails to load the Tails even though they are in the same directory where the json file is. I have already checked the CORS related problem and I should have solved it with reference to #39. I will keep trying!

Son-HNguyen commented 5 years ago

Closed. Feel free to reopen if you still have any issues.