Techniques for smooth continuous motion in a game

Hello all,
I'm working on a brick-breaker variant and all is going well except for the motion of the ball-- it isn't as smooth as I'd like.  I've done some reading on the subject and have come away with two promising techniques for smooth continuous animation:
1. Use time based position update functions rather than frame-based.  This basically allows you to cheat the SWF's FPS setting and make a certain object move more fluidly without jacking up the entire movie's FPS.  This is handy and does have a dramatic effect, but it also costs much CPU and/or battery power to process so it (might) not be suitable for continuous motion.  It is better left to tweens and other animations that are both short and critical.  Also, I found that in order to get the ball moving at a reasonable speed for difficult gameplay I had to either lower the time delay or increase the velocity modifier to the point that the ball appeared to half-vanish much of the time (presumably) because it was getting too far ahead of the movie's frame renderer.  As such, this method really isn't suitable for managing continuous core gameplay mechanics.
2. Convert velocity modifiers to floating point values rather than integers.  This worked very well to smooth out the motion a bit, and has had no adverse side effects so far as I can see.  It doesn't quite get the ball to the level of smooth animation I'd like, however.
Currently my movie's FPS is set to 45 and I'd prefer not to go any higher than that if possible.  With floating point modifiers and 60 FPS everything is very smooth, but I am wary of using an FPS setting so high, particularly as this is eventually going to be a mobile app and therefore battery life is a consideration.  Does anyone know any more tricks to smooth continuous, game-mechanics-centric motion?
Is there perhaps any magic that can be worked with the new Stage Video API and/or any other hardware acceleration offered by flash player/AIR?  Is Stage Video even usable in iOS and/or Android apps created in Flash CS5?
Thanks,
CCJ

What was the Bit-Rate of your Exported MOV file?
Good luck,
Hunt

