Re: [tuxracer-devel] Course precisions
Status: Beta
Brought to you by:
jfpatry
From: Jasmin P. <jf...@mu...> - 2000-04-20 01:16:34
|
On Wed, 19 Apr 2000, Steve Baker wrote: > Jasmin Patry wrote: > > > I was thinking of doing a Tomb Raider-style camera update, using > > quaternions, but your idea would also work. > > I've never played Tomb Raider. What does it do? The camera basically follows behind Lara (the main character), except that when she turns, the camera smoothly "orbits" around her until it's behind her again. I assume they use spherical linear interpolation of the quaternions, and a formula similar to this: new_orientation = slerp( alpha, old_orientation, final_orientation ) where alpha is some constant between 0 and 1 (larger values result in faster camera movements). I was thinking of doing this in camera mode two (where the camera is behind Tux and looks in the direction he's moving). As an aside, I already use quaternions to smooth out Tux's orientation, using that exact formula above -- it makes a *big* improvement. > > I'm pretty sure that there are coins in MarioKart too -- you lose them > > when you bang into other people, and you "die" (run out of gas?) when > > you run out, I think. It's been a long time since I've played, though. > > Oliver (my son) says "No Way!" - and he's an expert. :-) Well, perhaps I'm hallucinating. But to be sure I'll pull out the old SNES when I go visit my parents this weekend. :) Cheers, Jasmin -- Jasmin Patry Master's Student, Dept. of Computer Science jf...@cg... http://www.cgl.uwaterloo.ca/~jfpatry/ |