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.

Touch Navigation(Scale & Rotate in AR Mode)

Home Forums General Questions Touch Navigation(Scale & Rotate in AR Mode)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #61758
    sylc0619
    Participant

    How can I scale and rotate my 3d object in AR mode?

    I would like to use two fingers to scale the 3d object and one finger Drag to rotate the 3d object.

    1. When I drag left the 3d object will turn left.
    2. When I drag right the 3d object will turn right.
    3. When I place two fingers on the screen and spread them apart, I can see the close-up of the 3d object on the screen.
    4. When I place two fingers on the screen and bring them together, I can see the 3d object reduce immediately.

    Note:
    1. Android / Not IOS
    2. Could I have the puzzle code?

    Thanks

    • This topic was modified 1 year, 8 months ago by sylc0619.
    • This topic was modified 1 year, 8 months ago by sylc0619.
    • This topic was modified 1 year, 8 months ago by sylc0619.
    • This topic was modified 1 year, 8 months ago by sylc0619.
    • This topic was modified 1 year, 8 months ago by sylc0619.
    #61788

    Hi sylc0619,

    You can use the drag puzzles to implement rotating/scaling on mobile. It should work in AR mode too (on Android).
    https://www.soft8soft.com/docs/manual/en/puzzles/Events.html#when_dragged

    Make sure you check enable HTML in the enter AR puzzle.
    https://www.soft8soft.com/docs/manual/en/puzzles/AR_VR.html#enter_ar_mode

    Chief 3D Verger | LinkedIn | Twitter

    #64498
    radek
    Customer

    Hi Yuri
    The problem is that drag puzzle doesn’t recognize gestures.
    So I propose that drag puzzle recognize gestures based on standard V3D control:

    PC
    Rotation (Left Mouse Button)
    Move (Right Mouse Button)
    Zoom (Scroll wheel up/down)

    Mobile
    Rotation (One Finger)
    Move (Two Fingers)
    Zoom (Two fingers move towards and away from each other)

    So based on that drag puzzle (This will also help with AR controls):

    • This reply was modified 1 year, 6 months ago by radek.
    Attachments:
    You must be logged in to view attached files.
    #64501
    kdv
    Participant

    So I propose that drag puzzle recognize gestures based on standard V3D control

    The when dragged over puzzle recognizes only one-finger touch over an object and disables the scene controls while dragging this object. Do not make simple things more complicated. Just add three buttons (move/rotate/scale) and switch between modes

    Attachments:
    You must be logged in to view attached files.

    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.

    #64505
    radek
    Customer

    I understand, but this means adding three more buttons to the UI for mobile devices where the display is very small and minimizing the UI so that the 3D model is clearly visible is a challenge. Especially in AR

    #64506
    kdv
    Participant

    You may re-work those functions to meet your specific needs. They are clearly visible in visual_logic.js.

    Or you can check the count of touches

    One more variant
    https://cdn.soft8soft.com/demo/examples/index.html?q=trans#misc_controls_transform

    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 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.