Similar Messages

  • Smooth Slow Motion from 50 fps Clip in 50 fps Timeline

    If I want 50% smooth slow motion from a 50 FPS video clip, I would normally ask PP to interpret that clip as 25 FPS - that works great.
    If however I import the 50 FPS video clip and interprett it as 50 FPS, I would have to set the speed of the video clip in the timeline to 50% to get the same level of slow motion.
    The question is - when I follow the latter method, does PP create new frames for the slow motion or is it clever enough to use all the frames from the original 50 FPS video clip? to put it another away, does PP always generate NEW frames for slow motion or does it try to use the frames we are attempting to ignore?
    I've done some basic tests and so far I can't see any real difference between the two methods. This leads me to beleive PP is effectively using all of the original 50 frames when the 50 fps video clip is imported into a 50 fps timeline and then slowed down in the timeline by 50%. - if this is the case, well done PP!!! If this is not the case, then it would be a welcomed enhancement in future releases.
    I guess what you are all wondering is why would I want to import a 50 fps video clip into a 50 fps timeline and then slow it down in the timeline - well, as a wedding Videographer, it is simply because some parts of the video need to be in slow motion and other parts like messages and speeches need to be interpreted at normal speed. If playback in the timeline is at normal speed, i find it simpler to slow down the "Walking Down the Isle" clips rather than having to speed up the speeaches and messages.
    In short, when importing 50 fps video for smooth slow motion, are both the following methods equally effective in terms of smooth motion?
    Method 1: Import the 50 fps video clip into 25 fps timeline
    Method 2: import the 50 fps video clip into 50 fps timeline and set the speed of the video clip in the timeline to 50% - I'm assuming PP does not generate new frames and gets them from the original 50 fps file instead..
    To put it another way, does PP ALWAYS attempt to generate new fromes when slowing down video in the timeline? When extra frames are available in the original video file, does PP try to get the extra frames from that file instead of generating new ones?

    I recorded 2 video clips of the same scene. The camera was panning from right to left.
    First video clip - recorded at 25 fps
    second video clip - recorded at 50 fps
    Both video clips recorded at the same panning speed of the same scene.
    1. If I import the 25 fps video into 25 fps timeline and slow it down by 50%, the exported video looks jerky.
    2. If I import the 50 fps video clip into 25 fps timeline, the exported video looks smooth motion.
    3. If I import the 50 fps video clip into 50 fps timeline, slow it down in the timeline by 50%, and export the video as 25 fps then the result is still smooth motion.
    I've only done the experiment once and may have to repeat to be absolutely sure.

  • FCP 7. Best technique for slow motion

    What is the best techique or plugin for effective slow motion?
    Right-clicking on a clip and adjusting time is not good. I have tried sending to Motion and adjusting the timing there but it softens the image.
    Is Twixtor the way to go??
    Thanks

    I'm late to the party but somehow I ended up here.  I'm reteaching myself this now.  I remember Captain Mench had a solution for this on the ProVideoCoalition site at one point for taking 60i footage and conforming to 24p using Shake.  The key element was Optical Flow, Motion uses OF as you know.  But I've just been doing a bunch of tests all night with some 60p (59.94) that we shot last week.  The CrumplePop tut is the one I've been following for Motion 4 and some random youtube stuff using Time Warp for AE tests.  The consensus seems to be each technique, including Twixtor, has limitations depending on the footage. AE better in one instance, Motion/Shake/Boris Red in another, Twixtor generally better than everything but still with flaws.  Let alone the other factors like did you shoot 60p to begin with?  Was the shutter 1/60 or 1/1600?  Other great tidbits like  this slomo conversion chart and this other Motion tut, 3 steps and bang!  I gotta go to sleep, hope this helps.
    Forgot this guy, of course he has some great tips from his friend on  using Twixtor.

  • Smooth Sinusoidal Motion without Gearing, Onboard Buffer/Contouring?

    Hello,
    My end goal is to have a stepper motor (200 steps/rotation) produce a smooth sinusoidal motion at 1Hz with an amplitude of 200-500 steps. Everything I've read so far has lead me to believe that this is impossible given the 7330 Motion Controller.
    My best results were produced when an array of points were created, and used to change the Target Position inside a While Loop. The frequency was varied by changing number of points in the array that represent a complete cycle (an array of 32 data points results in a higher frequency than an array of 64 data points). However, this was not acceptable as the motion at 1Hz was not smooth. I've tried playing around with acceleration, deceleration, velocity, and S-curve Time, but to no avail.
    I've thought about using the built in "Load Circular Arc" VI, and just assigning the 2nd motor axis as a dummy output, but this is not a good solution as I will eventually be using all 4 axis of the Motor Drive.
    My question: Is it indeed impossible to produce a smooth sinusoidal motion of 1Hz with a 7330 Motion Controller? I realize "smooth" is objective, but the motion produced by the "Load Circular Arc" VI is "smooth" enough.
    Equipment/Software:
    PCI 7330 Motion controller
    MID-7604 Motor Drive
    LabView 2009
    Any information towards this matter is greatly appreciated. Thank you,
    Nick
    Solved!
    Go to Solution.

    Nick,
    as it looks like you have already found all possible solutions for your task. In fact arc moves with a dummy axis would be the only reliable solution for your setup. If you can't afford to waste an axis, the only alternative solution is to switch to a 7344, which supports contouring.
    Please note, that the 7330 is our low cost solution for basic motion control tasks with stepper motors. Advanced trajectories are not within the scope of this product, so if this is a requirement, please contact your local NI branch. Depending if you have just recently purchased the 7330 or not, they might be able to offer you a hardware upgrade to the 7340.
    Kind regards,
    Jochen Klier
    National Instruments

  • Smooth continuous rotation

    The desired effect is a smooth, continuous rotation while
    waiting for some action to complete. The code below works except
    that the image pauses slightly after each rotation. The code is
    quite simple. Does anyone have a suggestion?
    // set the target
    effect_rotate.target = image_busy;
    // start the rotation
    effect_rotate.repeatCount = 0;
    effect_rotate.play();
    // the effect definition
    <mx:Rotate id="effect_rotate" />
    // the image definition
    <mx:Image source="images/yinyang.png" id="image_busy"
    />

    I created a small test application to show you the pause in
    rotation. As it turns out, the test applications works perfectly.
    So I will examine the differences between the test app and my app
    to find out the problem.
    FWIT, here is the test app. You will need to change the image
    to one of your own.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.effects.easing.Linear;
    import flash.utils.setTimeout;
    // handles clicks of all buttons
    private function clickHandler(event:MouseEvent):void{
    busyHandler("start")
    setTimeout(stopIt,5000); // delay 5 seconds to view rotation
    // stops the rotation
    private function stopIt():void{
    busyHandler("");
    // busyHandler to give visual indicator of working on
    emailing/faxing/printing
    private function busyHandler(message:String):void{
    if(message == "start"){
    effect_rotate.repeatCount = 0;
    effect_rotate.duration = 200;
    effect_rotate.angleFrom = 1;
    effect_rotate.angleTo = 360;
    effect_rotate.repeatDelay = 0;
    effect_rotate.play();
    }else{
    effect_rotate.end();
    ]]>
    </mx:Script>
    <!-- define effects -->
    <mx:Rotate id="effect_rotate"
    easingFunction="{Linear.easeNone}" target="{image_busy}"/>
    <mx:HBox>
    <mx:Button label="Rotate" id="b_rotate"
    click="clickHandler(event)"/>
    <mx:Image source="@Embed('/images/yinyang.png')"
    id="image_busy" />
    </mx:HBox>
    </mx:Application>

  • Wanted - smooth continuous repeats

    Sorry, this is not iDVD, but, where do I ask?
    I have Toast 8 on my iMac and I want to create DVDs that not only auto-play - I see setting this enables the disc to endlessly repeat - but it is unfortunate there is an approx. 1 second freeze at the end before it repeats, on both of my stand-alone DVD players.
    Is there anyway to set Toast to make smooth continuous repeats, kindof like instant jump cuts?

    Is there anyway to set Toast to make smooth continuous repeats, kindof like instant jump cuts?
    No. Not that I'm aware of. You're actually lucky if it only takes one second in Toast for it to repeat the movie. Mine usually take at least twice as long.
    The only other suggestion I have is to make a series of movies (of the same movie) all strung together on the same DVD and that way when it does repeat the series it is less noticeable.

  • What are the permitted compression techniques for PDF/A-1?

    The PDF/A-1 standard does not specify how compression is performed. What are the permitted compression techniques for PDF/A-1?
    The information I have gathered (not sure if all are true)
    LZW should not be used
    JPEG2000 may not be used
    Few say, JPEG can be used but its a lossy compression. (PDF standard clearly states lossy compression can't be used)
    Also, how to figure out whether a particular file is PDF/A-1a or PDF/A-1b and what kind of compressions are used in that file?
    Thanks in advance.

    For better or worse, ISO specifications are written in a language from a parallel universe.    After dealing with ISO standards for a while, you learn what specific words really mean. I should know - I am chair of the ISO PDF/X task force and co-chair of the PDF/VT task force.
    The word should does not specify a requirement. PDF/A does not prohibit lossy compression.
    JPEG is always a lossy compression. There is a mode of JPEG2000 compression that is indeed lossless. Note that JPEG and JPEG2000 are totally different compression schemes. (I believe that PDF/A-1 as well as PDF/X-1a and PDF/X-3, based on older versions of the PDF specification do not permit JPEG2000. PDF/A-2 based on ISO32000-1 and PDF/X-4 based on PDF 1.6 do allow for JPEG2000.)
    ZIP compression is lossless.
              - Dov

  • When importing photos with iBooks Gallery widget, is anyone aware of a technique for simultaneously importing the photo's description (or jpeg file name) and writing it into the iBook Author caption field for the imported photo?

    When importing photos with the iBooks Author Gallery widget, is anyone aware of a technique for simultaneously importing the photo's description (or jpeg file name) and writing it into the iBook Author caption field for the corresponding imported photo? I have 4,800 stills to import and can't imagine it's necessary to copy and paste the description for each.

    As always, feel free to use the 'Provide iBooks Author Feedback' menu item for features you'd like added in the future, etc.
    http://www.apple.com/feedback/ibooks-author.html
    As for AS, I'm not sure anyone has sniffed iBA's dictionary yet...google is you friend for hot prospects, I'm sure

  • What is the best technique for resetting a view?

    I was wondering what is the best technique for resetting the initial state of a view?
    I am creating a form and want to provide a reset button for the user.  I could write an initialize() method that my action handler calls, but I am wondering if the framework already provides this functionality in a more elegant way.
    If I write an initialize method, then I have to manually populate my fields with my context mappings in my initialize() code to mimic what happens automatically by the framework the first time the view is called.  This seems prone to error since this is duplicating the mapping logic.
    Michael

    Hi,
    Even though it boils down to the same logic, for consistency sake it is good to have the initialization logic coded in the inbound plug method and then to call the outbound plug on reset.This make more sense when you have multiple navigation possible to the same view through multiple inbound plugs.
    Else, have an initialization method.
    PS: check whether the reset() method of IWDContext make sense. This is helpful when you have remove dynamically added nodes and attributes.
    Thanks and Regards,
    Sam Mathew

  • Techniques for New Product Introduction in Demantra 7.3.0.1

    Hi,
    In Demantra 7.3.0.1 there are two ways for New Product Introduction:-
    1) Demand Planner: Member & chaining management
    2) Collaborative Workbench: Create Similar product
    Can someone please tell me the pros and cons of each technique.
    The new product introduction will be handled by our clients, so I wanted to know if all the required features can be handled by just one method so we can propose that to be used by the client. Or do we need to use both techniques for different scenarios?
    As I understand with Chaining one can link one item to many sites at one go, while with CW the similar item is created linked to one particular location.
    Also CW allows for adding cannibalization factor which is not accounted for in chaining.
    Apart from this it would be really helpful if someone could throw some more light on the issue.
    Thanks.

    Hi Gaurav,
    I personally feel that 'Create Similar product' is a much required improvement over the original way of NPI using Member & Chaining Management.
    Also with CW as well, a new and similar item created can also be linked to multiple location, same as Source Item, depending on the filters used in the Worksheet from which the create similar product is invoked.
    some of the PROS and CONS of the 2 methods are as follows:
    Demand Planner: Member & chaining management
    Pros: 1) Can be used to specify the time range for copying the history date.
    2) Can be used to specify the Percentage by which the source data needs to be adjusted while copying into the target combination
    3) An important feature is that this can be used to do chaining at an aggregated level.
    Cons: 1) It takes a long time to setup a New Member, combination and Chaining relationship.
         2) High User involvement since user has to perform muliptle tasks and more error prone.
    Collaborative Workbench: Create Similar product
    Pros: 1) User-friendly
    2) Users needs to enter a few datapoints in single form and does not need to navigate through multiple forms/screens
    3) Ability to specify Cannibalization parameters as well as Launch dates
    4) Good performance.
    5) Ongoing Chaining
    6) When coupled with features like 'End of Lifecycle date', it provides a complete Business solution           
    Cons: 1) Can not be used for only performing Chaining.
    2) While it can be used to create a New Similar Product, it cannot be used to create a new similar Customer based on an existing item-location combination data. This,though, may not be a very common scenario.
    3) Apart from copying other Item attributes, the method also copies the same 'Item Description' level from source to the new similar product, which sometimes can be very confusing.
    Hope this helps.
    Thanks,
    Rohit Goyal

  • HT204088 how to I find out the most recent deductions to my account from the app store (say, for a recent download for additional functionality on a iPad game)

    How to I find out the most recent deductions to my account from the app store (say, for a recent download for additional functionality on a iPad game). Much as I try, I can't seem to get to see my account in enough detail to see what I have spent downloading apps to the ipad.

    You need to punch in the passcode for any purchase right, not just for new apps??
    If one of the other students, or anyone else, got access to your iTunes Store account, necessary to make any purchases, then they'd have all the information they'd need to also make in-app purchases. But an in-app purchase can only be made through the account through which the original app was purchased. Either your son bought the game (free or paid) and then shared it with someone else along with the account information (necessary to authorize the app on someone else's device), or someone else downloaded the game as well, not just made in-app purchases.
    In any case, changing your iTunes Store password should now have cut off any such unauthorized activity, though of course if your son gives the new password out, you'll be back to square one.
    Regards.

  • New Enterprise Manager Book on Advanced EM Techniques for the Real World

    Dear Friends,
    I am pleased to say my first EM book can be ordered now.
    Oracle Enterprise Manager Grid Control: Advanced Techniques for the Real World
    [http://www.rampant-books.com/book_1001_advanced_techniques_oem_grid_control.htm]
    Please let your colleagues and friends and clients know – it is the first book in the world to include EM 11g Grid Control. It is a great way for people to understand the capabilities of EM.
    Oracle’s Enterprise Manager Grid Control is recognized as the IT Industry’s leading Oracle database administration and management tool. It is unrivalled in its ability to monitor, manage, maintain and report on entire enterprise grids that comprise hundreds (if not thousands) of Oracle databases and servers following an approach that is consistent and repeatable.
    However, Enterprise Manager Grid Control may seem daunting even to the most advanced Oracle Administrator. The problem is you know about the power of Enterprise Manager but how do you unleash that power amongst what initially appears to be a maze of GUI-based screens that feature a myriad of links to reports and management tasks that in turn lead you to even more reports and management tasks?
    This book shows you how to unleash that power.
    Based on the Author’s considerable and practical Oracle database and Enterprise Manager Grid Control experience you will learn through illustrated examples how to create and schedule RMAN backups, generate Data Guard Standbys, clone databases and Oracle Homes and patch databases across hundreds and thousands of databases. You will learn how you can unlock the power of the Enterprise Manager Grid Control Packs, PlugIns and Connectors to simplify your database administration across your company’s database network, as also the management and monitoring of important Service Level Agreements (SLAs), and the nuances of all important real-time change control using Enterprise Manager.
    There are other books on the market that describe how to install and configure Enterprise Manager but until now they haven’t explained using a simple and illustrated approach how to get the most out of your Enterprise Manager. This book does just that.
    Covers the NEW Enterprise Manager Grid Control 11g.
    Regards,
    Porus.

    Abuse reported.

  • Any recommendation for to continue ?

    I was working in Oracle Forms, but now I decided to learn. I am study Java for the first part (Getting started) but there are more chapter but, I like to make application like account system. I was thinking to junk to java Swing for to continue studying. What do you think ?

    I think I might have steak for dinner tonight!
    No wait, pizza! Haven't had pizza in ages.

  • How do I set-up my memory amount for max speed for FCP and Motion

    Hey all, I have a Dual 2.3 G5 with (8 Gigs) Ram. I'm working with a new client. I want to set up my memory or whatever else to provide MAXIMUM processing power for FCP and MOTION. Does anyone have any recommended settings. I've maxed-our RAM. My card is (ATI Radeon 9600-128MB of VRAM)
    Is there a setting in FCP that allows more processing power to be applied to that application ?
    Appreciate any replies

    Most of FCP's speed in performing functions is directly related to processor speed. The only way to increase performance would be to use a Mac with faster processors. Performance is also related to data throughput, so if you're working with high data rate video formats, a fast RAID and/or SATA (or eSATA) media storage solution would help.
    The exception to FCP performance is when rendering/processing FX Plugs; they are dependent on the power of the graphics card.
    Motion is mostly dependent on the power of the graphics card.
    There is no way that I'm aware of that you can speed up RAM. Having the extra RAM will just mean that you can successfully work with more applications open at the same time.
    -DH

  • Will intel hd 3000 enough for watching hd videos and play games on medium settings?

    I am planning to buy a macbook pro 13" with i7 2.7ghz and 8gb of ram. Will it be ok for intel hd3000 to run hd videos and games in low settings?

    Some 3D games won't run at all, some will but severely disabled.
    Any that do manage to run won't for long as updates and new games come out requiring the more powerful cards. You'll be sorry buying that machine for gaming when Lion rolls out.
    If you want a future proof 3D gaming laptop, you got to go the 2.2 Ghz 15" and higher with the 1GB Radeon 6750M. 3x faster than the HD 3000.
    Seriously.
    And if you really want a powerful 3D gaming machine with the most choice of games and hardware upgrades, then your going to go with a Windows tower as your going to be upgrading the video card about once a year, overclocking and doing all sorts of other tricks.
    See the HD 3000 score on this page, it's about a 11. Pitiful.
    http://www.cbscores.com/index.php?sort=ogl&order=desc
    I guess you could go the MacPro > bootcamp route, but that's not very cost effective for a gaming box.

Maybe you are looking for

  • Chain Reports

    I have a client that wants to print 2 reports with one click in her application. Since I don't have the source code to the application, I cannot change the behavior to print 2 reports. So I am trying to embed one report into another in a Crystal Repo

  • 10.6.7 iTunes and Maybe General Sound Issue

    I updated to 10.6.7 today and now iTunes will not open and I am getting a (-200) error. Also, when I adjust the volume, I am no longer getting that 'doink doink' sound, so I don't know if they're both related. I still have functioning sound through o

  • Cannot open facebook website in OSX 10.5

    I'm having trouble with my wifes iMac running OSX 10.5.3. She cannot visit facebook. I know there are a lot of posts about this around but I haven't been able to find an answer. I have a macbook pro (10.6.6) and two pc's and none of them have any tro

  • Problem with subtotals on Smartform. SRM 5.0

    Hello, Iam facing one serious problem with one smartform on SRM 5.0. Using the automatic "calculation" of one table in main window i have set the subtotal calculation. This calculation is not working because the form is getting always the item from t

  • I don't like 7.0.2 and want to keep the earlier version

    I don't like 7.0.2 and want the older version. I can easily burn cd's, the older version has a huge icon that is not confusing. However, I can't use the store without the newer version what can I do? Should I just sart using another friendlier mp3 se