أنشِئ زخارف مخصَّصة ونماذج ثلاثية الأبعاد للوجوه المعزَّزة
تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
لتنفيذ ميزة "الوجوه المعزّزة"، تحتاج إلى مواد وتصاميم مخصّصة لتطبيقها على شبكات الوجه المحدّدة. ينشئ الفنانون مواد العرض هذه
مسبقًا باستخدام برامج التصميم الثلاثي الأبعاد والرسوم المتحرّكة، ويتم تصديرها كملفات FBX.
الملفات الأساسية
يتم شحن حِزم SDK مع ملف canonical_face_mesh.fbx
وملف
canonical_face_mesh.psd
لمساعدة الفنانين في إنشاء مواد عرض سيتم تراكبها
بشكل صحيح على الوجوه التي يرصدها ARCore. يمكنك العثور على هذه الملفات في المجلد
assets/canonical_face_mesh.fbx
.
إنشاء نماذج ثلاثية الأبعاد باستخدام ملف FBX
يحتوي ملف FBX على شبكة طوبولوجيا الوجه وإحداثيات نسيج UV وملف
rig الذي يحدِّد مناطق الوجه المتوافقة المقدَّمة لإنشاء مواد العرض
وإرفاقها. لضمان توافقها مع ARCore، يجب
حفظ ملفات FBX باستخدام الإعدادات المتوافقة.
يحتوي هذا الملف على مرجع facemesh
يجب عدم تصديره كجزء من
ملف FBX النهائي. ستنشئ حزمة ARCore شبكة وجه منفصلة وتُعدّلها أثناء وقت التشغيل.
إنشاء مواد 2D باستخدام ملف PSD
يتم استخدام .psd
نسيج مرجعي لشبكة الوجه لمعرفة مدى توافق النسيج الذي ينشئه
الفنان مع ملامح وجه المستخدم أثناء التشغيل. ويتضمّن
أربعة مستويات:
- القناع: يعرض موضع العينين وفتحات الأنف والفم في النسيج.
- الخطوط: إرشادات توضّح كيفية تطابق ملامح الوجه لدى المستخدم مع
ملمس أثناء التشغيل
- UVs: تمثّل هذه النقاط مثلثات شبكة نسيج الوجه التي تتألف من 468 نقطة.
- الخلفية: طبقة خلفية رمادية محايدة لجعل المكونات
الثلاثة الأخرى واضحة بصريًا.

إذا عدّلت ملف PSD، من المفترض أن تظهر لك التغييرات فور اكتمال عملية
التصدير.
تخصيص شبكة خلفية شاشة الساعة الأساسية
إذا تم إنشاء النماذج والقوام باستخدام مكتبة assets/canonical_face_mesh.fbx
المضمّنة في حزمة تطوير البرامج (SDK)، تكون هذه الإعدادات مطلوبة أيضًا عند تصدير ملفات FBX:
تأكَّد من أنّ أيّ شبكات مخصّصة تمّت ربطها بالعظام أو المناطق المرتبطة بها.
استخدِم التدرّج الهرمي التالي:
asset
|__root
| |__NOSE_TIP
| |__FOREHEAD_RIGHT
| |__FOREHEAD_LEFT
|__facemesh <-- for reference
|__ <-- place additional custom 3D meshes here
لا تصدِّر نموذج facemesh
المضمّن. هذه الشبكة مرجعية فقط.
ستنشئ أداة ARCore شبكة وجه منفصلة أثناء التشغيل. استخدِم نقاط UV في facemesh
كمرجع عند إنشاء مواد نموذج شبكة الوجه المخصّصة.
ضَع الشبكات المخصّصة كعناصر فرعية لعقدة asset
.
يُسمح باستخدام مساحات الأسماء.
تحتوي مادة العرض على أربعة عظام تتألف من منطقتَي root
وNOSE_TIP
FOREHEAD_RIGHT
وFOREHEAD_LEFT
. لا تغيِّر أسماء
هذه العظام.
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[[["\u003cp\u003eAugmented Faces uses custom textures and 3D models (FBX files) created by artists to overlay onto detected faces.\u003c/p\u003e\n"],["\u003cp\u003eThe SDK provides a canonical face mesh (FBX and PSD files) to guide asset creation and ensure compatibility with ARCore.\u003c/p\u003e\n"],["\u003cp\u003eArtists use the FBX file to create 3D models, ensuring correct topology and rigging for facial regions.\u003c/p\u003e\n"],["\u003cp\u003eThe PSD file aids in creating 2D textures, providing layers to align artwork with user facial features during runtime.\u003c/p\u003e\n"],["\u003cp\u003eWhen exporting FBX files, specific settings and hierarchy must be followed for seamless integration with ARCore's face tracking.\u003c/p\u003e\n"]]],["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"],null,["# Create custom textures and 3D models for Augmented Faces\n\nTo implement Augmented Faces, you need customized textures and models for\noverlaying on identified face meshes. These assets are created by artists\nahead of time in 3D modeling and animation software, and exported as FBX\nfiles.\n\nCanonical files\n---------------\n\nThe SDKs ship with a `canonical_face_mesh.fbx` file and a\n`canonical_face_mesh.psd` file to help artists create assets that will overlay\nproperly onto faces detected by ARCore. These files can be found in the\n`assets/canonical_face_mesh.fbx` folder.\n\nCreate 3D models with the FBX file\n----------------------------------\n\nThe FBX file contains the face mesh topology, UV texture coordinates, and\nrig that defines the supported facial regions provided for creating and\nattaching assets. To ensure they're compatible with ARCore, FBX files should\nbe saved using supported settings.\n\nThis file contains a reference `facemesh` that should not be exported as part of\nthe final FBX. ARCore will generate and update a separate face mesh at\nruntime.\n\nCreate 2D textures with the PSD file\n------------------------------------\n\nThe `.psd` face mesh reference texture is used to see how a texture that an\nartist creates lines up with a user's facial features at runtime. It includes\nfour layers:\n\n- **Mask:** Shows where the eyes, nostrils, and mouth are located in the texture.\n- **Lines:** Guidelines that show how a user's facial features line up with a texture during runtime.\n- **UVs:** Represents triangulation of the 468 point face texture mesh.\n- **Background:** A neutral gray background layer to make the other three components visually clear.\n\nIf you modify the PSD file, you should see your changes as soon as you\nexport.\n\nCustomize the canonical face mesh\n---------------------------------\n\nIf models and textures are being created using the\n`assets/canonical_face_mesh.fbx` included in the SDK, these settings are also\nrequired when exporting FBX files:\n\n- Make sure the any custom meshes are skinned to the associated bones or regions.\n\n- Use the following hierarchy:\n\n ```\n asset\n |__root\n | |__NOSE_TIP\n | |__FOREHEAD_RIGHT\n | |__FOREHEAD_LEFT\n |__facemesh \u003c-- for reference\n |__ \u003c-- place additional custom 3D meshes here\n ```\n- Do not export the included `facemesh` model. This mesh is for reference only.\n ARCore will create a separate face mesh at runtime. Use the UVs in `facemesh`\n as a reference when creating custom face mesh textures.\n\n- Place custom meshes as children of the `asset` node.\n\n- Use of namespaces is supported.\n\n- The asset contains four bones consisting of `root` and `NOSE_TIP`,\n `FOREHEAD_RIGHT`, and `FOREHEAD_LEFT` regions. Do not change the names of\n these bones."]]