Combining Canvas subclasses for Animation

Hi,
I need to have some sort of surface on which I can put movable objects in order to create an animated visualization.
I thought of subclassing Canvas for:
a) having an AnimationCanvas that contains a Vector of objects
b) having movable objects (let's call them AnimationItem) that can draw themselves.
Now I have some problems which I wasn't able to solve yet:
a) How do I make an AnimationItem draw not onto itself but onto the AnimationCanvas object?
b) I'm getting Null Pointer Exceptions at the moment, when trying to create an offscreen Image for double buffering. I tried to put a private Image and a private Graphics object inside each AnimationItem, then create those in the constructor.
I'm a little stuck with this graphics stuff, can anyone help me?
Thanks,
Robert

Man that could really be better, but I'm not even close to understand the process! I'm really a beginner with AE, could you try to explain me how to do it?
I generally work with pre-set animations and include the logo I want in them, so as I don't make the entire composition I don't know how to handle them properly... anyway I believe a little ste-by-step would help!
thanks again

Similar Messages

  • Best method for animated bitmap sprites with GPU?

    I've been looking at how GPU Hardware Acceleration is achieved with cacheAsBitmap and cacheAsBitmapMatrix which I understand for static bitmap sprites (+rotation/scale) but I don't quite understand how this would be used to animate a sprite that had different animation frames.. in terms of what is done by the GPU and what is done by the CPU
    eg potential scenarios:
    1) cache sprite sheets to GPU. use copyPixels to blit the various sprites to a single canvas. In this case presumably the canvas would not be GPU accelerated because it is constantly changing every frame. Is there in fact any benefit of having the sprite sheet cached here? is the GPU actually used for the blit onto the CPU-rendered canvas?
    2) cache individual sprite bitmap(data) frames on the GPU. use object pooling for game character sprites and add them to stage on startup. Change the bitmap every frame dynamically,  for animated sprites, to one of the cached bitmapdata textures. is the GPU actually being used in this case to change the bitmap of the sprite? or is it forced to CPU processing again?
    The only scenario I currently know should be GPU accelerated is if I use a cached sprite that doesn't animate (other than rotating and scaling with the bitmap matrix).
    thanks for any advice
    J

    J, I believe (2) is how it is currently done. A better method is required! - basically the same question I have that you are helping me with . That link to 'Yeah, but is it Flash' in my post shows an example of exactly that method (individual BitmapData for each frame).
    Just for completeness I will add the one from my post (though unsure if it is even possible):
    (3) Single BitmapData sprite sheet cached to GPU. Each Bitmap that uses this sprite sheet can somehow specify the x,y,width,height of the frame within this sprite sheet to use.

  • PSD source file for animated GIF's - Fireworks CS3

    hi
    i've upgraded to Web Premium Suite CS3.
    Q: i have several PSD source file for animated GIF's created
    with ImageReday.
    how can i open/iomport/convert it in/to Fireworks CS3 without
    looing the "animation"
    many thanks
    Ueli

    ugisiger wrote:
    > hi
    > no any extras. simply 5 layers "distributed" on the
    timeline.
    > if i open a "animated" psd, so i get a file with the
    layers and one frame, but
    > loosing animation stuff like "when show witch layer an
    for how long"
    > -> there is no conversion to FW frames.
    >
    > Ueli
    >
    I don't do animations in PS or IR, but if you like, send me
    the file
    and I'll see if I can figure something out.
    Jim Babbage - .:Community MX:. & .:Adobe Community
    Expert:.
    Extending Knowledge, Daily
    http://www.communityMX.com/
    CommunityMX - Free Resources:
    http://www.communitymx.com/free.cfm
    .:Adobe Community Expert for Fireworks:.
    news://forums.macromedia.com/macromedia.fireworks
    news://forums.macromedia.com/macromedia.dreamweaver

  • Is there support for animated .gif files?

    Is there support for animated gif files using
    form builder? I can't get it to work.
    Thanks
    Sean
    I am using forms 6.0

    She used the Link Tool, specfied 'Image URL' as the Source File Format and the url of the animated GIF in the Source Filename. Hope that helps.
    Makes sense but the form is not for the web.
    I have looked at doing it with timers and switching canvases, but that is just too much
    for sloppy animation. It's just not tight enough.
    Thanks,
    Sean
    null

  • Set frame delay time for animated gif using ImageIO

    I'm trying to change the delay time of each frame for an animated gif by changing the metadata for each frame as following but it doesn't change anything.
    static private IIOMetadata setMetadata(IIOMetadata metadata, int delayMS) throws IOException
              Node root = metadata.getAsTree("javax_imageio_gif_image_1.0");
              for (Node c = root.getFirstChild(); c != null; c = c.getNextSibling())
                   String name = c.getNodeName();
                   if (c instanceof IIOMetadataNode)
                        IIOMetadataNode metaNode = (IIOMetadataNode) c;
                        if ("GraphicControlExtension".equals(name))
                             metaNode.setAttribute("delayTime", Integer.toString(delayMS));
         }Does anyone know how to set delay time for animated gif using ImageIO ?

    I'm trying to change the delay time of each frame for an animated gif by changing the metadata for each frame as following but it doesn't change anything.
    static private IIOMetadata setMetadata(IIOMetadata metadata, int delayMS) throws IOException
              Node root = metadata.getAsTree("javax_imageio_gif_image_1.0");
              for (Node c = root.getFirstChild(); c != null; c = c.getNextSibling())
                   String name = c.getNodeName();
                   if (c instanceof IIOMetadataNode)
                        IIOMetadataNode metaNode = (IIOMetadataNode) c;
                        if ("GraphicControlExtension".equals(name))
                             metaNode.setAttribute("delayTime", Integer.toString(delayMS));
         }Does anyone know how to set delay time for animated gif using ImageIO ?

  • Advantages of using Final Cut Pro for animation

    Is there anyone out there using Final Cut Pro 6 that could tell me what they feel are the advantages of using FCP 6 for animation as compared to Final Cut Express 3.5?

    Okay, cool. I was gonna use that in the first place but I'm still learning it and so far all I know how to do on it is clean up the audio. I'm going through a Soundtrack Pro book right now and had to stop because I couldn't continue without a microphone. I'm getting that microphone this week and by the time I have the next batch of audio files to edit I'll know what I'm doing in Soundtrack Pro.
    Thanks for the suggestion, I was seriously coming back to this question to elaborate for the sake of bumping this.
    Oh yeah, if Soundtrack Pro is the answer, is it possible to bypass FCP on the way in AND on the way out?
    Message was edited by: Etchie

  • Premiere timeline printing (for animation x-sheet use)

    I have used a very old version of adobe premiere (premiere 5 windows) to print timeline pdfs of pix icon and waveform of animatic quicktimes. I would add anotations to these in acrobat for specific animation timing direction ( as replacement for traditional animation exposure sheets). My problem is that adobe long ago dropped their print timeline feature in more recent versions and I can't get the old version of premiere to even launch under any recent OS....
    I'm hoping there is a way to do the same thing with new Premiere Pro CC ....(just print premiere timeline of pix icons with audio waveform).. or a third party export for animation exposure sheet use... Any Suggestions?
    Thanks,
    Woody

    Woody,
    Thinking about your situation, I wonder if something like this would be useful (what Joe suggested, but with variations):
    I just expanded a blank Narration Audio Track, to about 6x the width of the displayed Video Track, did a screen-cap, brought it into Photoshop, and Selected that area of the Narration Track, applied a Hue/Saturation Adjustment Layer to it, to give room for annotations, etc.. As I only have PrPro 2.0 on this old laptop, things will look a bit different, but with the Adjustment Layer, it will not matter if the GUI is a darker gray.
    One can always add a blank Track, where desired, and expand it to suit. One could also create a white Filled Shape, w/ grid (see below), and just have that ready to be Pasted into the screen-cap of the Timeline. One could probably create an Action, or a Script, to handle much of that automatically, or at least semi-automatically.
    It is missing the grid, that your image shows, but one could easily create that with Paths and a thin Stroke on a Layer.
    There IS a little work to be done, but not THAT much.
    Just thinking of a workaround.
    Good luck,
    Hunt

  • Best software for animated video

    What would be the best software for animated video similar to this:
    youtu.be/e9_vszxZGB4
    Thanks...

    Hi Mathew,
    You can go with Adobe Edge Animate.
    Its an premier HTML software with integrated tools for creating compliant cross-browser animation and other content.
    For more info please refer http://html.adobe.com/edge/animate/faq.html
    Let me know if you need more info.
    Thanks!
    Eshant

  • Which Program for Animation?

    Hi, I was looking into buying CC (19.99/month plan) for animating.  The little problem I ran into is which program should I choose in the drop down menu to animate?  When people make flash animations which program are they running?  Sorry if it sounds like a simple question I am just confused.  (I want to make 2D animations not 3D).  Thanks.

    Hi supergulembo,
    Welcome to Adobe forums. Sorry for the late response. This article should provide you with an insight on your question
    http://www.onextrapixel.com/2013/11/21/8-great-2d-and-3d-animation-software-for-beginners- to-professionals/
    Thanks,
    Preran

  • Key combination or gesture for full screen

    Is there a key combination or gesture for maximizing an app to full screen? In other words, is there another way to utilize this feature besides clicking on the arrows in the top right corner?

    try Ctrl + Cmd + F?

  • Can't use Bangla font in anti-alias "anti-alias for animation"....help needed!

    Hi, the problem I am having with adobe flash pro cs6 is that I am trying to use Bangla font in flash. Although the font shows up but in anti-alias "anti-alias for animation" mode, the fonts become all scattered and disordered. But when I switch to "use device font", the work okay. But in using device font, I cant really use the subscript or superscript button. So then again I have to switch back to "anti-alias for animation". I am getting sick of it. Is there any way around it?
    I have added an image for you to understand my query ............
    Someone else "deval mistry" posted the same problem on Mangal font here.... https://forums.adobe.com/thread/1697054
    deval mistry

    I found an solution.
    Uninstalling AirParrot as well as the two offending AirParrotDriver.kext and APExtFramebuffer.kext files in System>Library>Extensions was the fix. All problems disappeared.

  • Is it possible to write a combined add-on for Firefox (desktop) and Firefox (Android and iPhone)?

    Dear Mozilla-Support-Team,
    I am thinking about a new webservice based on an add-on for Mozilla (and other Internet Browsers).
    In general, is it possible to write a combined add-on for Firefox (desktop) and Firefox (Android and iPhone)? Or do both Mozilla-worlds (desktop / mobile) differ and therefore require to write seperate add-ons (just Desktopn AND mobile or Desktop AND Android AND iPhone).
    Thank you very much for your help!

    It can be the same extension though you will likely need to write different code for FxAndroid and Fx Desktop.
    https://addons.mozilla.org/en-US/developers/docs/getting-started
    https://developer.mozilla.org/en-US/Add-ons/Firefox_for_Android
    https://developer.mozilla.org/en-US/Add-ons/SDK
    In the future you should ask questions on on of the developer lists. https://groups.google.com/forum/#!forum/mozilla-labs-jetpack

  • Photoshop Elements 12 for animation

    I've just bought Photoshop Elements 12 with a view to using it to create simple 2D animations. 
    However, all the tutorials seem to either ignore tihs use or are based on earlier versions and I can't seem to follow them as 12 doesn't work quite the same way/have the same icons/menus. 
    Can someone please help point me in the direction of something that will help me with creating/editing animations, or tell me I'm using fundamentally the wrong software for animation and should just give up and buy something else (in which case any suggestions gratefully received!).  I'm using Photoshop on a PC. 
    Many thanks

    You would really need the companion program Premiere Elements 12 as ideally key frames are needed for video and animation.
    See this video tutorial for an idea:
    http://www.youtube.com/watch?v=jGxeGar3xs4

  • Importing transparent PNG files from PS CS5 to Flash CS5 for animation.

    Hey all, just signed up specifically to try and find a solution to this problem!
    Im using PS CS5 to build the parts of animation i am making in Flash CS5. Im not using PS for the animation as the GIF quality is horrendous, and also rotating layers for animation is a no go!
    Anyway, im saving the individual layers in (Save for Web) as PNG-24 files with transparency. Then importing them 'To Stage' in Flash. That side is all good.
    When ive made the animation in Flash and go to 'Publish Preview' there is a 'background' there. Also there is a border around the files on the stage. This appears to be the size of the 'background' in the animation. Transparency is set in the GIF settings.
    This is beyond frustrating, and I havent been able to forget about it all weekend!

    So are you trying to export this aninamtion as a .gif and not a .swf?
    Either way I would suggest you re-test a couple of steps in the whole process to see if you can isolate where the problem is.
    To start with in PS, are you working on a transparent background? or a white background? must be transparent....
    For testing, create a couple of images with a transparent background in PS. Or use just one or two of your layers, save the file, import to Library in Flash, place on your stage, give you Flash doc a non-white color and test. . There should be no border or background around the image...
    And if you use wmode of transparent in the html, even the background of the Flash doc will be transparent.
    Best wishes,
    Adninjastrator

  • PS SC3 Ext - Keyframe 3D .obj for animation  WTF????

    Hi guys,
    I'm working on a axe throwing sequence,  I've imported the Google Sketchup 3D model of the axw as a .obj file, no problems.  I can use the 3D tools to rotate it, it looks great.  Now I've like to animate it and need a little help.  I open the animation window and set the frame rate and duration, no problems.  I want the axe to spin across the 1 second duration.  I figured I'd keyframe the postion at start with the axe at 0 degrees, set another keyframe of the axe rotated at half way and full return keyframe at end.  Keyframes set up but they aren't working to control the rotate, it seems I can rotate the model  but can't lock it to points in time for animation.  How do I keyframe the axe do that it rotates animated??

    Question Nulled,
    I reckon I got it figured, ans = 'cs4 upgrade', improved workaround.

Maybe you are looking for

  • Word Templates

    Hi Can anyone say how we can edit the word template(dochmnl1) which is used when we export sales or purchasing documents to MS-Word? Regards Louis

  • I don't want my iPhone with my Outlook Contacts

    Hi I have iTunes instaled in my company computer (windows). In that computer, I have outlook (and the outlook contacts). Every time I sync my iPhone 5 with iTunes I get all those contacts in my iPhone contacts! And I dont want that! I tried to unthic

  • Suggestion :  Have the "Top Users in Forum" report based on 30 days

    Currently, the "Top Users in Forum" listing is based on cumulative points. This means that we will never see "rising stars !". If the list were to report based on, say, points earned in the past 30 days, we'd at least be able to note some "rising sta

  • Problem installing Flash Player 11, latest version

    For days now, I have been attempting to install the latest Flash Player (due to consistent warnings that my installed FP is "vulnerable").  I have disabled Firewall; uninstalled existing FP; and still the installation stops at 7% - pause - jumps to 4

  • Sound interference with my apple tv. Why?

    Why is there sound interference when I am playing a film or music on my apple tv?