Search Unity

Question Detect a rubiks cube in AR

Discussion in 'AR' started by PhobosRandom, Mar 29, 2023.

  1. PhobosRandom

    PhobosRandom

    Joined:
    May 13, 2020
    Posts:
    26
    Hello everyone,

    I'm using ARfoundation and ARcore and unity 2022.1.21f1.

    I recently tried to create an AR project for android revolving around a rubik's cube, but I'm having a lot of trouble detecting the rubiks cube and even more trouble keeping track of it. To help track the cube, I've put a custom marker on the center of each face, but it still have trouble tracking.

    I've also tried using vuforia but the result is the same.

    I don't want to use ARkit because I don't have any apple device to test or build.

    Do you have any idea how I can achieve my goal and what I can use ?
     
  2. WyattBUnity

    WyattBUnity

    Unity Technologies

    Joined:
    Mar 27, 2023
    Posts:
    46
    andyb-unity likes this.
  3. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    I think you have to switch for custom tracking with something like OpenCV for this. Image tracking won't work good enough and dont know of any tools that will fit well
     
    PhobosRandom and mgear like this.
  4. mgear

    mgear

    Joined:
    Aug 3, 2010
    Posts:
    9,433
    PhobosRandom likes this.
  5. DevDunk

    DevDunk

    Joined:
    Feb 13, 2020
    Posts:
    5,057
    ARKit is a LOT better with image and object tracking.
    These bigger images are a lot better to track for any system however, cool idea
     
    PhobosRandom likes this.
  6. PhobosRandom

    PhobosRandom

    Joined:
    May 13, 2020
    Posts:
    26
    Thank you for all the answer, it really helped, I decided to customize entirelly the faces of my cube so that the application can detect it more easily as the AR cubes you showed.

    It's much better now !
    Here is a look to one of the face I designed BlueFace.jpg
     
    thomas_key and mgear like this.
  7. PhobosRandom

    PhobosRandom

    Joined:
    May 13, 2020
    Posts:
    26
    I wish I could use ARkit but I don't have an Iphone to test, so I'm using vuforia for now
     
    DevDunk likes this.