Giter Club home page Giter Club logo

realitykit-instrument-zoo's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

clarknt

realitykit-instrument-zoo's Issues

Questions

Hi Great tutorial.

I followed along and learned a lot about realitykit. I lasted try ARKit in version 2. I have two issues I wanted you to help with.
The first is more a usdz issue. sketchfab now supports export to usdz, so I downloaded the following file to add a fourth instrument.

Credit for Djembe Drum, Djembe Goplet Drum - by aqpetteri - https://sketchfab.com/3d-models/djembe-goplet-drum-572d364642434810abd1fa7cfb6e7782

In Xcode i set the scale to 0.1,0.1,0.1 on its local space as it's huge. It fits in the scene with the other instruments. However it moves after the animations ends. (up and towards camera). How do I address this issue? I suspect it will happen frequently if I am importing models from the web.

The next issue I had was a question. I have a loading animation playing when the models are being loaded. I would like to continue playing the animation until the objects are placed in the scene. Is there an event I can subscribe to end my animation when objects appear? I couldn't find anything, I tried SceneEvents.AnchoredStateChanged.self but this is fired a lot and crashes a second time at anchorCancellable?.cancel()

//MARK: I want to know when my objects are visible.
   var anchorCancellable: Cancellable? = nil
       anchorCancellable = arView.scene.subscribe(to: SceneEvents.AnchoredStateChanged.self, on: anchor) {
          (event) in
              if event.isAnchored && anchor.children.count == 4 {
                  anchorCancellable?.cancel()
                  self.loading = false
                  self.controlLoadingAnimation()
            }
        }

The reason I still want the animation to play is I've been testing in a busy room and it takes a while to find a plane to place objects on ( I think that's what's happening)

Again thanks for the tutorial.

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.