Implementing glTF 1.0 parser

Desktop / Chromium - acondor [google.com] - 24 March 2017 16:57 EDT

- Documentation at https://github.com/KhronosGroup/glTF/tree/2.0/specification/1.0
- Elements which we will not be using are excluded, such as materials, textures, shaders, skins. We might want to use them later when glTF 2.0 is released. For now, we plan to handle this natively.
- Unittests are included.
- Small refactoring of the rendering classes inheritance to account for non-quad objects, which will be used later for rendering the controller.
- Minor fixes on code I encountered.

BUG=705006

Review-Url: https://codereview.chromium.org/2757213003 Cr-Commit-Position: refs/heads/master@{#459547}

a76f0b5 Implementing glTF 1.0 parser
chrome/browser/android/vr_shell/BUILD.gn | 11 +
chrome/browser/android/vr_shell/gltf_asset.cc | 109 ++++++++
chrome/browser/android/vr_shell/gltf_asset.h | 125 ++++++++++
chrome/browser/android/vr_shell/gltf_parser.cc | 274 +++++++++++++++++++++
chrome/browser/android/vr_shell/gltf_parser.h | 57 +++++
.../android/vr_shell/gltf_parser_unittest.cc | 95 +++++++
.../android/vr_shell/test/data/sample_inline.gltf | 56 +++++
chrome/browser/android/vr_shell/test/paths.cc | 48 ++++
chrome/browser/android/vr_shell/test/paths.h | 25 ++
chrome/browser/android/vr_shell/vr_math.cc | 4 +-
chrome/browser/android/vr_shell/vr_shell_gl.cc | 3 +-
.../browser/android/vr_shell/vr_shell_renderer.cc | 40 ++-
.../browser/android/vr_shell/vr_shell_renderer.h | 24 +-
13 files changed, 839 insertions(+), 32 deletions(-)

Upstream: git.chromium.org


  • Share