- Sceneform SDK cho Android có nguồn mở và được lưu trữ (github.com/google-ar/sceneform-android-sdk) với phiên bản 1.16.0.
- Trang web này (developers.google.com/sceneform) đóng vai trò là kho lưu trữ tài liệu cho phiên bản trước, Sceneform SDK for Android 1.15.0.
- Không sử dụng phiên bản 1.17.0 của Cấu phần phần mềm Maven của Sceneform.
- Có thể sử dụng các cấu phần phần mềm Maven 1.17.1. Tuy nhiên, khác với phiên bản, các cấu phần phần mềm 1.17.1 giống với các cấu phần phần mềm 1.15.0.
Mẫu sử dụng Dạng biểu mẫu
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Mẫu SDK
Những mẫu này được thiết kế để giúp các nhà phát triển thiết lập và sử dụng Sceneform một cách dễ dàng. Các mục này có kích thước nhỏ và cố ý làm nổi bật các mục chính cần thiết để sử dụng Dạng biểu mẫu.
Các mẫu này được phát hành trong
kho lưu trữ Sceneform SDK cho Android
trên GitHub. Chúng được cập nhật mỗi bản phát hành.
- HelloSceneform là mẫu đơn giản nhất, cho thấy cách sử dụng
ArFragment
để tự động quản lý phiên ARCore.
- Ảnh động
cho thấy cách sử dụng các mô hình đã nhập bằng dữ liệu ảnh động.
- AugmentedFaces cho biết cách xác định và áp dụng hoạ tiết và mô hình cho các vùng và đỉnh của khuôn mặt.
- Hình ảnh tăng cường
minh họa bằng API Hình ảnh tăng cường ARCore với Cảnh.
- Hệ thống năng lượng mặt trời
minh họa việc tải nhiều mô hình và sử dụng không gian tọa độ cục bộ để
định vị và xoay đối tượng.
- Video ChromaKey
minh họa bằng
ExternalTexture
và một tài liệu tùy chỉnh để hiển thị
video Chroma Keyed (màn hình xanh lục) trên một trình kết xuất.
- Mẫu quay video
cho thấy cách sử dụng lớp
VideoRecording
mẫu để ghi lại Biểu mẫu
Sceneview
vào tệp video cục bộ.
Mẫu sử dụng
Mẫu sử dụng được lấy cảm hứng từ các vấn đề và câu hỏi của bạn, các nhà phát triển sử dụng
Sceneform. Những mẫu này được thiết kế để hiển thị một số khía cạnh cụ thể của Cảnh quan.
Các mẫu này độc lập với các bản phát hành SDK dạng biểu mẫu, và do đó, được
cập nhật tại nhiều thời điểm dựa trên nhu cầu hoặc các chủ đề hiện tại liên quan đến việc sử dụng
Sceneform.
Thông tin chi tiết về các mẫu này nằm trong dự án sceneform-mẫu trên GitHub.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2022-09-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2022-09-26 UTC."],[[["\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."]]