Home
last modified time | relevance | path

Searched refs:joints (Results 1 - 9 of 9) sorted by relevance

/foundation/graphic/graphic_3d/lume/Lume_3D/src/ecs/systems/
H A Dskinning_system.cpp89 // Update the combined min/max for all joints. in UpdateJointBounds()
360 Entity const& skinIbmEntity, array_view<const Entity> const& joints, Entity const& entity, Entity const& skeleton) in CreateInstance()
363 !std::all_of(joints.begin(), joints.end(), [](const Entity& entity) { return EntityUtil::IsValid(entity); }) || in CreateInstance()
369 if (skinIbm.matrices.size() != joints.size()) { in CreateInstance()
371 "Skin bone count doesn't match the given joints (%zu, %zu)!", skinIbm.matrices.size(), joints.size()); in CreateInstance()
393 std::copy(joints.begin(), joints.end(), jointEntities.begin()); in CreateInstance()
405 // validate skin joints in CreateInstance()
359 CreateInstance( Entity const& skinIbmEntity, array_view<const Entity> const& joints, Entity const& entity, Entity const& skeleton) CreateInstance() argument
407 const auto joints = array_view(jointsHandle->jointEntities, jointsHandle->count); CreateInstance() local
[all...]
H A Dskinning_system.h63 void CreateInstance(CORE_NS::Entity const& skinIbmEntity, BASE_NS::array_view<const CORE_NS::Entity> const& joints,
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/ecs/systems/
H A Dintf_skinning_system.h37 * @param joints List of entities which are the joints of the skin. The order should match the order of the skin
43 BASE_NS::array_view<const CORE_NS::Entity> const& joints, CORE_NS::Entity const& entity,
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/util/
H A Dintf_mesh_builder.h63 bool joints { false };
/foundation/graphic/graphic_3d/lume/Lume_3D/src/gltf/
H A Dgltf2_importer.cpp551 GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult& weights, in LoadPrimitiveAttributeData()
583 joints = move(loadDataResult); in LoadPrimitiveAttributeData()
723 info.joints = ContainsAttribute(primitive, GLTF2::AttributeType::JOINTS); in CreatePrimitiveImportInfo()
839 // Process joints. in ProcessPrimitives()
841 const IMeshBuilder::DataBuffer joints = fillDataBuffer(joint); in ProcessPrimitives() local
843 result.meshBuilder->SetJointData(primitiveIndex, joints, weights, positions); in ProcessPrimitives()
938 skinIbm.matrices.reserve(skin.joints.size()); in BuildSkinIbmComponent()
955 skinIbm.matrices.insert(skinIbm.matrices.end(), skin.joints.size(), Math::IDENTITY_4X4); in BuildSkinIbmComponent()
2005 jointsHandle->count = Math::min(countof(jointsHandle->jointEntities), skin->joints.size()); in AddSkinJointsComponents()
2007 std::transform(skin->joints in AddSkinJointsComponents()
549 LoadPrimitiveAttributeData(const GLTF2::MeshPrimitive& primitive, GLTF2::GLTFLoadDataResult& positions, GLTF2::GLTFLoadDataResult& normals, array_view<GLTF2::GLTFLoadDataResult> texcoords, GLTF2::GLTFLoadDataResult& tangents, GLTF2::GLTFLoadDataResult& joints, GLTF2::GLTFLoadDataResult& weights, GLTF2::GLTFLoadDataResult& colors, const uint32_t& flags) LoadPrimitiveAttributeData() argument
2041 vector<Entity> joints; CreateSkinComponents() local
[all...]
H A Dgltf2_loader.cpp2312 return std::all_of(skin.joints.begin(), skin.joints.end(), [&loadResult, &scene](auto const joint) {
2324 RETURN_WITH_ERROR(loadResult, "Skin joints must belong to the same scene");
2352 vector<size_t> joints;
2353 if (!ParseOptionalNumberArray(loadResult, joints, jsonData, "joints", vector<size_t>())) {
2357 if (joints.size() > CORE_DEFAULT_MATERIAL_MAX_JOINT_COUNT) {
2358 CORE_LOG_W("Number of joints (%zu) more than current limit (%u)", joints.size(),
2362 skin->joints
[all...]
H A Dgltf2_exporter.cpp612 Node* FindSkeletonRoot(array_view<GLTF2::Node*> joints) in FindSkeletonRoot() argument
615 if (!joints.empty()) { in FindSkeletonRoot()
618 depths.reserve(joints.size()); in FindSkeletonRoot()
619 for (Node* joint : joints) { in FindSkeletonRoot()
673 exportSkin->joints.reserve(skinJointsHandle->count); in ExportGltfSkins()
677 exportSkin->joints.push_back(nodeArray[jointIndex].get()); in ExportGltfSkins()
685 exportSkin->skeleton = FindSkeletonRoot(exportSkin->joints); in ExportGltfSkins()
2019 for (auto const joint : skin->joints) { in ExportSkins()
2022 jsonSkin["joints"] = move(jsonJoints); in ExportSkins()
H A Dgltf2_data_structures.h672 // The node used as a skeleton root. When undefined, joints transforms resolve to scene root.
675 // The skeleton nodes, used as joints in this skin.
676 BASE_NS::vector<Node*> joints; member
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/
H A Dmesh_builder.cpp1073 if (submesh.info.joints) { in CalculateSizes()
2085 const auto* joints = jointData.buffer.data(); in CalculateJointBounds() local
2089 // Find the amount of referenced joints in CalculateJointBounds()
2098 // Ignore joints with weight that is effectively 0.0 in CalculateJointBounds()
2100 const uint8_t jointIndex = joints[jointFormat.componentByteSize * w]; in CalculateJointBounds()
2107 joints += jointData.stride; in CalculateJointBounds()
2122 joints = jointData.buffer.data(); in CalculateJointBounds()
2139 // Ignore joints with weight that is effectively 0.0 in CalculateJointBounds()
2143 auto& boundsData = jointBoundsData_[joints[w]]; in CalculateJointBounds()
2147 joints in CalculateJointBounds()
[all...]

Completed in 18 milliseconds