অগমেন্টেড ফেসের জন্য কাস্টম টেক্সচার এবং 3D মডেল তৈরি করুন
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
অগমেন্টেড ফেস বাস্তবায়ন করতে, চিহ্নিত ফেস মেশের উপর ওভারলে করার জন্য আপনার কাস্টমাইজড টেক্সচার এবং মডেলের প্রয়োজন। এই সম্পদগুলি 3D মডেলিং এবং অ্যানিমেশন সফ্টওয়্যারে শিল্পীদের দ্বারা তৈরি করা হয় এবং FBX ফাইল হিসাবে রপ্তানি করা হয়।
ক্যানোনিকাল ফাইল
SDKs একটি canonical_face_mesh.fbx
ফাইল এবং একটি canonical_face_mesh.psd
ফাইল সহ শিল্পীদের সম্পদ তৈরি করতে সাহায্য করে যা ARCore দ্বারা শনাক্ত করা মুখের উপর সঠিকভাবে আচ্ছাদিত হবে। এই ফাইলগুলি assets/canonical_face_mesh.fbx
ফোল্ডারে পাওয়া যাবে।
FBX ফাইল দিয়ে 3D মডেল তৈরি করুন
FBX ফাইলটিতে ফেস মেশ টপোলজি, ইউভি টেক্সচার কোঅর্ডিনেট এবং রিগ রয়েছে যা সম্পদ তৈরি এবং সংযুক্ত করার জন্য দেওয়া সমর্থিত মুখের অঞ্চলগুলিকে সংজ্ঞায়িত করে। সেগুলি ARCore-এর সাথে সামঞ্জস্যপূর্ণ তা নিশ্চিত করতে, FBX ফাইলগুলি সমর্থিত সেটিংস ব্যবহার করে সংরক্ষণ করা উচিত৷
এই ফাইলটিতে একটি রেফারেন্স facemesh
রয়েছে যা চূড়ান্ত FBX এর অংশ হিসাবে রপ্তানি করা উচিত নয়৷ ARCore রানটাইমে একটি পৃথক ফেস মেশ তৈরি এবং আপডেট করবে।
PSD ফাইল দিয়ে 2D টেক্সচার তৈরি করুন
.psd
ফেস মেশ রেফারেন্স টেক্সচারটি দেখতে ব্যবহার করা হয় যে কীভাবে একজন শিল্পী রানটাইমে ব্যবহারকারীর মুখের বৈশিষ্ট্যগুলির সাথে লাইন আপ করে এমন একটি টেক্সচার তৈরি করে। এটি চারটি স্তর অন্তর্ভুক্ত করে:
- মুখোশ: টেক্সচারে চোখ, নাসিকা এবং মুখ কোথায় অবস্থিত তা দেখায়।
- লাইন: নির্দেশিকা যা দেখায় যে কীভাবে একজন ব্যবহারকারীর মুখের বৈশিষ্ট্যগুলি রানটাইমের সময় টেক্সচারের সাথে মিলিত হয়।
- UVs: 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
অঞ্চল সমন্বিত চারটি হাড় রয়েছে৷ এই হাড়ের নাম পরিবর্তন করবেন না।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003eAugmented Faces in ARCore uses custom 3D models and 2D textures, created by artists and exported as FBX files, to overlay onto detected faces.\u003c/p\u003e\n"],["\u003cp\u003eARCore provides a canonical face mesh (FBX and PSD files) to guide the creation of compatible assets for accurate overlay on user faces.\u003c/p\u003e\n"],["\u003cp\u003eThe FBX file defines the face mesh structure and regions, and any custom 3D models should be skinned to its associated bones while adhering to a specific hierarchy.\u003c/p\u003e\n"],["\u003cp\u003eThe PSD file provides a reference texture with layers for mask, lines, UVs, and background, aiding artists in aligning textures with facial features.\u003c/p\u003e\n"],["\u003cp\u003eWhen exporting custom FBX files, the reference 'facemesh' should be excluded, as ARCore generates its own face mesh at runtime.\u003c/p\u003e\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| **Note:** Both the FBX and PSD files are included in the [public iOS GitHub repository](https://github.com/google-ar/arcore-ios-sdk/tree/master/Assets), but are not shipped as part of the ARCore Cocoapod.\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."]]