Hi,
I am trying to make a camera animation.
The prototype which I made using unity3d works ok but I need to watch some professional quality solutions.
I need to orbit the camera around the avatar when it is killed, in a circular orbit for some time.
eg. I need to know does the obstacles on the way become translucent.
Or does the camera avoids obstacles and move towards target etc.
I know Project IGI game has this kind of animation.
If you know any other references please reply.
Sorry that I don't play games too often.
7 replies to this topic
Ad:
#2 Members - Reputation: 147
Posted 22 February 2012 - 08:12 AM
There are 3 separate parts to this:
1. Orbiting camera movement: this is usually done by translating the camera in the z axis and then rotating it.
2. Collision detection: you can stretch a shape from the player to the camera to detect when something gets between the camera and player.
3. Collision resolution: You can have the camera zoom a little each frame towards the player until the collision is gone, or apply some graphic effect to the objects such as transparency.
1. Orbiting camera movement: this is usually done by translating the camera in the z axis and then rotating it.
2. Collision detection: you can stretch a shape from the player to the camera to detect when something gets between the camera and player.
3. Collision resolution: You can have the camera zoom a little each frame towards the player until the collision is gone, or apply some graphic effect to the objects such as transparency.
#3 Members - Reputation: 133
Posted 22 February 2012 - 04:01 PM
I made this for C#/XNA and posted it as the first (and only) snippet on my old website. It's well documented and should help you out on making your own in unity.
http://pastebin.com/McTDG7km
http://pastebin.com/McTDG7km
Current Project: TechnoFlux read all about it on my
#5 Members - Reputation: 133
Posted 23 February 2012 - 02:16 AM
What do you mean by reference then? Copy/paste my code in a XNA project and put a model in the content folder of the project and you have a working orbital camera that takes gimbal lock into account. So if thats not a reference i'm not sure what it....
Pretty much each 3th person game has a camera system that you are looking for.
Pretty much each 3th person game has a camera system that you are looking for.
Current Project: TechnoFlux read all about it on my


















