Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.


The 2.0-cesium branch is used by Cesium to upgrade 1.0 models to 2.0. The upgraded models use the KHR_technique_webgl extension, which is supported by Cesium but hardly any other engines. PBR is not supported in this branch.

The 2.0 branch is a cleanup of glTF-pipeline that supports 1.0-2.0 conversion, conversions between glTF and glb, and other basic tasks. The other pipeline stages will eventually be moved over here once the core is solid.

One confusing aspect of the project right now is a subset of the files are used within Cesium for upgrading 1.0 models. Cesium includes gltf-pipeline which includes Cesium. Our early attempts at using browserify didn’t work, so we instead added a gulp task called build-cesium which saves those gltf-pipeline files with AMD syntax to be packaged directly with Cesium. Additionally those files do not use the Node.js API or any third party packages (except Cesium). If anyone can think of an alternative to this approach that would be very helpful.

Another side effect of including gltf-pipeline in Cesium is we try to make those files as performant as possible. We try to avoid any large buffer copies, and because of that glTF 1.0 models that are upgraded to 2.0 are not always byte aligned correctly. This is best for Cesium but not best for gltf-pipeline, so there needs to be some compromise here.

To do:

  • Add support for KHR_techniques_webgl and EXT_Blend when updating 1.0 models to 2.0
  • Cesium integration
    • Move processModelMaterialsCommon and processPbrMetallicRoughness from the 2.0-cesium branch out of gltf-pipeline and into Cesium alone.
    • Test that packaging for Cesium still works on the 2.0 branch as it did on the 2.0-cesium branch. Will need to re-add the build-cesium gulp task used by 2.0-cesium but with a different list of files to package. parseGlb, addPipelineExtras, updateVersion, addDefaults, and any helper files used by them need to be packaged. When loading a gltf model Cesium should call addPipelineExtras, updateVersion, addDefaults in that order. All the packaged files must be pure JS without any node-specific code.
    • Fix
  • Look at all pull requests that have gone into master and 2.0-cesium lately and see if any are applicable to the 2.0 branch.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:21 (12 by maintainers)

github_iconTop GitHub Comments

lilleysecommented, Aug 15, 2018

2.0 is now merged into master and published to npm!

donmccurdycommented, Aug 5, 2018

Would it be possible to (a) put a prominent note in the master branch README about the 2.0 branch, (b) merge 2.0 to master, and/or © publish the 2.0 branch to npm? Its discoverability is currently pretty low, given that most visitors to this repo are likely using glTF 2.0 at this point.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Roadmap 2.0
Roadmap 2.0 is a mobile application designed to deliver a positive psychology based intervention program. Eight engaging activities aim to enhance positive ...
Read more >
Roadmap 2.0 - Apps on Google Play
Roadmap 2.0 is a mobile application for delivering a positive psychological intervention program for caregivers and patients undergoing a ...
Read more >
Ethereum upgrades (formerly 'Eth2')
The Ethereum roadmap involves interconnected protocol upgrades that will make the network more scalable, more secure, and more sustainable.
Read more >
Bored Ape Yacht Club on Twitter: "Roadmap 2.0 ...
Conversation. Business profile picture · Bored Ape Yacht Club · @BoredApeYC. Roadmap 2.0 ☠️ ⛵️. Image. 7:10 PM · Sep 21, 2021....
Read more >
The Roadmap to Serenity aka Ethereum 2.0 Upgrades
About the features and timeline for upgrading the Ethereum blockchain including Proof of Stake update, Shard Chains, a new Virtual Machine and plans...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found