-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Conversation
@sbtron for the COLLADA files perhaps try converting the big .tga files to .png or .jpg, then try the drag and drop converter here: http://cesiumjs.org/convertmodel.html For general troubleshooting, check out this section from the Cesium tutorial: https://cesiumjs.org/tutorials/3D-Models-Tutorial/#converting-collada-to-gltf |
Some progress with models rendering in Cesium, Xeo and glBoost. but not in three.js/babylonJS using the gltf-test tools: might be engine specific issues but still looking into it. |
Have you tested the glTF models with the validator (just a heads up it validates glTF 1.1, not 1.0): https://github.com/KhronosGroup/glTF-Validator Also, I tried some examples like http://gltf-test.azurewebsites.net/examples/cesium/index.html?model=BarramundiFish&scale=0.05&type=glTF-Binary but the console reports:
|
will try the validator. Are any of the tools generating 1.1 yet? Haven't generated gltf binaries yet. The collada2gltf command line doesn't seem to have that option? The cesium website does seem to allow that are they different codebases? Incidentally I ended up using assimp to go from FBX to Collada and that seemed like a better conversion than the autodesk fbx to collada converter I was using earlier. Assimp also has a glTF exporter but seems to be generating an older version. |
If I understood this correctly: The online converter uses COLLADA2GLTF to do the actual conversion from DAE to glTF, but then uses https://github.com/AnalyticalGraphicsInc/gltf-pipeline as some sort of "post-processing" step to convert the resulting glTF into binary glTF. |
Was able to generate those glbs using the cesium website. Is there a pointer to how the common material models were created :) |
Not that I am aware of, but gltf-pipeline will be able to convert 1.0 to 1.1 very soon: CesiumGS/gltf-pipeline#191 There is also work towards upgrading COLLADA2GLTF to 1.1, but the pull request is not ready yet: KhronosGroup/COLLADA2GLTF@master...lasalvavida:converter1.1 Both of these are by @lasalvavida.
Which models in particular? |
Most models seem to have a Materials common version too which is why I was wondering if it was needed. e.g. https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/1.0/CesiumMilkTruck/glTF-MaterialsCommon https://github.com/KhronosGroup/glTF-Sample-Models/tree/master/1.0/2CylinderEngine/glTF-MaterialsCommon |
Still todo: Fish glb, screenshot and readme
@pjcozzi lets get these three in while I work on fixing others |
@sbtron I think that the gltf binary model, which was probably manually modified, is broken. It seems that 0x20 should be 0x00. See: |
Indeed, the length indicates 537164250 bytes... Since the It seemed to work properly in https://github.com/sbtron/glTF-Sample-Models/blob/4f97c9b9484ca4b9f1f22707d3e7149cdfc9ff13/1.0/SmilingFace/glTF-Binary/SmilingFace.glb , by the way |
Thanks I was manually tweaking those values to test things out. Updated now by regenerating the whole glb. |
@sbtron I confirmed that Avocado.glb and BarramundiFish.glb have been modified. |
The problem was with the original collada files. Fixed transparency and regenerated all models.
I tested the loading of 3 models with each latest WebGL library and confirmed that they are displayed correctly. |
The .GLB versions of these models all seem to have an invalid field:
Maybe these could be removed. |
FYI working on adding new sample models.
Have FBX and Collada versions now but need to generate the glTF versions.
Starting with 3 models for now but many more in queue once we get the conversion process up and going.
Please don't merge yet.