Home › Forums › General Questions › how farmer not turn to camera
- This topic has 9 replies, 2 voices, and was last updated 1 year, 2 months ago by kdv.
-
AuthorPosts
-
2023-09-08 at 12:47 pm #66705visionCustomer
Hi,
I want to know how to get the farmer to not turn to the camera in the AR app.
I want to position the farmer against the wall (and parallel to the wall).
Only thing is, the farmer is always turning to the camera. So then it is not parallel to the wall.I have tried the set position puzzle to xyz coordinates, but no result.
1. How to get the farmer parallel to the wall?2. One other thing, the AR-cross for android use on screen is sometimes getting very small or disappearing. Is there anything to do about that?
2023-09-08 at 12:51 pm #66706kdvParticipantDisable/remove the “set direction” puzzle
But in this case your farmer will always look in one direction. So you’d better just keep your phone parallel to the wall…
sometimes getting very small or disappearing
It’s small when it’s far away. Incorrect surface detection. Maybe it’s an AR Core issue, maybe it’s an issue of you phone’s camera. And it disappears when no surface is detected.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-09-08 at 6:01 pm #66710visionCustomerBut in this case your farmer will always look in one direction. So you’d better just keep your phone parallel to the wall…
I removed the set direct puzzle, but indeed the object is only parallel to the wall when you stand parallel to the wall when clicking the cross in android.
In iOS the object is placed parallel to the wall. But in the iOS part there is no puzzle “set direction” that could be removed. So how does it know?
There must be a way to make a work-around in the android proces ?2023-09-08 at 9:33 pm #66711kdvParticipantIn iOS the object is placed parallel to the wall. But in the iOS part there is no puzzle “set direction” that could be removed.
In iOS Verge3D doesn’t participate in AR at all. Everything is done by the special program Apple’s AR Quick Look. Verge3D just exports a static scene as a file to that program.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-09-09 at 10:56 am #66723visionCustomerthanks for the update !
I understand the iOS part.
And for the Android part I have been thinking: Supose you stand by the wall at an angle.
The wall surface has been detected. The camera position is detected.
What if these two data can be combined. Maybe it is possible to get the angle (z-rotation) from camera to wall. With this angle the rotation of object against the wall can be corrected (turned away from camera on z rotation. Then object should be parallel to wall.For another AR app, the object chair is placed full-frontal in AR view. So with the front towards the camera.
However it is better to see the chair from a 30 degree angle (more from the side). So I am also trying to figure out how to extract the z rotation from camera and add 30 degrees in the set position puzzle for the object.2023-09-11 at 10:20 pm #66754kdvParticipantHowever it is better to see the chair from a 30 degree angle (more from the side). So I am also trying to figure out how to extract the z rotation from camera and add 30 degrees in the set position puzzle for the object.
This angle is zero. You just need to rotate the chair by 30 or -30 degrees after the
set direction
puzzle.Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-09-12 at 12:31 pm #66767visionCustomerI used attachment as puzzle setup, so input from get position camera puzzle. And added 30degrees.
Attachments:
You must be logged in to view attached files.2023-09-12 at 9:26 pm #66781kdvParticipantHow to unsee this?
Actually, I meant a little more simple and effective way
You just need to rotate the chair by 30 or -30 degrees after the
set direction
puzzle.Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
2023-09-13 at 11:45 am #66795visionCustomerok, thxs Did not know what to do with the x and y but apparently they can be left empty.
2023-09-13 at 12:07 pm #66797kdvParticipantYou could set them to 0.
Puzzles and JS coding. Fast and expensive.
If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of the meaning at all.
-
AuthorPosts
- You must be logged in to reply to this topic.