Re: Automatic rotation of panoramas
Status: Alpha
Brought to you by:
cwalther
From: James C. W. <jfc...@ya...> - 2010-06-02 23:47:47
|
Thanks, Christian. That does work, but if I happen to drag the panorama away from the target path for too long the counter runs past zero and pipmak freezes, like you said. But I'm not sure how to solve that particular part of the problem:) Can you advise? Thanks, James CW --- On Wed, 6/2/10, Christian Walther <cwa...@gm...> wrote: From: Christian Walther <cwa...@gm...> Subject: Re: Automatic rotation of panoramas To: "Content creation for the Pipmak Game Engine" <pip...@li...> Date: Wednesday, June 2, 2010, 4:09 PM > Namely, the camera slows down exponentially as it rotates. This is > because the local variables "autoPan_speedAZ" and "autoPan_speedEL" > are updated every repitetion, so that the camera doesn't lose track > of its target if the user moves the view themselves. Is there a way > to make up for the decrease in speed? Decreasing autoPan_iterCount by 1 in every iteration (i.e. counting the remaining number of iterations) might be a way. Just make sure you don't divide by zero, keep it above some positive minimum value. -Christian ------------------------------------------------------------------------------ ThinkGeek and WIRED's GeekDad team up for the Ultimate GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the lucky parental unit. See the prize list and enter to win: http://p.sf.net/sfu/thinkgeek-promo _______________________________________________ Pipmak-Users mailing list Pip...@li... news://news.gmane.org/gmane.games.devel.pipmak.user https://lists.sourceforge.net/lists/listinfo/pipmak-users |