realitykit-instrument-zoo's People
Forkers
clarkntrealitykit-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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.