2 * Copyright (c) 2022 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 // Enable debug log for test coverage
19 #define DEBUG_ENABLED 1
21 #include <dali-scene3d/public-api/loader/gltf2-loader.h>
22 #include <dali-scene3d/public-api/loader/load-result.h>
23 #include <dali-scene3d/public-api/loader/resource-bundle.h>
24 #include <dali-scene3d/public-api/loader/scene-definition.h>
25 #include <dali-scene3d/public-api/loader/shader-definition-factory.h>
26 #include <dali-test-suite-utils.h>
27 #include <string_view>
30 using namespace Dali::Scene3D::Loader;
32 #define DALI_TEST_THROW(expression, exception, predicate) \
34 bool daliTestThrowSuccess__ = false; \
41 printf("No exception was thrown.\n"); \
43 catch(std::decay<exception>::type & ex) \
45 daliTestThrowSuccess__ = predicate(ex); \
49 printf("Wrong type of exception thrown.\n"); \
51 DALI_TEST_CHECK(daliTestThrowSuccess__); \
58 ResourceBundle::PathProvider pathProvider = [](ResourceType::Value type) {
59 return TEST_RESOURCE_DIR "/";
62 ResourceBundle resources;
63 SceneDefinition scene;
64 SceneMetadata metaData;
66 std::vector<AnimationDefinition> animations;
67 std::vector<AnimationGroupDefinition> animationGroups;
68 std::vector<CameraParameters> cameras;
69 std::vector<LightParameters> lights;
71 LoadResult loadResult{
81 struct ExceptionMessageStartsWith
83 const std::string_view expected;
85 bool operator()(const std::runtime_error& e)
87 const bool success = (0 == strncmp(e.what(), expected.data(), expected.size()));
90 printf("Expected: %s, got: %s.\n", expected.data(), e.what());
98 int UtcDaliGltfLoaderFailedToLoad(void)
102 ShaderDefinitionFactory sdf;
103 sdf.SetResources(ctx.resources);
105 DALI_TEST_THROW(LoadGltfScene("non-existent.gltf", sdf, ctx.loadResult),
107 ExceptionMessageStartsWith{"Failed to load"});
109 DALI_TEST_EQUAL(0, ctx.scene.GetRoots().size());
110 DALI_TEST_EQUAL(0, ctx.scene.GetNodeCount());
112 DALI_TEST_EQUAL(0, ctx.resources.mEnvironmentMaps.size());
113 DALI_TEST_EQUAL(0, ctx.resources.mMaterials.size());
114 DALI_TEST_EQUAL(0, ctx.resources.mMeshes.size());
115 DALI_TEST_EQUAL(0, ctx.resources.mShaders.size());
116 DALI_TEST_EQUAL(0, ctx.resources.mSkeletons.size());
118 DALI_TEST_EQUAL(0, ctx.cameras.size());
119 DALI_TEST_EQUAL(0, ctx.lights.size());
120 DALI_TEST_EQUAL(0, ctx.animations.size());
121 DALI_TEST_EQUAL(0, ctx.animationGroups.size());
126 int UtcDaliGltfLoaderFailedToParse(void)
130 ShaderDefinitionFactory sdf;
131 sdf.SetResources(ctx.resources);
133 DALI_TEST_THROW(LoadGltfScene(TEST_RESOURCE_DIR "/invalid.gltf", sdf, ctx.loadResult),
135 ExceptionMessageStartsWith{"Failed to parse"});
137 DALI_TEST_EQUAL(0, ctx.scene.GetRoots().size());
138 DALI_TEST_EQUAL(0, ctx.scene.GetNodeCount());
140 DALI_TEST_EQUAL(0, ctx.resources.mEnvironmentMaps.size());
141 DALI_TEST_EQUAL(0, ctx.resources.mMaterials.size());
142 DALI_TEST_EQUAL(0, ctx.resources.mMeshes.size());
143 DALI_TEST_EQUAL(0, ctx.resources.mShaders.size());
144 DALI_TEST_EQUAL(0, ctx.resources.mSkeletons.size());
146 DALI_TEST_EQUAL(0, ctx.cameras.size());
147 DALI_TEST_EQUAL(0, ctx.lights.size());
148 DALI_TEST_EQUAL(0, ctx.animations.size());
149 DALI_TEST_EQUAL(0, ctx.animationGroups.size());
154 int UtcDaliGltfLoaderSuccess1(void)
158 LoadSceneMetadata(TEST_RESOURCE_DIR "/AnimatedCube.metadata", ctx.metaData);
160 std::unordered_map<std::string, ImageMetadata> imageMetadataGroundTruth;
161 imageMetadataGroundTruth["AnimatedCube_BaseColor.png"] = ImageMetadata{ImageDimensions(256, 256), Dali::SamplingMode::BOX_THEN_NEAREST};
162 imageMetadataGroundTruth["AnimatedCube_MetallicRoughness.png"] = ImageMetadata{ImageDimensions(256, 256), Dali::SamplingMode::NEAREST};
164 auto metaData = ctx.metaData.mImageMetadata.begin();
165 for(auto& groundTruth : imageMetadataGroundTruth)
167 DALI_TEST_EQUAL(groundTruth.first, metaData->first);
168 DALI_TEST_EQUAL(groundTruth.second.mMinSize, metaData->second.mMinSize);
169 DALI_TEST_EQUAL(groundTruth.second.mSamplingMode, metaData->second.mSamplingMode);
173 ShaderDefinitionFactory sdf;
174 sdf.SetResources(ctx.resources);
176 LoadGltfScene(TEST_RESOURCE_DIR "/AnimatedCube.gltf", sdf, ctx.loadResult);
178 DALI_TEST_EQUAL(1u, ctx.scene.GetRoots().size());
179 DALI_TEST_EQUAL(6u, ctx.scene.GetNodeCount());
181 // Default envmap is used
182 DALI_TEST_EQUAL(1u, ctx.resources.mEnvironmentMaps.size());
186 Customization::Choices choices;
187 for(auto iRoot : ctx.scene.GetRoots())
189 auto resourceRefs = ctx.resources.CreateRefCounter();
190 ctx.scene.CountResourceRefs(iRoot, choices, resourceRefs);
191 ctx.resources.CountEnvironmentReferences(resourceRefs);
192 ctx.resources.LoadResources(resourceRefs, ctx.pathProvider);
195 auto& materials = ctx.resources.mMaterials;
196 DALI_TEST_EQUAL(2u, materials.size());
197 const MaterialDefinition materialGroundTruth[]{
198 {MaterialDefinition::ALBEDO | MaterialDefinition::EMISSIVE | MaterialDefinition::OCCLUSION |
199 MaterialDefinition::NORMAL | MaterialDefinition::SPECULAR | MaterialDefinition::SPECULAR_COLOR |
200 (0x80 << MaterialDefinition::ALPHA_CUTOFF_SHIFT),
205 Vector4(1.000, 0.766, 0.336, 1.0),
208 Vector3(0.2, 0.1, 0.0),
219 {MaterialDefinition::ALBEDO,
220 {"AnimatedCube_BaseColor.png",
221 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
222 ImageDimensions(256, 256),
223 SamplingMode::BOX_THEN_NEAREST}},
224 {MaterialDefinition::NORMAL,
225 {"AnimatedCube_BaseColor.png",
226 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
227 ImageDimensions(256, 256),
228 SamplingMode::BOX_THEN_NEAREST}},
229 {MaterialDefinition::OCCLUSION,
230 {"AnimatedCube_BaseColor.png",
231 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
232 ImageDimensions(256, 256),
233 SamplingMode::BOX_THEN_NEAREST}},
234 {MaterialDefinition::EMISSIVE,
235 {"AnimatedCube_BaseColor.png",
236 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
237 ImageDimensions(256, 256),
238 SamplingMode::BOX_THEN_NEAREST}},
239 {MaterialDefinition::SPECULAR,
240 {"AnimatedCube_BaseColor.png",
241 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
242 ImageDimensions(256, 256),
243 SamplingMode::BOX_THEN_NEAREST}},
244 {MaterialDefinition::SPECULAR_COLOR,
245 {"AnimatedCube_BaseColor.png",
246 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
247 ImageDimensions(256, 256),
248 SamplingMode::BOX_THEN_NEAREST}},
250 {MaterialDefinition::ALBEDO | MaterialDefinition::METALLIC | MaterialDefinition::ROUGHNESS |
251 MaterialDefinition::EMISSIVE | MaterialDefinition::OCCLUSION |
252 MaterialDefinition::NORMAL | MaterialDefinition::GLTF_CHANNELS,
257 Vector4(1.000, 0.766, 0.336, 1.0),
260 Vector3(0.2, 0.1, 0.0),
271 {MaterialDefinition::ALBEDO,
272 {"AnimatedCube_BaseColor.png",
273 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
274 ImageDimensions(256, 256),
275 SamplingMode::BOX_THEN_NEAREST}},
276 {MaterialDefinition::METALLIC | MaterialDefinition::ROUGHNESS | MaterialDefinition::GLTF_CHANNELS,
277 {"AnimatedCube_MetallicRoughness.png",
278 SamplerFlags::Encode(FilterMode::NEAREST_MIPMAP_LINEAR, FilterMode::NEAREST, WrapMode::CLAMP_TO_EDGE, WrapMode::MIRRORED_REPEAT),
279 ImageDimensions(256, 256),
280 SamplingMode::NEAREST}},
281 {MaterialDefinition::NORMAL,
282 {"AnimatedCube_BaseColor.png",
283 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
284 ImageDimensions(256, 256),
285 SamplingMode::BOX_THEN_NEAREST}},
286 {MaterialDefinition::OCCLUSION,
287 {"AnimatedCube_BaseColor.png",
288 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
289 ImageDimensions(256, 256),
290 SamplingMode::BOX_THEN_NEAREST}},
291 {MaterialDefinition::EMISSIVE,
292 {"AnimatedCube_BaseColor.png",
293 SamplerFlags::Encode(FilterMode::LINEAR_MIPMAP_LINEAR, FilterMode::LINEAR, WrapMode::CLAMP_TO_EDGE, WrapMode::REPEAT),
294 ImageDimensions(256, 256),
295 SamplingMode::BOX_THEN_NEAREST}},
299 auto iMaterial = materials.begin();
300 auto iMetadata = ctx.metaData.mImageMetadata.begin();
301 for(auto& m : materialGroundTruth)
303 printf("material %ld\n", iMaterial - materials.begin());
304 auto& md = iMaterial->first;
305 DALI_TEST_EQUAL(md.mFlags, m.mFlags);
306 DALI_TEST_EQUAL(md.mEnvironmentIdx, m.mEnvironmentIdx);
307 DALI_TEST_EQUAL(md.mColor, m.mColor);
308 DALI_TEST_EQUAL(md.mMetallic, m.mMetallic);
309 DALI_TEST_EQUAL(md.mRoughness, m.mRoughness);
310 DALI_TEST_EQUAL(md.mBaseColorFactor, m.mBaseColorFactor);
311 DALI_TEST_EQUAL(md.mNormalScale, m.mNormalScale);
312 DALI_TEST_EQUAL(md.mOcclusionStrength, m.mOcclusionStrength);
313 DALI_TEST_EQUAL(md.mEmissiveFactor, m.mEmissiveFactor);
314 DALI_TEST_EQUAL(md.mDielectricSpecular, m.mDielectricSpecular);
315 DALI_TEST_EQUAL(md.mSpecularFactor, m.mSpecularFactor);
316 DALI_TEST_EQUAL(md.mSpecularColorFactor, m.mSpecularColorFactor);
317 DALI_TEST_EQUAL(md.mNeedAlbedoTexture, m.mNeedAlbedoTexture);
318 DALI_TEST_EQUAL(md.mNeedMetallicRoughnessTexture, m.mNeedMetallicRoughnessTexture);
319 DALI_TEST_EQUAL(md.mNeedNormalTexture, m.mNeedNormalTexture);
320 DALI_TEST_EQUAL(md.mIsOpaque, m.mIsOpaque);
321 DALI_TEST_EQUAL(md.mIsMask, m.mIsMask);
323 DALI_TEST_EQUAL(md.mTextureStages.size(), m.mTextureStages.size());
324 auto iTexture = md.mTextureStages.begin();
325 for(auto& ts : m.mTextureStages)
327 printf("texture %ld\n", iTexture - md.mTextureStages.begin());
328 DALI_TEST_EQUAL(iTexture->mSemantic, ts.mSemantic);
329 DALI_TEST_EQUAL(iTexture->mTexture.mImageUri, ts.mTexture.mImageUri);
330 DALI_TEST_EQUAL(uint32_t(iTexture->mTexture.mSamplerFlags), uint32_t(ts.mTexture.mSamplerFlags)); // don't interpret it as a character
331 DALI_TEST_EQUAL(iTexture->mTexture.mMinImageDimensions, ts.mTexture.mMinImageDimensions);
332 DALI_TEST_EQUAL(iTexture->mTexture.mSamplingMode, ts.mTexture.mSamplingMode);
340 auto& meshes = ctx.resources.mMeshes;
341 DALI_TEST_EQUAL(2u, meshes.size());
343 using Blob = MeshDefinition::Blob;
344 using Accessor = MeshDefinition::Accessor;
345 const MeshDefinition meshGroundTruth[]{
350 Accessor{Blob{0, 0}, {}},
351 Accessor{Blob{0, 0}, {}},
352 Accessor{Blob{0, 0}, {}},
353 Accessor{Blob{0, 0}, {}},
354 Accessor{Blob{0, 0}, {}},
355 Accessor{Blob{0, 0}, {}},
361 Accessor{Blob{0, 0}, {}},
362 Accessor{Blob{0, 0}, {}},
363 Accessor{Blob{0, 0}, {}},
364 Accessor{Blob{0, 0}, {}},
365 Accessor{Blob{0, 0}, {}},
366 Accessor{Blob{0, 0}, {}},
370 auto iMesh = meshes.begin();
371 for(auto& m : meshGroundTruth)
373 printf("mesh %ld\n", iMesh - meshes.begin());
375 auto& md = iMesh->first;
376 DALI_TEST_EQUAL(md.mFlags, m.mFlags);
377 DALI_TEST_EQUAL(md.mPrimitiveType, m.mPrimitiveType);
379 &MeshDefinition::mIndices,
380 &MeshDefinition::mPositions,
381 &MeshDefinition::mNormals,
382 &MeshDefinition::mTexCoords,
383 &MeshDefinition::mColors,
384 &MeshDefinition::mTangents,
385 &MeshDefinition::mJoints0,
386 &MeshDefinition::mWeights0})
388 DALI_TEST_EQUAL((md.*mp).IsDefined(), (m.*mp).IsDefined());
389 DALI_TEST_EQUAL((md.*mp).mBlob.IsDefined(), (m.*mp).mBlob.IsDefined());
392 DALI_TEST_EQUAL(md.mBlendShapeHeader.IsDefined(), m.mBlendShapeHeader.IsDefined());
397 DALI_TEST_EQUAL(2u, ctx.resources.mShaders.size());
398 DALI_TEST_EQUAL(0u, ctx.resources.mSkeletons.size());
400 DALI_TEST_EQUAL(3u, ctx.cameras.size());
401 DALI_TEST_EQUAL(0u, ctx.lights.size());
402 DALI_TEST_EQUAL(1u, ctx.animations.size());
403 DALI_TEST_EQUAL(0u, ctx.animationGroups.size());
408 int UtcDaliGltfLoaderSuccess2(void)
411 ShaderDefinitionFactory sdf;
412 sdf.SetResources(ctx.resources);
414 LoadGltfScene(TEST_RESOURCE_DIR "/AnimatedCubeStride.gltf", sdf, ctx.loadResult);
416 DALI_TEST_EQUAL(1u, ctx.scene.GetRoots().size());
417 DALI_TEST_EQUAL(1u, ctx.scene.GetNodeCount());
421 Customization::Choices choices;
422 for(auto iRoot : ctx.scene.GetRoots())
424 auto resourceRefs = ctx.resources.CreateRefCounter();
425 ctx.scene.CountResourceRefs(iRoot, choices, resourceRefs);
426 ctx.resources.LoadResources(resourceRefs, ctx.pathProvider);
429 DALI_TEST_EQUAL(true, ctx.resources.mMeshes[0u].first.mPositions.IsDefined());
430 DALI_TEST_EQUAL(432, ctx.resources.mMeshes[0u].first.mPositions.mBlob.mLength);
435 int UtcDaliGltfLoaderSuccessShort(void)
439 const std::string resourcePath = TEST_RESOURCE_DIR "/";
440 auto pathProvider = [resourcePath](ResourceType::Value) {
444 Customization::Choices choices;
445 for(auto modelName : {
448 "AnimatedMorphSphere",
455 "MorphPrimitivesTest",
457 "SimpleSparseAccessor",
463 ShaderDefinitionFactory sdf;
465 auto& resources = ctx.resources;
466 resources.mEnvironmentMaps.push_back({});
468 sdf.SetResources(resources);
470 printf("%s\n", modelName);
471 LoadGltfScene(resourcePath + modelName + ".gltf", sdf, ctx.loadResult);
472 DALI_TEST_CHECK(ctx.scene.GetNodeCount() > 0);
474 auto& scene = ctx.scene;
475 for(auto iRoot : scene.GetRoots())
477 struct Visitor : NodeDefinition::IVisitor
479 struct ResourceReceiver : IResourceReceiver
481 std::vector<bool> mCounts;
483 void Register(ResourceType::Value type, Index id) override
485 if(type == ResourceType::Mesh)
492 void Start(NodeDefinition& n) override
494 for(auto& renderable : n.mRenderables)
496 renderable->RegisterResources(receiver);
500 void Finish(NodeDefinition& n) override
504 visitor.receiver.mCounts.resize(resources.mMeshes.size(), false);
506 scene.Visit(iRoot, choices, visitor);
507 for(uint32_t i0 = 0, i1 = resources.mMeshes.size(); i0 < i1; ++i0)
509 if(visitor.receiver.mCounts[i0])
511 auto raw = resources.mMeshes[i0].first.LoadRaw(resourcePath);
512 DALI_TEST_CHECK(!raw.mAttribs.empty());
514 resources.mMeshes[i0].second = resources.mMeshes[i0].first.Load(std::move(raw));
515 DALI_TEST_CHECK(resources.mMeshes[i0].second.geometry);
524 int UtcDaliGltfLoaderMRendererTest(void)
528 ShaderDefinitionFactory sdf;
529 sdf.SetResources(ctx.resources);
530 auto& resources = ctx.resources;
532 LoadGltfScene(TEST_RESOURCE_DIR "/MRendererTest.gltf", sdf, ctx.loadResult);
534 auto& scene = ctx.scene;
535 auto& roots = scene.GetRoots();
536 DALI_TEST_EQUAL(roots.size(), 1u);
537 DALI_TEST_EQUAL(scene.GetNode(roots[0])->mName, "RootNode");
538 DALI_TEST_EQUAL(scene.GetNode(roots[0])->mScale, Vector3(1.0f, 1.0f, 1.0f));
540 DALI_TEST_EQUAL(scene.GetNodeCount(), 1u);
542 ViewProjection viewProjection;
546 NodeDefinition::CreateParams nodeParams{
551 Customization::Choices choices;
555 Actor root = Actor::New();
556 SetActorCentered(root);
557 for(auto iRoot : roots)
559 auto resourceRefs = resources.CreateRefCounter();
560 scene.CountResourceRefs(iRoot, choices, resourceRefs);
561 resources.CountEnvironmentReferences(resourceRefs);
562 resources.LoadResources(resourceRefs, ctx.pathProvider);
563 if(auto actor = scene.CreateNodes(iRoot, choices, nodeParams))
565 scene.ConfigureSkeletonJoints(iRoot, resources.mSkeletons, actor);
566 scene.ConfigureSkinningShaders(resources, actor, std::move(nodeParams.mSkinnables));
567 scene.ApplyConstraints(actor, std::move(nodeParams.mConstrainables));
572 DALI_TEST_EQUAL(root.GetChildCount(), 1u);
573 Actor child = root.GetChildAt(0);
575 DALI_TEST_EQUAL(child.GetProperty(Actor::Property::NAME).Get<std::string>(), "RootNode");
576 DALI_TEST_EQUAL(child.GetProperty(Actor::Property::SCALE).Get<Vector3>(), Vector3(1.0f, 1.0f, 1.0f));
577 DALI_TEST_EQUAL(child.GetRendererCount(), 1u);
578 DALI_TEST_EQUAL(child.GetRendererAt(0).GetTextures().GetTextureCount(), 4u);
580 DALI_TEST_EQUAL(child.GetRendererCount(), 1u);
581 DALI_TEST_EQUAL(child.GetRendererAt(0u).GetProperty<decltype(BlendMode::ON)>(Renderer::Property::BLEND_MODE), BlendMode::ON);
587 int UtcDaliGltfLoaderAnimationLoadingTest(void)
591 ShaderDefinitionFactory sdf;
592 sdf.SetResources(ctx.resources);
593 auto& resources = ctx.resources;
595 LoadGltfScene(TEST_RESOURCE_DIR "/BoxAnimated.gltf", sdf, ctx.loadResult);
597 auto& scene = ctx.scene;
598 auto& roots = scene.GetRoots();
599 DALI_TEST_EQUAL(roots.size(), 1u);
601 ViewProjection viewProjection;
605 NodeDefinition::CreateParams nodeParams{
610 Customization::Choices choices;
614 Actor root = Actor::New();
615 SetActorCentered(root);
616 for(auto iRoot : roots)
618 auto resourceRefs = resources.CreateRefCounter();
619 scene.CountResourceRefs(iRoot, choices, resourceRefs);
620 resources.CountEnvironmentReferences(resourceRefs);
621 resources.LoadResources(resourceRefs, ctx.pathProvider);
622 if(auto actor = scene.CreateNodes(iRoot, choices, nodeParams))
624 scene.ConfigureSkeletonJoints(iRoot, resources.mSkeletons, actor);
625 scene.ConfigureSkinningShaders(resources, actor, std::move(nodeParams.mSkinnables));
626 scene.ApplyConstraints(actor, std::move(nodeParams.mConstrainables));
631 DALI_TEST_EQUAL(ctx.loadResult.mAnimationDefinitions.size(), 1u);
632 DALI_TEST_EQUAL(ctx.loadResult.mAnimationDefinitions[0].mProperties.size(), 2u);
634 uint32_t id = ctx.loadResult.mScene.GetNode(ctx.loadResult.mAnimationDefinitions[0].mProperties[0].mNodeIndex)->mNodeId;
635 DALI_TEST_EQUAL(id, root.FindChildByName("node2").GetProperty<int32_t>(Dali::Actor::Property::ID));
636 uint32_t id2 = ctx.loadResult.mScene.GetNode(ctx.loadResult.mAnimationDefinitions[0].mProperties[1].mNodeIndex)->mNodeId;
637 DALI_TEST_EQUAL(id2, root.FindChildByName("node0").GetProperty<int32_t>(Dali::Actor::Property::ID));