KhronosGroup / COLLADA2GLTF

COLLADA to glTF converter
Other
532 stars 156 forks source link

Export settings for CityEngine #275

Open tramka opened 3 years ago

tramka commented 3 years ago

Hi guys,

I am trying to visualize 3d projects in GIS systems. I have got COLLADA files which I need to remake to GLTF files, open them in CityEngine and publish them on Web. After some time spending with exploration, I realised that the best way is to create GLTF files.

So I decided to use COLLADA2GLTF:

COLLADA2GLTF-v2.1.5-windows-Release-Win32>COLLADA2GLTF-bin.exe -i Z:\Khronos\JS\201216_Nadr_JS_SKP.dae -o Z:\Khronos\JS\EXPORT\js_nadrazi.gltf -v 2.0 -b true

In glTF Validator, file is correct without any errors. I have got few messages including: "Image has non-power-of-two dimensions: 530x530." (7 times) and ACCESSOR_INDEX_TRIANGLE_DEGENERATE (8 times)

When I try to open the file in CE, the result is not correct. image

The correct result should look like this (I tried different converter, however I would appreciate if I could use COLLADA2GLTF - I have multiple reasons): nadrazi_OK

I am not sure if the problem is with the tool, the export settings or in CityEngine. Do you have any ideas where could be the problem?

Thanks.