simonmarquis / ar-toolbox Goto Github PK
View Code? Open in Web Editor NEW๐งฐ ARCore & Sceneform Playground
Home Page: https://play.google.com/store/apps/details?id=fr.smarquis.ar_toolbox
License: Apache License 2.0
๐งฐ ARCore & Sceneform Playground
Home Page: https://play.google.com/store/apps/details?id=fr.smarquis.ar_toolbox
License: Apache License 2.0
content and file uri does not work as an uri - why?
thanks for this amazing sample
need help plz
can you scale object to x,y,z axis's by seekbar
coz no need to use touch view or can you Guide me how I can do that
Hello, can you help?
When I add layout in scene and change his position, layout change rotation, how i can fix this problem?
Hi Simon,
I am looking to play around with your repository but when I try to run it on an emulator the app crashes.
API: 24
Target: Android 7.0 (Google Play)
CPU: x86
Attached is the full error log and below is a summary of the main error:
Process: fr.smarquis.ar_toolbox, PID: 2285
java.lang.RuntimeException: Unable to start activity ComponentInfo{fr.smarquis.ar_toolbox/fr.smarquis.ar_toolbox.SceneActivity}: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.google.ar.sceneform.ArSceneView
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: android.view.InflateException: Binary XML file line #8: Binary XML file line #8: Error inflating class com.google.ar.sceneform.ArSceneView
Caused by: android.view.InflateException: Binary XML file line #8: Error inflating class com.google.ar.sceneform.ArSceneView
Caused by: java.lang.reflect.InvocationTargetException
at java.lang.reflect.Constructor.newInstance0(Native Method)
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)
at android.view.LayoutInflater.createView(LayoutInflater.java:645)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)
at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:158)
at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:312)
at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:106)
at fr.smarquis.ar_toolbox.SceneActivity.onCreate(SceneActivity.kt:61)
at android.app.Activity.performCreate(Activity.java:6662)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
at android.app.ActivityThread.-wrap12(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)
Caused by: java.lang.IllegalStateException: Couldn't create Engine
at com.google.android.filament.Engine.create(Engine.java:67)
at com.google.ar.sceneform.rendering.EngineInstance.createEngine(EngineInstance.java:85)
at com.google.ar.sceneform.rendering.EngineInstance.getEngine(EngineInstance.java:39)
at com.google.ar.sceneform.rendering.Renderer.initialize(Renderer.java:505)
at com.google.ar.sceneform.rendering.Renderer.(Renderer.java:106)
at com.google.ar.sceneform.SceneView.initialize(SourceFile:78)
at com.google.ar.sceneform.SceneView.(SourceFile:21)
at com.google.ar.sceneform.ArSceneView.(SourceFile:11)
at java.lang.reflect.Constructor.newInstance0(Native Method)ย
at java.lang.reflect.Constructor.newInstance(Constructor.java:430)ย
at android.view.LayoutInflater.createView(LayoutInflater.java:645)ย
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:787)ย
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)ย
at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)ย
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)ย
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)ย
at android.view.LayoutInflater.inflate(LayoutInflater.java:426)ย
at android.view.LayoutInflater.inflate(LayoutInflater.java:377)ย
at androidx.appcompat.app.AppCompatDelegateImpl.setContentView(AppCompatDelegateImpl.java:555)ย
at androidx.appcompat.app.AppCompatActivity.setContentView(AppCompatActivity.java:161)ย
at androidx.activity.ComponentActivity.onCreate(ComponentActivity.java:158)ย
at androidx.fragment.app.FragmentActivity.onCreate(FragmentActivity.java:312)ย
at androidx.appcompat.app.AppCompatActivity.onCreate(AppCompatActivity.java:106)ย
at fr.smarquis.ar_toolbox.SceneActivity.onCreate(SceneActivity.kt:61)ย
at android.app.Activity.performCreate(Activity.java:6662)ย
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)ย
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)ย
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)ย
at android.app.ActivityThread.-wrap12(ActivityThread.java)ย
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)ย
at android.os.Handler.dispatchMessage(Handler.java:102)ย
at android.os.Looper.loop(Looper.java:154)ย
at android.app.ActivityThread.main(ActivityThread.java:6077)ย
at java.lang.reflect.Method.invoke(Native Method)ย
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:866)ย
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:756)ย
Dear author,
I am trying to build the recent version 1.11.0. But the current Gradle settings do not work with my android studio. Could you let me know which Android Studio version I should use for building it?
Thanks
Hello @SimonMarquis ,
I am making AR Draw App, i found as same draw feature tool in android from you but do you have that type of tool for iOS?
Hi , I found some error when run this application.
This exception post from RenderableInternalData#buildInstanceData ! Can i get the source code? api 'com.google.ar.sceneform:rendering:1.17.1'
Error Message: After I open the app, it closes itself suddenly, and a toast message pops up with the following error: "Failed to create AR session."
Steps to Reproduce:
Open the app.
The app immediately closes, and the error message appears.
Expected Behavior: The app should open without any issues, and the AR session should be created successfully.
Actual Behavior: The app abruptly closes, and the error message "Failed to create AR session" is displayed in a toast.
Device and OS Information: I'm using a motorola g30 running Android 12.
App Version: I'm experiencing this issue in app version 1.13.0, 1.12.0, 1.11.0, 1.10.0.
Logcat Error:
E E0000 00:00:1698935154.698061 11469 error_policy_util.cc:263]
################ ARCore Native Error ##################
BUILD_CHANGELIST:569645839
BUILD_BASELINE_CHANGELIST:566808989
################### Stack Trace Begin ################
ARCoreError: third_party/arcore/ar/planar_targets/augmented_image_database_utils.cc:67 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/planar_targets/augmented_image_database_utils.cc?g=0&l=67
ARCoreError: third_party/arcore/ar/core/c_api/augmented_image_database_c_api.cc:134 https://cs.corp.google.com/piper///depot/google3/third_party/arcore/ar/core/c_api/augmented_image_database_c_api.cc?g=0&l=134
################### Stack Trace End #################
################### Undecorated Trace Begin #################
INVALID_ARGUMENT:
ARCoreError: third_party/arcore/ar/planar_targets/augmented_image_database_utils.cc:67
Insufficient image quality for added image [type.googleapis.com/util.ErrorSpacePayload='ArStatusErrorSpace::AR_ERROR_IMAGE_INSUFFICIENT_QUALITY']
=== Source Location Trace: ===
third_party/arcore/ar/core/status.cc:165
third_party/arcore/ar/planar_targets/augmented_image_database_utils.cc:67
################### Undecorated Trace End #################
E Failed to open APK '/data/app/~~clvHISspU8e0pCchfRI7ZQ==/fr.smarquis.ar_toolbox-7w2iJRwrzLkREhGvPQ1cxg==/base.apk': I/O error
E Failed to open APK '/data/app/~~clvHISspU8e0pCchfRI7ZQ==/fr.smarquis.ar_toolbox-7w2iJRwrzLkREhGvPQ1cxg==/split_config.arm64_v8a.apk': I/O error
E Failed to open APK '/data/app/~~clvHISspU8e0pCchfRI7ZQ==/fr.smarquis.ar_toolbox-7w2iJRwrzLkREhGvPQ1cxg==/split_config.en.apk': I/O error
E Failed to open APK '/data/app/~~clvHISspU8e0pCchfRI7ZQ==/fr.smarquis.ar_toolbox-7w2iJRwrzLkREhGvPQ1cxg==/split_config.xhdpi.apk': I/O error
E Failed to open APK '/data/app/~~clvHISspU8e0pCchfRI7ZQ==/fr.smarquis.ar_toolbox-7w2iJRwrzLkREhGvPQ1cxg==/base.apk': I/O error
E failed to add asset path '/data/app/~~clvHISspU8e0pCchfRI7ZQ==/fr.smarquis.ar_toolbox-7w2iJRwrzLkREhGvPQ1cxg==/base.apk'
java.io.IOException: Failed to load asset path /data/app/~~clvHISspU8e0pCchfRI7ZQ==/fr.smarquis.ar_toolbox-7w2iJRwrzLkREhGvPQ1cxg==/base.apk
at android.content.res.ApkAssets.nativeLoad(Native Method)
at android.content.res.ApkAssets.<init>(ApkAssets.java:295)
at android.content.res.ApkAssets.loadFromPath(ApkAssets.java:144)
at android.app.ResourcesManager.loadApkAssets(ResourcesManager.java:455)
at android.app.ResourcesManager.access$000(ResourcesManager.java:73)
at android.app.ResourcesManager$ApkAssetsSupplier.load(ResourcesManager.java:169)
at android.app.ResourcesManager.createAssetManager(ResourcesManager.java:531)
at android.app.ResourcesManager.createResourcesImpl(ResourcesManager.java:613)
at android.app.ResourcesManager.findOrCreateResourcesImplForKeyLocked(ResourcesManager.java:665)
at android.app.ResourcesManager.createResources(ResourcesManager.java:1018)
at android.app.ResourcesManager.getResources(ResourcesManager.java:1121)
at android.app.ActivityThread.getTopLevelResources(ActivityThread.java:2466)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1751)
at android.app.ApplicationPackageManager.getResourcesForApplication(ApplicationPackageManager.java:1737)
at android.app.ApplicationPackageManager.getDrawable(ApplicationPackageManager.java:1506)
at android.app.ApplicationPackageManager.loadUnbadgedItemIcon(ApplicationPackageManager.java:3036)
at android.content.pm.PackageItemInfo.loadUnbadgedIcon(PackageItemInfo.java:303)
at com.android.systemui.toast.SystemUIToast.getBadgedIcon(SystemUIToast.java:284)
at com.android.systemui.toast.SystemUIToast.inflateToastView(SystemUIToast.java:198)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:90)
at com.android.systemui.toast.SystemUIToast.<init>(SystemUIToast.java:77)
at com.android.systemui.toast.ToastFactory.createToast(ToastFactory.java:78)
at com.android.systemui.toast.ToastUI.lambda$showToast$0(ToastUI.java:115)
at com.android.systemui.toast.ToastUI.$r8$lambda$w_gPCh3F8Xxn1jN4lkQZoUci71c(Unknown Source:0)
at com.android.systemui.toast.ToastUI$$ExternalSyntheticLambda1.run(Unknown Source:16)
at com.android.systemui.toast.ToastUI.showToast(ToastUI.java:142)
at com.android.systemui.statusbar.CommandQueue$H.handleMessage(CommandQueue.java:1610)
at android.os.Handler.dispatchMessage(Handler.java:106)
at android.os.Looper.loopOnce(Looper.java:226)
at android.os.Looper.loop(Looper.java:329)
at android.app.ActivityThread.main(ActivityThread.java:8058)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1026)
I clone the repository to my system and try to run in android studio but its not have any module for run the project.
dear author,
your project cann't run on my android stuido(version 3.5.1)
the error trace as follows:
Unable to find method 'sun.security.internal.spec.TlsMasterSecretParameterSpec.getExtendedMasterSecretSessionHash()[B'.
Possible causes for this unexpected error include:
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
Re-download dependencies and sync project (requires network)
The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
Stop Gradle build processes (requires restart)
Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.
In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
could your help me find out where i am wrong?
thank you very much and look forward to your favourable reply
@SimonMarquis Thanks for this fantastic AR toolbox app
how can I set alpha to 3D model objects. can you Guide me how I can do that?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
Failed to look up maven package com.google.android.gms.oss-licenses-plugin:com.google.android.gms.oss-licenses-plugin.gradle.plugin
.Files affected: gradle/libs.versions.toml
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/android.yml
actions/checkout v3
actions/setup-java v3
gradle/gradle-build-action v2.4.2@749f47bda3e44aa060e82d7b3ef7e40d953bd629
gradle/gradle-build-action v2.4.2@749f47bda3e44aa060e82d7b3ef7e40d953bd629
actions/upload-artifact v3
actions/upload-artifact v3
gradle.properties
settings.gradle.kts
build.gradle.kts
app/build.gradle.kts
gradle/libs.versions.toml
androidx.appcompat:appcompat 1.6.1
androidx.browser:browser 1.5.0
androidx.constraintlayout:constraintlayout 2.1.4
androidx.coordinatorlayout:coordinatorlayout 1.2.0
androidx.core:core 1.10.1
androidx.fragment:fragment 1.5.7
androidx.lifecycle:lifecycle-livedata-ktx 2.6.1
androidx.lifecycle:lifecycle-viewmodel-ktx 2.6.1
androidx.preference:preference-ktx 1.2.0
androidx.test.espresso:espresso-core 3.5.1
androidx.test.ext:junit 1.1.5
com.google.android.material:material 1.8.0
com.google.android.gms:play-services-oss-licenses 17.0.1
com.google.ar:core 1.36.0
com.google.ar.sceneform:assets 1.17.1
com.google.ar.sceneform:core 1.17.1
com.google.ar.sceneform:rendering 1.17.1
com.google.ar.sceneform:sceneform-base 1.17.1
com.google.ar.sceneform.ux:sceneform-ux 1.17.1
junit:junit 4.13.2
com.android.application 8.0.2
org.jetbrains.kotlin.android 1.8.21
com.android.library 8.0.2
com.android.lint 8.0.2
com.android.test 8.0.2
org.jetbrains.kotlin.jvm 1.8.21
com.diffplug.spotless 6.19.0
com.google.android.gms.oss-licenses-plugin 0.10.6
gradle/wrapper/gradle-wrapper.properties
gradle 8.1.1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.