Recent

Author Topic: Animator  (Read 3122 times)

hedgehog

  • Jr. Member
  • **
  • Posts: 81
Animator
« on: May 23, 2025, 03:53:57 pm »
I have developed a small component that simplifies the implementation of animations.
It supports easing functions.

Ñuño_Martínez

  • Hero Member
  • *****
  • Posts: 1216
    • Burdjia
Re: Animator
« Reply #1 on: May 30, 2025, 12:26:13 pm »
Good job.
Are you interested in game programming? Join the Pascal Game Development community!
Also visit the Game Development Portal

Boleeman

  • Hero Member
  • *****
  • Posts: 1076
Re: Animator
« Reply #2 on: May 30, 2025, 03:07:18 pm »
That was a nice easing demo. I have seen some JavaScripts with easings. Good to see a Lazarus sample.

I thought an extra feature might be to select different objects
or
even make a small animator program with a save to Apng or animated gif, etc.

Thanks hedgehog.


hedgehog

  • Jr. Member
  • **
  • Posts: 81
Re: Animator
« Reply #3 on: May 30, 2025, 03:23:51 pm »
Thanks guys.
Actually this component is primarily needed for animation of movement on the screen.

Creating a GIF is a slightly different task. And, are there any problems with this in Lazarus?

hedgehog

  • Jr. Member
  • **
  • Posts: 81
Re: Animator
« Reply #4 on: May 31, 2025, 10:33:14 am »
I want to show you what I use Animator for.

I'm slowly converting my old project to BGRA, and I made a small and simple Сhart.

MarkMLl

  • Hero Member
  • *****
  • Posts: 8525
Re: Animator
« Reply #5 on: August 21, 2025, 10:03:39 am »
even make a small animator program with a save to Apng or animated gif, etc.

I'd caution against putting too much time into APNG at present.

With the major caveat that I'm running Debian 12 rather than 13 which was released as "Stable" a few days ago, and that I haven't gone back to source repositories to build the latest utility versions.

I need a program to be able to produce a video of its operation, and have a couple of weeks to get it right (I have an opportunity for a demo just once per year, and wasn't ready last year). Relevant discussion is at https://forum.lazarus.freepascal.org/index.php/topic,68158.0.html

I can output PNGs of the form's canvas reliably, and can do this once per second for a timelapse. I was hoping to be able to assemble these into an APNG every minute to save storage and later into an MP4, but when I tried this yesterday apngasm took anywhere between 10 and 70 seconds to process 60 frames (varying erratically) and the result wasn't accepted by ffmpeg,

If I save PNGs and process them with ffmpeg directly it works and is very much faster... there's warning messages so I suspect that there's something not quite right in the (not very recent) version of the LCL I'm using, but it's functional and I'm not very keen on wading in too deeply lest I break anything.

I could possibly get away with processing a minute's or hour's PNGs into an MP4 and later concatenating them, but I don't know whether the repeated lossy encoding would degrade quality.

So, checking PNG capabilities and implementing APNGs is definitely worthwhile, but it looks as though it's necessary to be very careful about any assumptions relating to the "standard" support tools.

MarkMLl
MT+86 & Turbo Pascal v1 on CCP/M-86, multitasking with LAN & graphics in 128Kb.
Logitech, TopSpeed & FTL Modula-2 on bare metal (Z80, '286 protected mode).
Pet hate: people who boast about the size and sophistication of their computer.
GitHub repositories: https://github.com/MarkMLl?tab=repositories

 

TinyPortal © 2005-2018