Questions tagged [sceneform]

1

votes
3

answer
431

Views

Sceneform plane rendering similar to the HelloAR sample

I was trying to cover the whole surface of the detected plane with a texture. Using OpenGl (like in the HelloAr sample) enables me do this like this screenshot . However i want to switch to Sceneform and i only could get something like this by following other questions in the Github. These are the...
Alperen Kantarcı
1

votes
3

answer
288

Views

ARKit – eulerAngles of Transform Matrix 4x4

In my project I have a transform and I want to get the orientation of that transform in eulersAngles. How do I get the eulerAngles from a transform of 4x4 matrix in Swift language? I need at least the Pitch, I may need the Yaw and I might need the Roll.
Calonca
1

votes
0

answer
436

Views

ViewRenderable not working properly with VideoView[SceneForm ARCore]

Github issue : https://github.com/google-ar/sceneform-android-sdk/issues/9 Iam using ViewRenderable with this Layout TextView's and Button is coming properly in ARScene, but VideoView is moving along with Camera. My final goal is to play Video with chroma key.but iam unable to play video also
Balu Sangem
1

votes
1

answer
177

Views

Integrating Sceneform SDK Using Android Studio

I downloaded Android Studio 3.1 but I cannot find any reference or docs on how to create a new project which uses Sceneform SDK. I am not looking for Sample Apps, I am interested in knowing how to integrate Sceneform SDK using Android Empty Project.
john doe
1

votes
1

answer
88

Views

Retrieve bounds of an augmented object

I'm attempting to anchor a ViewRenderable to a ModelRenderable so that it appears on the top right corner of the Renderable & I use the following snippet to place it. //Sets the button north east of the node that it is attached to viewRenderable.localPosition = Vector3( parent.right.x, parent.up.y,...
Clinkz
1

votes
0

answer
90

Views

Collouring Android Sceneform PointCloud by confidence value

I want to collourize the PointCloud by it's confidence value. First I create three FloatBuffer, where I put single Points based on a threshold. private FloatBuffer makeFLoatBuffer(ArrayList conf) { FloatBuffer confFB = FloatBuffer.allocate(conf.size()); for(Float value : conf){ confFB.put(value); }...
Sceada
1

votes
0

answer
112

Views

Android studio crash every time after installing Sceneform plugin

Android studio crash every time it is launched after installing Sceneform plugin.Studio works fine when Sceneform plugin is uninstalled. Is it a version compatible issue ? Couldn't find any logs related to studio crash in the studio log file. Version Details Android studio version is 3.1.4. Scenefo...
android.fryo
1

votes
0

answer
143

Views

How to drag and move node in ARCore?

I put an AnchorNode 0.9 meter away from camera. val anchor = frag.arSceneView.session.createAnchor(pose) val node = TransformableNode(system) node.renderable = renderable node.setParent(root) I can't move the node when no plane is detected on the table. How can I let the node move by dragging in th...
Henry
1

votes
1

answer
62

Views

Arcore: How can I get the dimensions of an image that I placed on the surface?

I have placed an image on a surface and I am trying to display the height and width of the image when I tap on it (having an idea to select and resize later). I am converting the TransformableNode to an imageView and then using getHeight() and getWidth(). but is there a simple way provided by ARCO...
Bee1408
1

votes
1

answer
179

Views

Android: Need To duplicate or copy / paste added object after scaling its size with same scaling in plane beside node in ARCore SDK

I am trying to make one demo application in which I want to add some option like copy/paste selected node, remove the node, etc... I have completed removing a node part. Now, I am trying to duplicate / copy-paste added a node after scaling and resize the node, but, not get success for duplicate the...
Hemal Patel
1

votes
0

answer
46

Views

ARCore – Can I put the model in other non-flat places?

I have a scenario like this: Create a huge frame/cage. Switching to another model. Put the switching model into the huge frame/cage originally created Can another model be nested in ARCore/Sceneform? Can ARCore or Sceneform be done now? Any help will be grateful, thank you!
ning han
1

votes
0

answer
26

Views

Cannot read NFC tag over Sceneform ux ArFragment

I am trying to read an NFC tag over a sceneform ux ArFragment. The idea is that I wish to have a 3D model appear, and change that model based on what NFC tag was scanned (like an Amiibo). Using the same code I was able to read NFC tags through another activity, but not the same activity where the Ar...
Erich. L
1

votes
1

answer
98

Views

How to record video using Camera2 API in SceneForm

Using Android sceneform I am developing an application, I know that currently we don't have an option to record a video with rendered 3d Objects but is there any option to record a camera data's just like we are doing normal camera video recording (Google Android video record sample)?
Mathankumar K
1

