Support embedded texture data for glTF + alpha 36/286936/22
authorseungho baek <sbsh.baek@samsung.com>
Tue, 17 Jan 2023 06:12:12 +0000 (15:12 +0900)
committerseungho baek <sbsh.baek@samsung.com>
Sun, 29 Jan 2023 07:43:12 +0000 (16:43 +0900)
commit06cd3bf8b892c26f369aae331b16fba1547ed823
tree9bbad6004962bd75116e6c1ece20e39dfb7f6ef0
parentdb9403159cb4fe15ba839ea7162eba35c9d832c3
Support embedded texture data for glTF + alpha

 - Supports embedded gltf
   - Supports data: iri for image.uri
   - Supports data: iri for buffer.uri
   - Supports image.bufferView.
 - Additional Fix
   - Changes default value of Sampler.wrapS, wrapT to Refeat
   - Adds function to decode base64 to std::vector<uint_8>
   - Fixes base64 decoder to do not cut end part.

Change-Id: I413d1f1b48a8a4234ea4c9faf3b3309536e5a53f
Signed-off-by: seungho baek <sbsh.baek@samsung.com>
18 files changed:
automated-tests/resources/AlphaBlendModeTest.gltf [new file with mode: 0644]
automated-tests/resources/CesiumMan_e.gltf [new file with mode: 0644]
automated-tests/resources/EnvironmentTest_b.gltf [new file with mode: 0644]
automated-tests/resources/EnvironmentTest_binary_b.bin [new file with mode: 0644]
automated-tests/src/dali-scene3d/utc-Dali-Gltf2Loader.cpp
dali-scene3d/internal/loader/gltf2-asset.h
dali-scene3d/public-api/file.list
dali-scene3d/public-api/loader/buffer-definition.cpp [new file with mode: 0644]
dali-scene3d/public-api/loader/buffer-definition.h [new file with mode: 0644]
dali-scene3d/public-api/loader/gltf2-loader.cpp
dali-scene3d/public-api/loader/material-definition.cpp
dali-scene3d/public-api/loader/material-definition.h
dali-scene3d/public-api/loader/mesh-definition.cpp
dali-scene3d/public-api/loader/mesh-definition.h
dali-scene3d/public-api/loader/resource-bundle.cpp
dali-scene3d/public-api/loader/resource-bundle.h
dali-toolkit/devel-api/builder/base64-encoding.cpp
dali-toolkit/devel-api/builder/base64-encoding.h