Code Monkey home page Code Monkey logo

arcms's People

Contributors

david90 avatar rickmak avatar yipsang avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

arcms's Issues

VODownloader flow refractor

Current VODownloader flow are hidden in the chain of completion callback. It makes the code difficult to follow. i.e. you need to go through 5 function in details starting from the public function downloadVirtualObject to know how is the download works.

A better way is to write flow control logic in one function, and keep the actual download logic spread in those function. In your case, there is actually 3 async request. We don't need to separate those codes into 5 async function.

In additional, the download is sequential, which is not necessary.

So please take a look at https://developer.apple.com/documentation/dispatch/dispatchgroup

In result, you will have following code:

self.downloadJSON(url: url, completion: { urls in
    if !urls["textures"] {
        print("Fail to download \(texture)")
        completion(false)
    }
    allDownload =  DispatchGroup()
    self.downloadTextures(url: urls["textures"], dispatchGroup: allDownload, completion: { success in
        if !success {
            print("Fail to download \(texture)")
            completion(false)
        }
    })
    self.downloadSCN(url: urls["scn"], completion: { success in
        if !success {
            print("Fail to download \(texture)")
            completion(false)
        }
    })
    allDownload.notify(queue: .main){
      completion(true)
    }
})

And I found there is various non-symmetry API design. For example, there is removeFromLoading not no addToLoading. addToLoading are do in-line.

Tracking optimization

  • Smoothing the movement of the object to retain the feel of illusion
  • Try to use rectangle recognition to see whether tracking can be optimized

Preview on CMS

  • on afterSave, extract the zip and generate a preview image from the .scn file
    • the generated preview image shall be attach to the object record
    • then we can display the preview image in CMS

Project Setup

  • Init project setup
  • Buddybuild
  • Auto upload to hockeyapp
  • Add lint
  • Add complexity check

Using ARKit to recognize QR Code locally and place a 3D object on a surface

  • Read and decode QR code in this format
{url: 'xxxx'}
  • After reading the QR code, then to download the 3D object, during download, show HUD loading dialog
  • If QR format not correct, show HUD dialog with message "Sorry, not able to recognize this code"
  • After 3D object downloaded, close the loading dialog and place the 3D object
  • The 3D object should be cached locally after download

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.