We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

how farmer not turn to camera

Home Forums General Questions how farmer not turn to camera

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #66705
    vision
    Customer

    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?

    #66706
    kdv
    Participant

    Disable/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.

    #66710
    vision
    Customer

    But 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 ?

    #66711
    kdv
    Participant

    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.

    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.

    #66723
    vision
    Customer

    thanks 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.

    #66754
    kdv
    Participant

    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.

    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.

    #66767
    vision
    Customer

    I 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.
    #66781
    kdv
    Participant

    How to unsee this? :wacko:

    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.

    #66795
    vision
    Customer

    ok, thxs Did not know what to do with the x and y but apparently they can be left empty.

    #66797
    kdv
    Participant

    You 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.

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.