Re: [Algorithms] Frame independent Camera Shake
Brought to you by:
vexxed72
From: Jon W. <jw...@gm...> - 2009-12-19 17:20:40
|
In general, shake is a sum of almost-instantaneous impulses off-center, plus the attempts of the camera person to center the camera. Thus, you can implement camera shake as a sequence of random impulses (Brownian motion style), and a first-order error correction dampened spring. The rate and magnitude of impulses are two main tweakables, plus how much the shake affects camera orientation vs position (turns out, orientation is much wilder than position :-) I'd start with 3 degrees of orientation affect at 5 Hz, and then tweak from there (or set it at that and let the artists make it right :-) Sincerely, jw -- Americans might object: there is no way we would sacrifice our living standards for the benefit of people in the rest of the world. Nevertheless, whether we get there willingly or not, we shall soon have lower consumption rates, because our present rates are unsustainable. On Fri, Dec 18, 2009 at 11:17 PM, Amir H. Fassihi <ah...@ad...> wrote: > Hello everyone, > > I am trying to implement a camera shake feature and I was wondering what a > robust and standard technique for it could be. > Currently I am using this formula : value = a * sin(nx)/mx; to come up with > the displacement necessary for the camera node in time, however, variable > frame rates can cause the final result to behave differently. > > I was wondering what other developers do for implementing camera shakes. > > Regards, > > Amir > > > > ------------------------------------------------------------------------------ > This SF.Net email is sponsored by the Verizon Developer Community > Take advantage of Verizon's best-in-class app development support > A streamlined, 14 day to market process makes app distribution fast and > easy > Join now and get one step closer to millions of Verizon customers > http://p.sf.net/sfu/verizon-dev2dev > _______________________________________________ > GDAlgorithms-list mailing list > GDA...@li... > https://lists.sourceforge.net/lists/listinfo/gdalgorithms-list > Archives: > http://sourceforge.net/mailarchive/forum.php?forum_name=gdalgorithms-list > |