증강된 얼굴을 구현하려면 식별된 얼굴 메시에 오버레이할 맞춤 텍스처와 모델이 필요합니다. 이러한 애셋은 아티스트가 3D 모델링 및 애니메이션 소프트웨어에서 미리 만들고 FBX 파일로 내보냅니다.
표준 파일
SDK는 아티스트가 ARCore에서 감지한 얼굴에 올바르게 오버레이할 애셋을 만드는 데 도움이 되는 canonical_face_mesh.fbx 파일과 canonical_face_mesh.psd 파일과 함께 제공됩니다. 이러한 파일은 assets/canonical_face_mesh.fbx 폴더에서 찾을 수 있습니다.
FBX 파일로 3D 모델 만들기
FBX 파일에는 애셋을 만들고 연결하는 데 제공된 지원되는 얼굴 영역을 정의하는 얼굴 메시 토폴로지, UV 텍스처 좌표, 리그가 포함되어 있습니다. ARCore와 호환되도록 하려면 지원되는 설정을 사용하여 FBX 파일을 저장해야 합니다.
이 파일에는 최종 FBX의 일부로 내보내서는 안 되는 참조 facemesh가 포함되어 있습니다. ARCore는 런타임에 별도의 얼굴 메시지를 생성하고 업데이트합니다.
PSD 파일로 2D 텍스처 만들기
.psd 얼굴 메시 참조 텍스처는 아티스트가 만드는 텍스처가 런타임 시 사용자의 얼굴 특징과 어떻게 일치하는지 확인하는 데 사용됩니다. 다음 4가지 레이어가 포함됩니다.
마스크: 텍스처에서 눈, 콧구멍, 입이 있는 위치를 보여줍니다.
선: 런타임 중에 사용자의 얼굴 특징이 텍스처와 어떻게 정렬되는지 보여주는 가이드라인입니다.
UV: 468개 점 얼굴 텍스처 메시의 삼각 분할을 나타냅니다.
배경: 다른 세 가지 구성요소를 시각적으로 명확하게 보이게 하는 중성 회색 배경 레이어입니다.
PSD 파일을 수정하면 내보내자마자 변경사항이 표시됩니다.
표준 얼굴 메시 맞춤설정
SDK에 포함된 assets/canonical_face_mesh.fbx를 사용하여 모델과 텍스처를 만드는 경우 FBX 파일을 내보낼 때도 다음 설정이 필요합니다.
맞춤 메시지가 연결된 본 또는 영역에 스킨이 적용되어 있는지 확인합니다.
다음 계층 구조를 사용하세요.
asset
|__root
| |__NOSE_TIP
| |__FOREHEAD_RIGHT
| |__FOREHEAD_LEFT
|__facemesh <-- for reference
|__ <-- place additional custom 3D meshes here
포함된 facemesh 모델은 내보내지 마세요. 이 메시는 참고용입니다.
ARCore는 런타임에 별도의 얼굴 메시를 만듭니다. 맞춤 얼굴 메시 텍스처를 만들 때 facemesh의 UV를 참조로 사용합니다.
맞춤 메시지를 asset 노드의 하위 요소로 배치합니다.
네임스페이스 사용이 지원됩니다.
애셋에는 root 및 NOSE_TIP, FOREHEAD_RIGHT, FOREHEAD_LEFT 리전으로 구성된 4개의 본이 포함되어 있습니다. 이러한 본의 이름은 변경하지 마세요.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-02-28(UTC)"],[[["Augmented Faces uses custom textures and 3D models (FBX files) created by artists to overlay onto detected faces."],["The SDK provides a canonical face mesh (FBX and PSD files) to guide asset creation and ensure compatibility with ARCore."],["Artists use the FBX file to create 3D models, ensuring correct topology and rigging for facial regions."],["The PSD file aids in creating 2D textures, providing layers to align artwork with user facial features during runtime."],["When exporting FBX files, specific settings and hierarchy must be followed for seamless integration with ARCore's face tracking."]]],["Artists create custom 3D models and 2D textures in FBX and PSD formats for overlaying on detected face meshes. The SDK provides `canonical_face_mesh.fbx` and `.psd` files for guidance. The FBX file defines face mesh topology and facial regions; `.psd` guides texture alignment with features, using layers for masks, lines, UVs, and background. When exporting custom FBX files, ensure custom meshes are skinned to specified bones and follow the outlined hierarchy, excluding the reference `facemesh`.\n"]]