f3d-app / f3d

Fast and minimalist 3D viewer.
https://f3d.app
BSD 3-Clause "New" or "Revised" License
2.57k stars 182 forks source link

CityGML can't be read #251

Open runxel opened 2 years ago

runxel commented 2 years ago

Describe the bug An official CityGML file can't be read, saying the coloring values are wrong. They probably aren't, since the file is from the government. Even if so, just have some own color applied, instead of bailing out?

To Reproduce Steps to reproduce the behavior:

  1. Download a CityGML file from your municipality. (e.g. Fis-Broker of the city of Berlin)
  2. Try to open that with F3D via drag-and-drop
  3. It will fail, see log content below.

Expected behavior – see above –

System Information:

F3D Information Paste the content of f3d --version: v1.2.1 (You have a bug there, this command will not work in Windows, the ver info window will selfclose immediately after spawning)

Additional context Log content:

File 'D:/[redacted].gml' cannot be read.
Invalid coloring values
mwestphal commented 2 years ago

Can you share the file in question ?

mwestphal commented 2 years ago

Yeah, the window close will be fixed in next version

runxel commented 2 years ago

Can you share the file in question ?

Should be this one.

mwestphal commented 2 years ago

There seems to be some strangeness indeed. This is most likely a VTK bug though. Investigation is needed.

mwestphal commented 5 months ago
========== Loading 3D file ==========
Loading 3D geometry: /home/glow/tmp/city.gml

Warning: In vtkCityGMLReader.cxx, line 1107
vtkCityGMLReader (0x58df3a8c0e90): There is no data on LOD 3. Try a different LOD.

ERROR: In vtkDemandDrivenPipeline.cxx, line 677
vtkCompositeDataPipeline (0x58df3a927450): Input port 0 of algorithm vtkDataSetSurfaceFilter (0x58df3a10dac0) has 0 connections but is not optional.

Warning: In vtkDataObject.cxx, line 488
vtkPolyData (0x58df3a925030): Attempted to ShallowCopy from null.