PlaceholderGames / DinoPark-2017

repo for Dino Park 2017, the testbed for CS3S667
2 stars 0 forks source link

Animations For Dinos #18

Closed nflint97 closed 6 years ago

nflint97 commented 6 years ago

I'm going to look into making some of the animations for the Dinos, starting with the Ankylo. If anyone wants to help me make a list of which animations are needed / wants to work on some post them here.

DoctorMikeReddy commented 6 years ago

Excellent. I'm sure others will chip in, but:

Idle Walk Run (?) Eat Drink (could just use eat?) Attack left (with tail) Attack right (with tail) Alert (head up to make a sound to make others aware of danger)

Pagec531 commented 6 years ago

I don't mind working on the Velociraptor or trying out any of the animations required for both.

DoctorMikeReddy commented 6 years ago

What's the status of this work?

DoctorMikeReddy commented 6 years ago

@nflint97 where can I get your animations?

Nicky-Jones commented 6 years ago

@DoctorMikeReddy found it for you, https://github.com/PlaceholderGames/DinoPark-2017/tree/15008134

Nicky-Jones commented 6 years ago

@DoctorMikeReddy @nflint97 I found a bit of a problem maybe Mike can get around, but I thought I would try and help Mike out with the test bed by trying to get the animation stuff working (after a little playing around and some googling) I was finally able to view the animations and potentially get some animations working, but unfortunately for @nflint97 's animations they're all in one animation and not separate, im not sure if it is possible to separate them inside of Unity itself, so I think @nflint97 needs to open up 3ds max and separate the animations.

can we confirm if the other person who was making animations have done the same? @DoctorMikeReddy

Pagec531 commented 6 years ago

If you go to the folder 13196065 and Dino's I have the velociraptor animations there if you click the velociratpor you have the model, rig and animations options. In animations you can clip the the separate segments and make it an individual animation. Mine has already been done and the velociraptor will automatically start playing its idle animation when spawned in game, I haven't added the others yet because there was no behaviors.

Nicky-Jones commented 6 years ago

@Pagec531 really? that's interesting, i didn't know you could clip them, nor did i find anything about it when looking at animations, guess i'll give that another look later. (if mike hasn't done it already by then)

Pagec531 commented 6 years ago

Yea so in blender I made them all on the same section but spaced the start of the animations out so when clipping I could see where one started and ended.

DoctorMikeReddy commented 6 years ago

Super. Will have a look in a bit. I was aware you could cut animations up from earlier versions of Unity - they are often saved in one big animation, with only the start and stop frame defining individual movements. Are these already to sample scenes? It’s often easier to see them in situ, as you can inspect how the various components fit together. Working on Seagulls right now, to get my head back in the game.

DoctorMikeReddy commented 6 years ago

Ok, have looked and can see two files, velociraptor.blend and VelociraptorController.controller in your Dino’s folder; there is also a copy of the Materials folder, but not sure why. Guessing the former is a Blender file, but I don’t have that installed. Do I need it? The second is a basic controller that forces the Raptor into Idle mode. However, there aren’t any animations I can see, and spawning a raptor therefore triggers no animation.

P.S. your Seagull code crashes Unity, so I am not using it for now

Nicky-Jones commented 6 years ago

@DoctorMikeReddy is this for Flinty's, cus if you look in the dino folder there are two animation files i believe the second one has all three animations hes completed (attack,eat,death)

https://github.com/PlaceholderGames/DinoPark-2017/tree/15008134/Assets/dinosaurs

DoctorMikeReddy commented 6 years ago

This was for 13196065. Will check yours out now. Flinty was working on the Anky I thought.

Nicky-Jones commented 6 years ago

yeah Flinty was, i thought u was doing his animations not the other fella's my mistake.

DoctorMikeReddy commented 6 years ago

Got the animations for the Anky now :-) Thanks @nflint97 I'll have to hack a walk animation somehow

DoctorMikeReddy commented 6 years ago

Ok, have installed Blender, but Unity isn't picking up the animations, @Pagec531 I'm not familiar enough with Blender and Unity to be able to work out how to get the animations working for now, so will do without. EDIT: I think the animated Raptor needs to be exported as an FBX with the animations baked in, for Unity to see them. This is how the Anky model has been animated. This shows the process, but I wasn't able to quickly reproduce the steps: https://www.youtube.com/watch?v=-sWxMPp5jME

Pagec531 commented 6 years ago

You don't need Blender to view it @rbakerusw managed to view it for me without. When you open the controller to add or remove animations click the arrow next to the velociraptor. capture capture1

You can then click and drag these animations into the controller. After that dragging in that velociraptor into the scene and playing the game will trigger its set animation.

DoctorMikeReddy commented 6 years ago

veloanim

I don’t see a velociraptor image, just a blank; no triangle to click. I’ll check again, but did get a “Blender not installed” error before installing it. Can open the file and see animations in Blender, but I don't get what you see. Using the latest version of Blender, and v5.6.3p2 Unity Note: I changed the folder name to Dinos.

DoctorMikeReddy commented 6 years ago

Nevermind, i managed to export as an FBX and now have the animations; just need to cut these up now, into separate clips. Thank you @Pagec531

DoctorMikeReddy commented 6 years ago

I'll need to create walk animations, but I have enough for now. Closing this. Thanks to all