-
Notifications
You must be signed in to change notification settings - Fork 0
WIP queueEvent #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
I guess this is the causing line |
In an other project I do this
I grabbed it from here Sumarize: avoid |
Hi @hannesa2, I am not sure I understood your changes fully. By any chance, you got time to test it on your end. Is it working for you? |
No, I didn't finished it till now. |
Now I run into
But the previous error Can you solve it ? |
As per this, it happens when we call Session.update without having done session.setCameraTextureNames. Any idea how to pass texture ID here? |
I don't understand how to pass "textureId" here. I tried hardcoding it to 0 but I am again getting a black screen and the following prints in the console. E/native: session.cc:2264 Invalid ray produced by view data! |
Hi @hannesa2, By any chance did you able to figure what can go wrong? |
First, try it by your own. I see no commit from you |
@hannesa2 sorry, I missed pushing commit with my second last comment. Please take a look. Now I see "Invalid ray produced by view data!" after setting the texture name. Checking further to see if I did something wrong. |
@@ -182,6 +182,8 @@ class CameraActivity : AppCompatActivity(), GLSurfaceView.Renderer { | |||
Log.w("sessionUpdate", Thread.currentThread().name) | |||
|
|||
surfaceView.queueEvent { | |||
//session.setCameraTextureName(0) | |||
session!!.setCameraTextureNames(intArrayOf(0)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I need to use surfaceview here but I am not sure how to get texture ID for that. I don't see any similar helper function available.
As per the link given below, I set geometry when trying to place anchor but now I don't see any activity at all |
@@ -445,6 +445,8 @@ class CameraActivity : AppCompatActivity(), GLSurfaceView.Renderer { | |||
val approximateDistanceMeters = 2.0f | |||
// Performs a ray cast given a screen tap position. | |||
val results = frame.hitTestInstantPlacement(0F, 0F, approximateDistanceMeters) | |||
val displayRotation = display!!.rotation | |||
session.setDisplayGeometry(displayRotation, 256, 256) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
google-ar/arcore-android-sdk#413
temporary hack for "Invalid ray produced by view data"
I formatted code again, to only see significant changes from you. |
Yeah. Sorry i haven't configured android studio correctly yet. It's having
default setting.
…On Tuesday, March 23, 2021, Hannes Achleitner ***@***.***> wrote:
I formatted code again, to only see significant changes from you.
You use an own (non standard) codestyle
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#4 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ANHAWPVS44W6XCD7MQ7E5ATTFBAQ7ANCNFSM4ZJ7K5EQ>
.
|
I am blocked here for a long time. Not sure how to proceed further :( @hannesa2 @owahltinez your suggestion is much needed. |
It's just a demonstration what I did.
I use queuEvent please see and log the current Thread out.
Indeed it's the wrong thread
