Comments (6)
Hi @J-Arji
I haven't programmed in ARKit for a while, but if I remember correctly, each animation has an identifier, so I guess you just have to get the animation you want by its identifier and then play it.
The code shown in these links might help you:
https://riptutorial.com/scenekit/example/23522/load-an-animation-from-a-collada-or-scn-file
https://stackoverflow.com/questions/29692388/scenekit-stop-continuously-looping-collada-animation
from arkitanimation.
Hi!
According to the line:
loadAnimation(withKey: "dancing", sceneName: "IdleFixed", animationIdentifier: "samba_danceFixed-1")
You're trying to load the animation samba_danceFixed-1
from the file IdleFixed.dae
. Shouldn't be something like samba_danceFixed.dae
?
You should have one DAE file for the idle position and another one for the dancing animation and you should load the dancing animation calling loadAnimation
with the latter.
Otherwise, probably there's something wrong with the DAE file.
Check if your dancing animation file has only one animation node and that its identifier is samba_danceFixed-1
:
from arkitanimation.
It seems as though it's not returning True here:
if let animationObject = sceneSource?.entryWithIdentifier(animationIdentifier, withClass: CAAnimation.self) {
from arkitanimation.
converting the .dae to .scn the animation is still there. But the method sceneSource?.entryWithIdentifier return nothing. even tho the node has the animation keys.
from arkitanimation.
Hi @omarojo.
Sorry, I never tried with a SCN file, and right now I cannot help you, my mac broke a few months ago and I have been disconnected from the iOS world since then.
But are you using the latest version of XCode? If so, maybe entryWithIdentifier is now deprecated or there's a new API for this.
Maybe someone else can see this issue and help.
from arkitanimation.
hi
when multi animation includes dae , how can play animation?
from arkitanimation.
Related Issues (3)
- Transition jerks when stopping HOT 1
- Obese male: Obj. file? HOT 3
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.
from arkitanimation.