Cinematic Swooping Camera

Posted By: Ichiro

Cinematic Swooping Camera - 09/17/08 05:32



Ever want to do an exciting swooping camera like they do in Grid? Don't be ashamed -- I've always wanted to. We've created and released some code that'll do just that (download this at www.dejobaan.net/3DGS/camera_swoop.zip). Are there others? Maybe. I don't know. We tossed in some nice cubes with a modified version of the FFP cubemap shader for fun. This was done with A6, since we're still using that with our production code.
Posted By: Inestical

Re: Cinematic Swooping Camera - 09/17/08 06:26

Wow, thanks Ichiro! You're the man.
Not to forget the other Dejobaan people. You're all awesome. I mean.. AWESOME.

Now. Let me have a look at it..
Posted By: badapple

Re: Cinematic Swooping Camera - 09/17/08 06:58

hi ichiro , i live in massachusetts too, i live in holden are you near there? and your camera sounds very cool but havent seen it yet
Posted By: frazzle

Re: Cinematic Swooping Camera - 09/17/08 07:31

Very handy indeed, this will be quite salutary for a plausible camera motion during cut scenes smile smile

Cheers

Frazzle
Posted By: Pappenheimer

Re: Cinematic Swooping Camera - 09/17/08 11:46

That's a very nice piece of code! smile Thanks a lot!
Posted By: Nidhogg

Re: Cinematic Swooping Camera - 09/17/08 12:41

Thanks Ichiro, defently come in handy..
Posted By: Ichiro

Re: Cinematic Swooping Camera - 09/18/08 02:14

Originally Posted By: badapple
hi ichiro , i live in massachusetts too, i live in holden are you near there?


http://maps.google.com/maps?f=q&hl=e...e=UTF8&z=10
Posted By: DavidLancaster

Re: Cinematic Swooping Camera - 09/18/08 02:44

Thanks Ichiro this is really nice code!

May I ask what determines the direction the camera swoops along the cos curve?
Posted By: Ichiro

Re: Cinematic Swooping Camera - 09/18/08 03:12

If you're asking what determines the shape of the arc, it's the skill_px (and _py and _pz) values. Here's a prototype I did in Processing (takes a moment to load) -- the target is shown in blue, and has _px and _py values equal (1.0). The camera is shown in orange, and has a _px of (I believe) 2.0 and a _py of 1.0, which means that the camera will approach its target more quickly.

If that all make sense. It's late. smile
Posted By: DavidLancaster

Re: Cinematic Swooping Camera - 09/18/08 13:59

Thanks Ichiro that makes sense! Have you thought about getting the camera to move along a benzier curve? Or isn't that really needed as the motion feels like that because of the way the target point moves.

Great work!! I love it!
Posted By: Trooper119

Re: Cinematic Swooping Camera - 09/18/08 20:39

Very nice piece of code, thanks for the contribution.
Posted By: cro_games

Re: Cinematic Swooping Camera - 09/18/08 23:30

Nice code I like it,and I like the shader to..
Posted By: Puppeteer

Re: Cinematic Swooping Camera - 09/11/09 20:16

I converted it to lite-c and made the code much smaller without using entitys:
Download
I hope it is okay like that...
Posted By: Ichiro

Re: Cinematic Swooping Camera - 09/11/09 20:49

Neat!
Posted By: Cowabanga

Re: Cinematic Swooping Camera - 09/11/09 21:00

@Puppeter:
That's awesome, thanks! laugh
Posted By: Germanunkol

Re: Cinematic Swooping Camera - 09/20/09 07:18

Still looking great, very nice!

What I'd be interested in is if it was "truly" 3 dimensional (sorry for the "truly, it makes it sound bad, which it isn't, but I can't think of a better word). What I mean is that I don't see the camera in the code go beyond a tilt of 90 degrees... which I always found to be the hard part in coding cameras.
Posted By: Puppeteer

Re: Cinematic Swooping Camera - 09/20/09 11:20

You mean something like instead of rotating 180° pan when tilt is about to get higher then 90°, keep on tilting and then roll over or something like that?

I was planning to add the possibility to create camera paths with more than 2 points, so you can create smooth pathways around corners etc.
© 2024 lite-C Forums