نمونه با استفاده از Sceneform
با مجموعهها، منظم بمانید
ذخیره و طبقهبندی محتوا براساس اولویتهای شما.
نمونه های SDK
این نمونهها برای راهاندازی توسعهدهندگان با Sceneform با حداقل تلاش در نظر گرفته شدهاند. آنها عمدا کوچک هستند و موارد کلیدی مورد نیاز برای استفاده از Sceneform را برجسته می کنند.
این نمونه ها در مخزن Sceneform SDK برای اندروید در GitHub منتشر شده است. آنها در هر نسخه به روز می شوند.
- HelloSceneform ساده ترین نمونه است که نحوه استفاده از
ArFragment
برای مدیریت خودکار جلسه ARCore را نشان می دهد. - انیمیشن نشان می دهد که چگونه از مدل های وارد شده با داده های انیمیشن استفاده کنید.
- AugmentedFaces نشان میدهد که چگونه میتوان بافتها و مدلها را در نواحی مختلف و رئوس یک چهره شناسایی و اعمال کرد.
- Augmented Images با استفاده از ARCore Augmented Images API با Sceneform نشان می دهد.
- منظومه شمسی بارگذاری چندین مدل و استفاده از فضای مختصات محلی را برای موقعیتیابی و چرخش اجسام نشان میدهد.
- ChromaKey Video استفاده از
ExternalTexture
و یک متریال سفارشی را برای نمایش ویدیوی Chroma Keyed (صفحه سبز) روی یک رندر نشان می دهد. - VideoRecording Sample نشان می دهد که چگونه از کلاس
VideoRecording
نمونه برای ضبط Sceneform Sceneview
در یک فایل ویدیویی محلی استفاده کنید.
نمونه های استفاده
نمونههای استفاده از مسائل و سؤالات شما، توسعهدهندگانی که از Sceneform استفاده میکنند، الهام گرفتهاند. این نمونه ها برای نشان دادن برخی از جنبه های خاص Sceneform طراحی شده اند. این نمونهها مستقل از نسخههای Sceneform SDK هستند و به همین ترتیب، بر اساس نیاز یا موضوعات جاری مرتبط با استفاده از Sceneform در زمانهای مختلف بهروزرسانی میشوند.
جزئیات مربوط به این نمونهها در پروژه صحنهای-نمونهها در GitHub قرار دارد.
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2022-09-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2022-09-26 بهوقت ساعت هماهنگ جهانی."],[[["\u003cp\u003eThese samples help developers quickly get started with Sceneform, showcasing key features with minimal setup.\u003c/p\u003e\n"],["\u003cp\u003eThey are categorized into SDK samples and usage samples, each serving different purposes and update schedules.\u003c/p\u003e\n"],["\u003cp\u003eSDK samples provide foundational knowledge of using Sceneform for tasks like AR session management, animations, face augmentation, and image augmentation.\u003c/p\u003e\n"],["\u003cp\u003eUsage samples offer solutions to specific developer questions and demonstrate more specialized Sceneform features, including chroma key video and video recording.\u003c/p\u003e\n"],["\u003cp\u003eAll samples are publicly accessible on GitHub and regularly updated to ensure relevance and functionality.\u003c/p\u003e\n"]]],["Sceneform SDK samples, available on GitHub, offer developers examples for using the technology. Key actions demonstrated include using `ArFragment` for ARCore management, animating imported models, applying textures to faces, and utilizing the ARCore Augmented Images API. Other samples showcase loading multiple models, using `ExternalTexture` for Chroma Key video, and capturing video with the `VideoRecording` class. Usage samples, found in the sceneform-samples project, address specific aspects and developer inquiries, with independent update cycles.\n"],null,["# Samples using Sceneform\n\nSDK samples\n-----------\n\nThese samples are intended to get developers up and running with Sceneform with\nminimal effort. They are intentionally small and highlight the key items needed\nin order to use Sceneform.\n\nThese samples are published in the\n[Sceneform SDK for Android](//github.com/google-ar/sceneform-android-sdk)\nrepository on GitHub. They are updated every release.\n\n- [HelloSceneform](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/hellosceneform) is the most straightforward of the samples, showing how to use [`ArFragment`](/sceneform/reference/com/google/ar/sceneform/ux/ArFragment) for automatically managing the ARCore session.\n- [Animation](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/animation) shows how to use models imported with animation data.\n- [AugmentedFaces](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/augmentedfaces) shows how to identify and apply textures and models to different regions and vertices of a face.\n- [Augmented Images](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/augmentedimage) demonstrates using ARCore Augmented Images API with Sceneform.\n- [Solar System](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/solarsystem) demonstrates loading multiple models and using local coordinate space to position and rotate objects.\n- [ChromaKey Video](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/chromakeyvideo) demonstrates using an [`ExternalTexture`](/sceneform/reference/com/google/ar/sceneform/rendering/ExternalTexture) and a custom material to display Chroma Keyed (green screen) video on a renderable.\n- [VideoRecording Sample](//github.com/google-ar/sceneform-android-sdk/tree/v1.15.0/samples/videorecording) shows how to use the sample `VideoRecording` class to capture Sceneform [`Sceneview`s](/sceneform/reference/com/google/ar/sceneform/SceneView) to a local video file.\n\nUsage samples\n-------------\n\nUsage samples are inspired by issues and questions from you, developers using\nSceneform. These samples are designed to show some specific aspect of Sceneform.\nThese samples are independent of the Sceneform SDK releases, and as such, are\nupdated at different times based on need or current topics related to using\nSceneform.\n\nDetails on these samples are located in the\n[sceneform-samples](//github.com/googlesamples/sceneform-samples)\nproject on GitHub."]]