- Sceneform SDK for Android ist als Open-Source-Version und archiviert (github.com/google-ar/sceneform-android-sdk) mit Version 1.16.0 verfügbar.
- Diese Website (developers.google.com/sceneform) dient als Dokumentationsarchiv für die vorherige Version, Sceneform SDK for Android 1.15.0.
- Verwenden Sie keine Version 1.17.0 der Sceneform-Maven-Artefakte.
- Die Artefakte 1.17.1 Maven können verwendet werden. Abgesehen von der Version sind die 1.17.1-Artefakte jedoch mit den 1.15.0-Artefakten identisch.
Beispiele mit Sceneform
Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
SDK-Beispiele
Diese Beispiele sollen Entwicklern den Einstieg in Sceneform mit minimalem Aufwand erleichtern. Sie sind absichtlich klein und heben die wichtigsten Elemente hervor, die für die Verwendung von Sceneform erforderlich sind.
Diese Beispiele werden im Sceneform SDK for Android-Repository auf GitHub veröffentlicht. Sie werden bei jedem Release aktualisiert.
- HelloSceneform ist das einfachste der Beispiele. Es zeigt, wie Sie
ArFragment
zur automatischen Verwaltung der ARCore-Sitzung verwenden können.
- Animation zeigt die Verwendung von Modellen, die mit Animationsdaten importiert wurden.
- AugmentedFaces zeigt, wie Texturen und Modelle auf verschiedenen Regionen und Scheitelpunkten eines Gesichts identifiziert und angewendet werden.
- Erweiterte Bilder zeigen, wie Sie die ARCore Augmented Images API mit Sceneform verwenden.
- Das Solarsystem zeigt, wie mehrere Modelle geladen und lokale Koordinatenräume zum Positionieren und Drehen von Objekten verwendet werden.
- Bei einem ChromaKey-Video wird ein
ExternalTexture
-Element und ein benutzerdefiniertes Material verwendet, um Video im Chroma Keyed-Format (Greenscreen-Bildschirm) auf einem Renderer darzustellen.
- Unter VideoRecording-Beispiel sehen Sie, wie Sie die Beispielklasse
VideoRecording
verwenden können, um Sceneview
Sceneform-Elemente in einer lokalen Videodatei zu erfassen.
Verwendungsbeispiele
Die Beispiele basieren auf Problemen und Fragen von Ihnen, Entwicklern, die Sceneform verwenden. Diese Beispiele zeigen bestimmte Aspekte von Sceneform.
Diese Beispiele sind unabhängig von den Sceneform SDK-Releases und werden daher je nach Bedarf oder aktuellen Themen bei der Verwendung von Sceneform zu unterschiedlichen Zeiten aktualisiert.
Details zu diesen Beispielen finden Sie im Projekt sceneform-samples auf GitHub.
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2022-09-26 (UTC).
[null,null,["Zuletzt aktualisiert: 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."]]