/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | asset_loader.cpp | 365 auto targetEntity = ec_.GetEntity(entityTarget); in LoadJsonEntityCollection() local 367 while (!targetEntity && subcollectionCount) { in LoadJsonEntityCollection() 368 targetEntity = ec_.GetSubCollection(--subcollectionCount)->GetEntity(entityTarget); in LoadJsonEntityCollection() 561 auto targetEntity = ec_.GetEntity(entityTarget); in GltfImportFinished() local 563 while (!targetEntity && subcollectionCount) { in GltfImportFinished() 564 targetEntity = ec_.GetSubCollection(--subcollectionCount)->GetEntity(entityTarget); in GltfImportFinished() 585 const auto originalRootEntity = ImportSceneFromGltf(targetEntity); in GltfImportFinished() 610 if (!targetEntity) { in GltfImportFinished()
|
H A D | ecs_animation.cpp | 725 auto targetEntity = animationTrack->target.operator Entity(); in RemoveKey() local 729 auto target = manager->GetData(targetEntity); in RemoveKey() 757 auto targetEntity = animationTrack->target.operator Entity(); in UpdateKey() local 764 auto target = manager->GetData(targetEntity); in UpdateKey() 849 CORE_NS::Entity rootEntity, CORE_NS::Entity targetEntity, BASE_NS::string_view fullPropertyPath) in CreateAnimationTrack() 876 if (IPropertyHandle* targetHandle = componentManager->GetData(targetEntity); targetHandle) { in CreateAnimationTrack() 879 if (nameManager_->HasComponent(targetEntity)) { in CreateAnimationTrack() 880 targetName = nameManager_->Get(targetEntity).name; in CreateAnimationTrack() 903 const auto targetRef = ecs_->GetEntityManager().GetReferenceCounted(targetEntity); in CreateAnimationTrack() 907 nameComponent.name = ResolvePathToAnimationRoot(*ecs_, rootEntity, targetEntity); in CreateAnimationTrack() 848 CreateAnimationTrack( CORE_NS::Entity rootEntity, CORE_NS::Entity targetEntity, BASE_NS::string_view fullPropertyPath) CreateAnimationTrack() argument [all...] |
H A D | scene_holder.h | 221 void SetMesh(CORE_NS::Entity targetEntity, CORE_NS::Entity mesh); 233 void SetMaterial(CORE_NS::Entity targetEntity, CORE_NS::Entity material, int64_t submeshIndex = -1); 242 void SetSubmeshAABBMin(CORE_NS::Entity targetEntity, int64_t submeshIndex, const BASE_NS::Math::Vec3& vec); 245 void SetSubmeshAABBMax(CORE_NS::Entity targetEntity, int64_t submeshIndex, const BASE_NS::Math::Vec3& vec); 248 void RemoveSubmesh(CORE_NS::Entity targetEntity, int64_t submeshIndex); 251 void SetTexture(size_t index, CORE_NS::Entity targetEntity, CORE_NS::EntityReference imageEntity); 281 void SetSampler(size_t index, CORE_NS::Entity targetEntity, SCENE_NS::ITextureInfo::SamplerId samplerId);
|
H A D | scene_holder.cpp | 1714 void SceneHolder::SetMesh(CORE_NS::Entity targetEntity, CORE_NS::Entity mesh) in SetMesh() argument 1717 if (EntityUtil::IsValid(targetEntity) && EntityUtil::IsValid(mesh)) { in SetMesh() 1720 if (!renderMeshComponentManager_->HasComponent(targetEntity)) { in SetMesh() 1721 renderMeshComponentManager_->Create(targetEntity); in SetMesh() 1724 if (auto handle = renderMeshComponentManager_->Write(targetEntity)) { in SetMesh() 1779 void SceneHolder::SetMaterial(CORE_NS::Entity targetEntity, CORE_NS::Entity material, int64_t submeshIndex) in SetMaterial() argument 1782 if (EntityUtil::IsValid(targetEntity)) { in SetMaterial() 1785 if (auto handle = meshComponentManager_->Write(targetEntity)) { in SetMaterial() 1856 void SceneHolder::SetTexture(size_t index, CORE_NS::Entity targetEntity, CORE_NS::EntityReference imageEntity) in SetTexture() argument 1859 if (auto handle = materialComponentManager_->Write(targetEntity)) { in SetTexture() 2261 SetSampler(size_t index, CORE_NS::Entity targetEntity, SCENE_NS::ITextureInfo::SamplerId samplerId) SetSampler() argument 2281 SetSubmeshRenderSortOrder(CORE_NS::Entity targetEntity, int64_t submeshIndex, uint8_t value) SetSubmeshRenderSortOrder() argument 2299 SetSubmeshAABBMin(CORE_NS::Entity targetEntity, int64_t submeshIndex, const BASE_NS::Math::Vec3& vec) SetSubmeshAABBMin() argument 2318 RemoveSubmesh(CORE_NS::Entity targetEntity, int64_t submeshIndex) RemoveSubmesh() argument 2345 SetSubmeshAABBMax(CORE_NS::Entity targetEntity, int64_t submeshIndex, const BASE_NS::Math::Vec3& vec) SetSubmeshAABBMax() argument [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | scene_util.h | 70 IAnimationPlayback* RetargetSkinAnimation(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntity, 78 void ShareSkin(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntity, CORE_NS::Entity sourceEntity) const override;
|
H A D | scene_util.cpp | 393 float CalculateScalingFactor(IEcs& ecs, Entity targetEntity, Entity sourceEntity) in CalculateScalingFactor() argument 405 if (auto renderMeshComponent = renderMeshManager->Read(targetEntity); renderMeshComponent) { in CalculateScalingFactor() 427 auto dstMeshScale = transformManager->Get(targetEntity).scale; in CalculateScalingFactor() 536 IEcs& ecs, Entity targetEntity, Entity sourceEntity, Entity animationEntity) const in RetargetSkinAnimation() 539 auto dstJointsComponent = jointsManager->Read(targetEntity); in RetargetSkinAnimation() 554 const auto scale = CalculateScalingFactor(ecs, targetEntity, sourceEntity); in RetargetSkinAnimation() 671 void SceneUtil::ShareSkin(IEcs& ecs, Entity targetEntity, Entity sourceEntity) const in ShareSkin() argument 677 auto dstJointsComponent = jointsManager->Read(targetEntity); in ShareSkin() 696 auto dstJointsComponent = jointsManager->Write(targetEntity); in ShareSkin() 535 RetargetSkinAnimation( IEcs& ecs, Entity targetEntity, Entity sourceEntity, Entity animationEntity) const RetargetSkinAnimation() argument
|
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/ |
H A D | intf_scene_util.h | 108 /** Creates a new animation for targetEntity which animates the target's joints the same way as animationEntity 111 * @param targetEntity Entity which will be the target of the new animation. 112 * @param sourceEntity Entity whos skin will be used for retargetting the animation to targetEntity. 116 virtual IAnimationPlayback* RetargetSkinAnimation(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntity, 149 /** Share the sourceEntity's skin with the targetEntity. 151 * @param targetEntity Entity whos skin will be modified to use the source joints. 154 virtual void ShareSkin(CORE_NS::IEcs& ecs, CORE_NS::Entity targetEntity, CORE_NS::Entity sourceEntity) const = 0;
|