votes
1

answer
101

Views

How can I force objects to snap to a grid?

I'm building a board game app using ARCore and Sceneform. My 3D models need to snap to a grid instead of being placed anywhere. Imagine a chess board. How do I do that? I copied the classes TransformableNode and TranslationController to modify them. In TranslationController, the coordinates are set...
avroom
1

votes
0

answer
29

Views

How to give border of andy object in AR Core

I am building an application using ARCore where i am display images from server. I want to give a border on image that is displaying on AR surfaces. I have list of colors and on tap of that color i need to set it as a border of AR image. Here i am attaching a ScreenShot of my ARView. I want to get s...
Keval Shukla
1

votes
0

answer
23

Views

display different 3D objects based on detected image's index in image database arcore

I have created an imgdb file consisting of images that I want to detect in arcore sceneform. Once I detect an image, I wish to display an augmented 3D object where the image was detected. Now, I wish to display a different 3D object depending on which image within the imgdb file was detected. Somet...
Bhavik Shah
1

votes
1

answer
65

Views

How can I delete selected object from scene using sceneform?

private AnchorNode anchorNode; private void removeAnchorNode(Node nodeRemove) { //Remove an anchor node if(nodeRemove instanceof AnchorNode){ if(((AnchorNode)nodeRemove).getAnchor() != null) { ((AnchorNode) nodeRemove).getAnchor().detach(); } } if (!(nodeRemove instanceof Camera) && !(nodeRemove in...
muco
1

votes
1

answer
54

Views

How to translate object in ARCore and Sceneform?

I build an AR application on Android, using ARCore and Sceneform, and I want to translate object on x, y or z axis when user clicks a button. How can I do that? I try to do that, when user press the button, I'm compose object Pose with translate Pose, remove object and create new one with translat...
Dmytro Melnyk
1

votes
0

answer
29

Views

Cannot render multiple AugmnentedImage nodes in ARCore

I want to render different AugmentedImage nodes on SceneView by scanning the reference images using ARCore. The nodes are perfectly being rendered on first scan, but after then if I scan other images, they get into tracking state but couldn't render. if (!augmentedImageMap.containsKey(currentAugme...
azfar abbas
1

votes
1

answer
70

Views

Place one instance of model in ARCore Sceneform

Having completed the Sceneform quickstart, I'm still having trouble implementing my model placement method... Rather than each touch of the screen placing a new instance of the model (as in the quickstart & codelab), I'm trying to have each touch reposition the model to that location while still ret...
Mark
1

votes
1

answer
44

Views

how to load sfb model from url in sceneform?

I m not able to load .sfb model from URI.parse('url') in sceneform. My code is ModelRenderable.builder() .setSource(this, Uri.parse(string)) //.setSource(this,R.raw.andy) .build() .thenAccept(renderable -> andyRenderable = renderable) /* .thenAcceptBoth(futureTexture, (renderable, texture) -> {...
rikesh shrestha
1

votes
0

answer
14

Views

How to specifically scale model using pinch gesture in either lengthwise of bredthwise?

i have a model. i want to just scale in up or down lengthwise rather than in every axes. How can i tweak into scaleController and pinch gesture to do this??
Ishaan Gupta
1

votes
1

answer
51

Views

How can I implement Google's Measure app using ARCore?

I want to make an app like Google's Measure app. So how can I do that using ARCore/Sceneform in Android Studio? How can I start?
Ishaan Gupta
1

votes
1

answer
41

Views

Tracking model/image disappears with autofocus enabled

I am using Ar Core Augmented Images to track and load/display and then capture the image. It was working with the one plus phone I had. But now I got a new phone Moto g6. With this phone, the camera preview is not focusing. The image is blurred. So I used the following to enable autofocus //Create t...
Akash Kumar
2

votes
1

answer
17

Views

How to play multiple Animations using AnimatorSet?

I'm using Sceneform to create an android app that plays animation. I'm trying to start multiple Animators sequentially using AnimatorSet. The code works perfectly when trying to play two animations, but whenever I add a 3rd animation, the first two animations play then the app crashes. Here's a piec...
Jim
1

votes
2

answer
604

Views

Import Sceneform Asset option gives error while generating SFB file using OBJ file

I have an OBJ file for the 3D Object and I'm using Import Sceneform Asset to convert it to SFA but while doing so it is always giving me error stating Failed to find 'sampledata/models/plc.mtl' on disk You can see red boxes. In one them you can see gradle has created the background code for scenefo...
Karthik Saxena
1

votes
1

answer
513

Views

ARCore Sceneform ChromaKeyVideo Sampleproject how to just use the video feature

I took a look at the recently released sample project ChromaKeyVideo for ARCores Sceneform. I want to use the feature to display a video in my ar scene but without the chroma key feature. In the example project they used textures to key out the background etc. But how can I transform this sample to...
J. Hegg
1

votes
1

answer
287

Views

How can I avoid the “FrameHitTest while not tracking. Returning empty list. error message” in ARCore?

I am using ARCore and Sceneform. I receive a lot of error messages while my application tries to track images. Everything works fine, except that I have bad performance on longer runs of the app and I think it could relate to these error messages. Maybe I need to regulate the tracking interval som...
J. Hegg
1

votes
1

answer
304

Views

How to create Animation (changing Scaling, Rotation or Position) for a Node in ARCore Sceneform?

I'm using ARCore Sceneform libraries in Android Studio. I'm having trouble to find a method to perform a scaling animation to a node when it is set to enable (like the Quaternion used to rotate a node in Solar System by Google). //On Tap Listener scannerVisual.setOnTapListener(((hitTestResult, motio...
Sandeep PS
1

votes
1

answer
174

Views

ARCore – Image from arFragment is different from the fragment's display

I am working with ARCore in one of my project. I am using the arFragment in the view. From that, I use arFragment.getArSceneView().getArFrame().acquireCameraImage() which returns an image. This image and the preview in the fragments displays are different. I thought that what I see through the AR f...
Angathan Nesarasa
1

votes
1

answer
133

Views

Can we highlight all the Detected Planes in the ARCore app?

At present, there is circles texture comes up whenever a Plane is detected in the scene but I want to highlight all the area of the plane instead of the small circle in the center. Is it possible to highlight the Detected Plane in the ARCore app? I am using Java for ARCore/Sceneform for Android apps...
Devanshu Kanik
1

votes
1

answer
310

Views

ARCore - How to detect single horizontal plane only

I am working with ARCore in one of my project. There, I need to detect a plane and place some objects(Anchors) on it. In my onResume function, I created a AR session and able to detect only horizontal planes using Session configuration. @Override protected void onResume() { super.onResume(); if (ar...
Angathan Nesarasa
1

votes
1

answer
0

Views

How to display images fetching from server in ARCore?

I am building an application using ARCore where i want to display images from server. I don’t want to use obj, .smf ,imgdb file, and 3D image. I have already referred many links but none of them showing how to display images fetching from server using Arcore. val getImageURL = media['cLeft'] Log.e...
Keval Shukla
1

votes
1

answer
0

Views

How to convert YUV_420_888 image to bitmap [duplicate]

This question already has an answer here: Android Camera2 API YUV_420_888 to JPEG 3 answers I am working on AR project where i need to capture the current frame and save it to gallery. I am able to get the image using Frame class in AR core , but the format of image is YUV_420_888. I have already t...
Keval Shukla
0

votes
0

answer
3

Views

Drawing a line in Sceneform?

I wanted to know if you can draw a continous line in Sceneform just like how to draw a line in OpenGL-ES enter link description here.
Jude Asiamah
1

votes
5

answer
2k

Views

Importing models using the Sceneform plugin on Android studio but getting 'error creating sfa'

I'm trying the new Sceneform SDK from Google for AR. It says to use the Google Sceneform Tools plugin to import the assets. So I'm following all the steps mentioned here to import my assets. While importing any 3D model (in .obj or .fbx format), everytime I get this error - error creating sfa with n...
Asutosh Panda
1

votes
1

answer
605

Views

ArCore Sceneform: Play .mp4 video when detect image

When I find an image, I want to place a text and a video above it. The text view is placed on the scene but the video is not, it is just added to my main layout in the middle. I'm using the component VideoView, I'm not sure that's the problem override fun onCreate(savedInstanceState: Bundle?) { (.....
yasin
1

votes
2

answer
167

Views

How can I capture an image using ARCore Camera with objects?

I am creating an application using ARCore to display some images on blank surface. I want to capture image of that surface where object is display. I have put a capture button on AR camera screen. Is it possible to capture that view with objects in ARCore camera?
Keval Shukla
0

votes
0

answer
3

Views

Android Studio Crashes after sceneform plugin installation

Is anybody facing this issue or is it just me? Android Studio Version: 3.3.1 (Sorry for the link i donot have reputation points) https://i.stack.imgur.com/ae5dy.png
Vineet Vinnu
0

votes
0

answer
3

Views

ARCore viewRenderable with EditText view

enter image description here This is what I want to create. A view renderable that allows the user to input text and upload. Here is my current code, the button works well but EditText cannot invoke keyboard and input text. Is there some solution to this problem? Thanks in advance. private void addI...
Ivana

View additional questions