This repository is being maintained, but not actively.
- androidx
- ArCore 1.23
- InstantPlacementMode
- Enable in ARCore Config
override fun getSessionConfiguration(session: Session?): Config { val config = super.getSessionConfiguration(session) config.instantPlacementMode = Config.InstantPlacementMode.LOCAL_Y_UP return config }
- Listen for onTapInstantPlacementListener
arFragment.setOnTapInstantPlacementListener { hitResult: HitResult, _: InstantPlacementPoint, _: MotionEvent -> ........... }
Copyright (c) 2018 Google Inc. All rights reserved.
Sceneform is a 3D framework with a physically based renderer that's optimized for mobile devices and that makes it easy for you to build augmented reality apps without requiring OpenGL.
As of ARCore release 1.16.0, Google open-sourced the implementation of Sceneform
allowing you to extend Sceneform's features and capabilities. As part of the
1.16.0 release, support for SFA
and SFB
assets was removed in favor of
adding glTF
support
You can continue to use Sceneform 1.15.0 (or earlier). There is no requirement that you migrate to Sceneform 1.16.0.
Do not use the 1.17.0
com.google.ar.sceneform.*
Maven artifacts.
Sceneform SDK | Description |
---|---|
Sceneform for SDK versions 1.0.0 - 1.15.0 |
|
Sceneform for SDK version 1.16.0 |
|
Use the following steps to include and build the Sceneform 1.16.0 SDK with your app:
- Download
sceneform-android-sdk-1.16.0.zip
from the Sceneform SDK releases page. - Extract the
sceneformsrc
andsceneformux
directories into your project's top-level directory. The resulting directory structure should be similar to the following:
project
+-- app
| +-- build.gradle
| +-- ...
+-- sceneformsrc
+-- sceneformux
+-- build.gradle
+-- settings.gradle
+-- ...
- Modify your project's
settings.gradle
to include the Sceneform projects:
include ':app'
// Add these lines:
include ':sceneform'
project(':sceneform').projectDir=new File('sceneformsrc/sceneform')
include ':sceneformux'
project(':sceneformux').projectDir=new File('sceneformux/ux')
- Finally, add a reference to the Sceneform SDK to your app's
build.gradle
:
dependencies {
api project(":sceneformux")
}
To get started with the Sceneform SDK, check out the Sceneform sample.
Documentation for the Sceneform SDK for Android 1.15.0 is available from https://developers.google.com/sceneform.
The SDK release notes are available on the releases page.
Please see the LICENSE file.
The Sceneform trademark is a trademark of Google, and is not subject to the copyright or patent license grants contained in the Apache 2.0-licensed Sceneform repositories on GitHub. Any uses of the Sceneform trademark other than those permitted in these guidelines must be approved by Google in advance.
These guidelines exist to ensure that the Sceneform project can share its technology under open source licenses while making sure that the "Sceneform" brand is protected as a meaningful source identifier in a way that's consistent with trademark law. By adhering to these guidelines, you help to promote the freedom to use and develop high-quality Sceneform technology.
Because we are open-sourcing the Sceneform technology, you may use the Sceneform trademark to refer to the project without prior written permission. Examples of these approved references include the following:
- To refer to the Sceneform project itself;
- To refer to unmodified source code or other files shared by the Sceneform repositories on GitHub;
- To accurately identify that your design or implementation is based on, is for use with, or is compatible with the Sceneform technology.
Examples:
- "[Your Product] for Sceneform."
- "[Your Product] is a fork of the Sceneform project."
- "[Your Product] is compatible with Sceneform."
- The Sceneform name may never be used or registered in a manner that would cause confusion as to Google's sponsorship, affiliation, or endorsement.
- Don't use the Sceneform name, or a confusingly similar term, as part of your company name, product name, domain name, or social media profile.
- Other than as permitted by these guidelines, the Sceneform name should not be combined with other trademarks, terms, or source identifiers.
- Don't remove, distort or alter the Sceneform name. That includes modifying the Sceneform name, for example, through hyphenation, combination, or abbreviation. Do not shorten, abbreviate, or create acronyms out of the Sceneform name.
- Don't display the Sceneform name using any different stylization, color, or font from the surrounding text.
- Don't use the term Sceneform as a verb, or use it in possessive form.
By downloading the Sceneform SDK for Android, you agree that the Google APIs Terms of Service governs your use thereof.
You must disclose the use of Google Play Services for AR (ARCore) and how it collects and processes data, prominently in your application, easily accessible to users. You can do this by adding the following text on your main menu or notice screen: "This application runs on Google Play Services for AR (ARCore), which is provided by Google LLC and governed by the Google Privacy Policy".