Looking for an "scheduled animation"-oriented language

Hi guys.
I use PHP for basically EVERYTHING I do, such as writing IRC bots, servers, etc - projects that should never see the light of day because they're written in PHP. So I recently decided to have a dabble with PHP and animation. I got a cool idea of the "I wish you could..." category (that could never be done) and although the conceptualization was quite deep, the animation itself couldn't be simpler. So I tried to animate it. Using... PHP.
Right.
So, I got as far as digging out an old code snippet that figures out where the mouse position is (which is written in C, for the sole reason that PHP has no X11 bindings), and making it all "work" so that it tracked and recorded mouse movements, and then I wrote some PHP on top of that that used the GD image library to use this tracking info to render a moving a box as a series of PNG image "frames" (which I play with `mplayer mf://*.png'), which would later be a picture of a mouse cursor in the "final product", moving across my screen as part of the animation.
I kinda gave up at the point where I accepted that since the mouse was moving across a webpage in my browser, the cursor would change at certain points, and since I am really, really loathe to (read: really scared of) C, I know basically nothing about it, so the idea of writing an event-based thingy to figure out all of the cursor X and Y position; the time in seconds and milliseconds (so I know what position lines up with what frame relative to time); as well as the cursor shape... just made my head mentally spin in a major kind of way.
But unless I did that, I'd have to view each generated image in feh (these'd be ~1000x1000 images, and images of that kind of size take roughly 2 seconds to open/switch to in feh), and figure out where the mouse hit the text, and then mark that frame, and then when it hit that link, and then switched back to the text again, and then hit the other link... agh!!
So, without a doubt, I've decided that PHP is a Very Bad Idea for this project.
BUT... I've been bitten by the animation bug. I've wanted to do animation all my life, and this was my first venture into it. So I'm asking you guys, what language, for Linux, is either all about animation, or has gigantically extensive scheduled animation libraries/bindings?
And by "scheduled", I don't mean that in the sense that the animation I want to make is like Finding Nemo. I mean that in the sense that I want the routines to run such that they use all of my 2.66GHz P4's capacity and all of my 495MB (:() of RAM until all the frames are done. So no realtime, rendering-into-a-window-I-can-see-as-it-draws stuff. Just eat CPU and RAM (and swap ) until we're done. And I want it to render either to an AVI, or 3247652986528824385623 PNGs - something I can get mplayer to play at full framerate (but this may not be possible, I use fail-ware Intel integrated graphics that have no Linux support - believe me, I haven't even tried to make this garbage work with direct rendering until now).
But resources aside, I want something that's REALLY fast from a code perspective. Assembly language routines for the math-related stuff would be great, but C routines work too.
At the other end of the speed spectrum I'll leave you 3Drotate, a script that does a pile of math in, of all things, bash, to rotate still images on an axis so that they "set" into the screen like this sample image (not rendered with 3Drotate afaik - I grabbed it from google images). To render something like that using 3Drotate, but using a 1280x1024 image, it takes my PC 30 seconds. I don't know if that's simply because I have ~100MHz-ish RAM (~2GB/s as opposed to ~8GB/s for "today's" RAM) and have a 133MHz FSB, but I think it has something to do with that script's frightful overusage of bc. At any rate, I don't want to have to wait a full 30 seconds for something like that to render - I'd imagine that even with my system, 5 seconds would be enough for a large-ish image?...
-dav7
Last edited by dav7 (2008-09-14 11:06:30)

Hi, bump
-dav7

Similar Messages

  • Looking for a more universal scripting language than AppleScript or Automator

    I want to learn a cross-platform/web scripting language to automate tasks, write scripts and with the potential to create programs and web apps.
    I am looking for something that:
    - is not a program with a GUI like Automator, iKey, Quickeys, Maestro... 
    - is more "universal" than Applescript, cross-platform
    - can be used to automate simple tasks in a simple way
    - can also be used to create more complex scripts, web apps and maybe, eventually, programs (with GUI)
    I've read about Javascript, Python, Ruby, PHP, Perl, C+, C++, Java and others, but I really don't know.
    - Java sounds pretty cool, Python too.
    - I'm not crazy about PHP or Perl, with Javascript, but some people swear by it
    - I don't know anything about C+, C++
    Does anyone have any suggestion(s)?  Please let me know if you need any more details.  Thank you.

    C, C++, Objective-C are nor scripting languages and will not help you do web pages. (Don;t know what C+ is).
    Forget Java it has lots of security problems and more and more users are disabling Java in their web browsers because of this. Developing in Java would be, in my opinion, a mistake.
    If you are doing any web works at all you will need to know some Javascript, no way around that.  But Javascript is actually not a bad language
    Note Java and Javascript are two totally separate languages that have nothing in common  but the first 4 letters of their names.
    So you are left with PHP, Perl, Python and Ruby.
    Dismissing PHP and Perl out of hand is a big mistake, They are both major players and you will run into them just about everywhere. If you are looking to do this for possible employment you will need to be familiar with them at least.
    Python and Ruby are both strong languages as well. I don't have a lot of experience with either so I can;t speak to their strengths  but  learnign either would not be a mistake.
    Knowing what your reasons are for asking this, personal use or for employment, might help refine the list some.
    regards
    Message was edited by: Frank Caggiano - Perl is also included in OS X by default. Not sure about PHP but I believe it also is. I agree TextWrangler would be a good editor for this type of work.

  • What is the strict criteria for a Pure Object Oriented Language ?

    Can a fully object oriented language qualify as a pure Object Oriented Language.fF not what are the exact criteria for qualifying a language as Pure Object Oriented Language.Any examples of both would be greatly appreciated.
    Thanks in Advance.

    I guess you can check the link
    http://forums.sun.com/thread.jspa?forumID=31&threadID=725662 for this.
    I have no idea what point you're trying to make by posting a link to that thread.
    Again,if someone thinks that something does not exist,what's the point debating on it.There is no point in debating this.
    I don't care,Me neither.
    tell me the definition,Like I already said many times: there exists no widely accepted definition of what a "pure OO language" is!
    So, I ask you yet again: what is YOUR definition of such a thing? ANd don't go posting links to articles or other threads: just explain in your own wording of what YOU think a "pure OO language" is, and I'll answer your question by telling you if Java fits that definition.
    search on google,why do you need that are not answers to my questions I see it has no use arguing with you: you don't seem to understand me.
    ,but more irrelevant questions on my simple question.I see a chain of irrelevant question, starting with your original post.

  • I'm looking for a scheduling app that will send reminder emails to clients

    I'm looking for an iPad appointment app that will send reminder emails to clients & synch with my iMac. Suggestions?

    Voicemail is through your carrier and on their equipment.
    It's function and features is set by them, not your phone.

  • Looking for "The Objective-C Programming Language"

    Greetings All, I am teaching myself write iOS apps and Objective-C and have several references.  Developer.apple.com's Learning Object-C: A Primer references The Objective-C Programming Language, but there is no link or ISBN or author and interent search is useless.  I found a link mentioned in a Nov 2012 discussion, but the link is now bad.
    Can anyone help?
    Thanks in advance,
    SP

    It's in Xcode's documentation view, under "OS X 10.7 Core Library > Languages & Utilities > Objective-C > The Objective-C Programming Language"
    Actually, it seems to be in every core library for OS X and iOS, except for the OS X 10.8 doc set and the iOS 6.1 doc set...not sure if that means it's deprecated, or if it's just an oversight.

  • We are looking for qualified writers!

    We are looking for new experienced, deadline-oriented and highly responsible freelance writers who can write researches and theses on a variety of subjects.
    The main qualifications required to apply for this job are as follows:
    •High quality writing, up to “A” standard of a relevant academic level
    •Strong ability to meet deadlines
    •Promptness in responding to urgent matters
    •Knowledge of the major citation styles (MLA, APA, Harvard, Chicago)
    •Ability to effectively defend your writing if questioned by the client or support
    •Excellent written English skills (ESL writers are subject to proofreading penalties)
    •At least Master or Ph.d degree (we will request copy of the diploma to be sent by fax or email)
    Benefits of working in academic assistance industry:
    •Remote work through the Internet
    •Flexible working schedule
    •You take only as many orders as you would like to complete
    •Your payment is based on your performance
    •If you already have academic writing experience, you will find AcademicExperts.us a responsive and a reliable partner.
    Benefits of working for AcademicExperts.us:
    •At least 20 new orders per day to choose from
    •Moderate writers' competition
    •All writers' profiles are kept 100% private and confidential
    •Prices start from $7/per 275 words (15% more then industry average)
    •Writers are not responsible for customer fraud
    •Flexible system of Bonuses and privileges for most productive writers
    •Timely payments twice a month
    •Responsive support
    To accept this job offer:
        * Register at http://academicexperts.us/register.php
        * Upload CV and Sample Work in your registration form
    Should you have any questions, feel free to contact us. We will be very glad to answer all your questions.
    Our email: [email protected]
    Best regards,
    Nicole

    Since Final Cut Server was announced as EOL today, you might look at CatDV instead.

  • Looking for must-read programming reference material

    I am relatively new to programming and would like a reading list of must-read programming references. I know several languages, but I am not looking for materials about any particular language; instead, I would like to read up on more fundamental things such as programming concepts, programming algorithms, programming paradigms,  computer architectures, programming style, etc. What are the classic, must-read books and articles that I should begin reading? Thank you for your suggestions.

    I've never used assembly for a 64-bit system, but I'm sure most of the same concepts apply.  In fact I'm pretty sure any change is analogous to the change from 16 to 32 which wasn't that drastic.
    With assembly language, learning the core concepts is the biggest step, the difference between 16 and 32 bit wasn't like learning a new language, rather it was just having more and bigger registers.  I don't do any actual programming in assembly - I dabbled a bit for fun, but I dont 'use' it.  But the concepts I learned through assembly have helped me in every other programming language.  Given that, I'm sure a book on 32-bit assembly would be useful for a 64-bit system.
    Consider too that assembly is a bit of a dying art.  Pair that with the fact that 64-bit systems are relatively new, and there won't be many people who can write a quality book about their lifetime of experience with 64-bit assembly.
    Lastly, (in this very disorganized listing of barely related points), 32-bit to 64-bit is also a trivial change compared to the various instruction sets that have been used.  If/when you understand the similarities and differences between the various assembly languages and instruction sets, is when you really start using the strengths of your particular architecture.  (I'm tempted to make a Matrix reference "There is no spoon").  My favorite assembly languages, just for the fun of it, are One-Instruction-Set systems.  When I realized that one single instruction used repeatedly can create the diversity of programs we use ... I was in geek heaven.  I put that day on par with learning about hardware-software interchangability, and the fact that our modern computers are made up of a vast series of only one type of logic gate ... and the day I learned some lamba calculus ... (end geekgasm)
    Anyhow, learning to 'think' in assembly language can help all your programming (IMHO) regardless of whether you ever speak to your computer in that language.  So, yes, I'd say the 32-bit book would be worth reading even if your current computer is 64.

  • Looking for a duration / scheduling API

    I was not sure how to even search for this on Google. Java duration and java scheduling turned up too many results and were not really what I was looking for. I also looked at joda-time, but they do not provide this functionality either.
    Basically, I am looking for a DSL parser that will work for durations specified as:
    Two weeks
    Quarterly
    Until the end of the year
    etc.
    And also to handle scheduling specified as:
    Next Friday
    Two months from now
    Last year
    etc.
    Anyone know of something on sourceforge or something similar that can do the above? It would not be hard to write a DSL parser for the above, but I figured if one already existed, then why not use that.
    Thanks!
    - Saish

    Ah, OK, Domain-Specific Language... you want to express durations and schedules in plain text, not actually schedule the events, right?
    Then my former post is completely off-base, sorry (to my defense, your title is misleading then)...
    I did not delete it though, in case you plan to actually implement the scheduling of what is expressed in the DSL :o)
    Edited by: jduprez on Oct 14, 2009 7:43 PM

  • Delete one language for Wrok Schedule Text in Table T508S

    Hi Gurus,
    Have added 3 different languages to be displayed for a particular Work Schedule Text. Now that i want to remove one of the language. What i did is selected the work schedule- clicked on Goto - clicked on translate and selected the languages i want and saved.
    For removing the text not to display for that work schedule in particular language how we can do this.
    I tried  selecting only 2 languages and saved it but the table  T508S has all the languages which i selected before. and not showing the new changes.
    Kindly help.
    Regards,
    M Bharath
    Edited by: Bharath Murugavel on Aug 12, 2010 8:08 PM

    Got it solved by myself

  • Looking for a more suitable animation tool

    I've been creating animations from sprites in After Effects, with mixed results.  The input is a number of pixel art sprites (exported from elsewhere), and the output is a video, characters running around and interacting.  I have AFX doing quite a lot, but it's very awkward and I'm pretty sure it's the wrong tool for the job.  Can anyone either suggest better approaches, or more suitable software?  I'll describe what I'm doing now:
    - Many sprites are bodies or heads to combine, eg. a smiling or angry faces and walking or standing bodies.  I set the head position for each body sprite, so any head fits in the right place on any body (trivial rigging), then apply it with a script, so I can change the body and the head moves to the right place automatically.
    - Some sprites have multiple layers.  For example, while heads are normally on top of bodies, a body may have an arm raised, which needs to be above the head instead of below it.  I can create the extra layer for the body separately, and it works for any head.
    - I can set the draw order per-layer.  Usually, one character and all of its parts is drawn on top of another--body1, head1, body2, head2.  But, if two characters collide, handshake, or interact in other complex ways, I may want to draw both bodies, and then both heads, even though the heads and bodies are still anchored normally.  Some sprites may have multiple layers, eg. body, head, hands, legs.  (Z position hack...)
    - Individual layers can be adjusted separately, eg. to adjust the default head position downwards to give a nod.
    - Some sprites are hue shifted (hair color, clothing color) or have more complex adjustments applied, so I can reuse more sprites.
    (I'm only describing what I'm doing and not how.  I wrote more detail about what I'm actually doing in AFX and the specific issues I'm having, but it was too long and people can probably already guess the practical issues of using AFX like this.  I'll post more info if anybody asks.)
    The result is functional, but a real hassle to actually work with.  AFX is a compositing and effects tool and it's not really designed for animations, and only its scripting support has let me abuse it this much.  I don't know of a better tool, though--searches for animation tools mostly come up with things like Spine (authoring individual models for importing into games), and nothing suitable for creating complex video animations from sprite sets.
    There are probably many tools to do small pieces of this (sprite animation sequences, effects, scene animation, camera), but I'd really like to not split into a multi-tool workflow, since I want to experiment freely with a scene, not lay out an entire scene and then create it start to finish.  Does anyone have any suggestions (or better places to ask)?

    There are many other DTP applications:
    http://www.freeforum101.com/iworktipsntrick/viewtopic.php?t=137&mforum=iworktips ntrick
    You have to be more specific about what you are looking for.
    Peter

  • I am looking for an app for my ipod that allows me to speak into and then the the app translates what I said into another language

    I am looking for an app, for my ipod, that allows me to speak into the ipod and then it translates what I said into a different language. Any suggestions?

    google translate

  • Looking for Edge animator

    Looking for Edge animator to collaborate on interactive version of map I'm designing in Illustrator. Requirements include zoom in and text rollovers on elements in map. Contact [email protected] with samples.

    Hi,
    I'm alwase available for freelance work, I'm working with Edge Animate since the first version and founded the community Edgehero for it.
    Made Edgehero.js and worked on alot of advanced projects already.
    Feel free to contact me and check out the rest of the Edgehero crew : http://www.edgehero.com/about.html
    - Rob Boerman
    Edgehero.com

  • Looking for an advanced flash animation part-time course

    Hi folks,
    I am primarily a programmer, a games programmer by trade who happened to pick up Flash on the side and later through a series of coincidences became a full time flash developer. Most of my work thus far has been code heavy, and has focussed on such things as interacting with web services, localization with xml files, flash video, streaming video, networking etc.
    My employer recently lost one of its contractors who built a lot of animation heavy flash apps for them, and as I know my way around the Flash IDE quite well, and have created fairly complex animations in the past, they have asked me to assume a more animation orientated role. To this end, they have offered to send me on courses to get up to speed with Flash animation.
    As I know probably 90-95% of Flash's capabilities, and am comfortable with animating / easing / masking / filters / tweening and how to produce these effects programmatically, my interest would lie in a course that teaches fairly advanced uses / best practices of flash. For instance, I find that there are many ways to do things in Flash, but only a few approaches that will get you there without the entire IDE coming to a grinding halt (shape hints is a good one, or perhaps an approach has forced you into a corner with many tweened animations which now need a small alteration made to all of them).
    Are any of you aware of courses that can take a fairly advanced flash user's knowledge and turbo charge it with tips, tricks, best practices and approaches to complex animation? I've found plenty of courses that will teach you the basics, but going on them would be a waste of time and money. If any of you are familiar with the Programming Gems series of books, what they do for a game programmers knowledge of programming would be a good analogy for what I'd like a course in flash animation to do for me.

    I have no idea to offer regarding courses for what you request.  Since you seem to be confident of your skills, maybe you should just create a project for yourself that would involve needing to know the things you want to learn and pursue it with extreme prejudice--solving aspects one at a time as you encounter them.  That's pretty much the approach I took in learning AS3 and it helped alot.

  • HT4059 Is it possible to get books in alternate language?  I am looking for books written in Portuguese.

    Is it possible to get books in alternate language?  I am looking for books written in Portuguese.

    RonNemec wrote:
    How do I access books published in PT?
    You will just have to search for them yourself from the various ebook stores or do a google search.   There is no guarantee that any particular source will have what you want, but I don't understand why you "cannot find any".  Here is one
    http://www.amazon.com/Prisioneiro-Contos-Portuguese-Edition-ebook/dp/B00507FLFW

  • W7 64 Home: Task Scheduler looking for remote computer, can't defrag.

    Needed to defragment HD, went to task scheduler, found that it is looking for a remote computer and options to schedule tasks are grayed out.
    The option in the right panel for the local computer was selected (there are no "apply" buttons or such).  Closed Task Scheduler, reopened, found that it is still looking for a remote computer, options to schedule tasks still grayed out.
    Logged in as Admin. Not on a network.
    Thank you

    In Windows 7, Disk Defragmenter runs at regular intervals when your computer is turned on, so you don't have to remember to run it. It's scheduled to run once a week at an early hour in the morning. However, you can change how often Disk Defragmenter runs,
    and at what time of the day.
    Open Disk Defragmenter by clicking the Start button .
    In the search box, type Disk Defragmenter, and then, in the list of results, click Disk
    Defragmenter.‌  If you're
    prompted for an administrator password or confirmation, type the password or provide confirmation.
    Click Configure schedule, and then do one of the following:
    To change how often Disk Defragmenter runs, click the menu next to Frequency, and then click Daily, Weekly,
    orMonthly.
    If you set the frequency to Weekly or Monthly,
    click the menu next to Day to choose the day of the week or month that you want Disk Defragmenter to run.
    To change the time of day when Disk Defragmenter runs, click the menu next to Time, and then choose a time.
    To change the volumes that are scheduled to be defragmented, click Select disks, and then follow the instructions.
    Click OK.
    Arnav Sharma | http://arnavsharma.net/ Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading
    the thread.

Maybe you are looking for

  • ASA 5505 ICMP Deny

    Hi I am facing a problem with icmp in ASA 5505, i want to block the icmp from inside to outside , but outside to inside icmp should work, here the configuration. ASA Version 8.0(5) interface Vlan1  nameif inside  security-level 100  ip address 192.16

  • LR 5.2 - Videos Not Playing

    In ver 4.4 videos played fine, but in 5.2 they don't even start the audio seems to play fine and if you are lucky it may advance a frame or 2. These are 5 seconds videos in the *mov from a Canon 5MKIII, Win 7 64 bit. Now in the windows media player t

  • Hairline Crack in Screen

    Hey, My iphone has a hairline crack for some unknown reason. It has never been dropped and its located directly above the home button. It points directly to the sim card slot so its straight line. Its small and sorta noticeable. May i get a replaceme

  • Balance sheet adjustment balance becomes double

    Dear Experts My finance users execute Balance sheet adjustments monthly through the years upto current month. Somehow, now they discover that there were some postings made to period 13 two years ago which have not been reversed when they reversed the

  • Event when Purchase order or contract is created/changed

    Hello all, I need to update a specific table while a purchase order or a contract is created/updated. I think that it is possible to do so by an event triggered on object class EINKBELEG. Do you have any document describing how to develp that step by