Recent

Author Topic: Lines-Glow-Blur Animation  (Read 480 times)

Boleeman

  • Hero Member
  • *****
  • Posts: 936
Lines-Glow-Blur Animation
« on: May 27, 2025, 12:25:08 pm »
I tried making an animation in which the lines glow/blur a bit but the speed seems to slow down quite a bit.

May be there is a better way of doing it.

What I was after is a glow effect with a reasonable speed.
(Noticed the animation in blur mode works a touch faster after running the compiled exe)

Just did a quick update: Added some OnChange events.

« Last Edit: May 27, 2025, 12:44:17 pm by Boleeman »

Lulu

  • Sr. Member
  • ****
  • Posts: 302
Re: Lines-Glow-Blur Animation
« Reply #1 on: May 27, 2025, 07:56:13 pm »
Thanks to share. The shape is very nice.
wishing you a nice life!
GitHub repositories https://github.com/Lulu04

Lulu

  • Sr. Member
  • ****
  • Posts: 302
Re: Lines-Glow-Blur Animation
« Reply #2 on: May 27, 2025, 08:13:18 pm »
I notice a memory leak when using the blur effect.
It appears because
Code: Pascal  [Select][+][-]
  1. GlowBitmap :=  GlowBitmap.FilterBlurRadial(4, rbFast);
generate another image instance that overwrite GlowBitmap.

To avoid that replace this line by
Code: Pascal  [Select][+][-]
  1. BGRAReplace(GlowBitmap, GlowBitmap.FilterBlurRadial(4, rbFast));
wishing you a nice life!
GitHub repositories https://github.com/Lulu04

Boleeman

  • Hero Member
  • *****
  • Posts: 936
Re: Lines-Glow-Blur Animation
« Reply #3 on: May 28, 2025, 09:29:18 am »
Thanks Lulu for the nice comment and the fix. The program seems to work more efficiently now in the blur mode, especially on my Intel CPU work laptop. I initially used floating points but found the speed too slow so I switched to integer calculations for faster rendering.

After I uploaded the source I found that the program was seizing up after a while but could not work out why, until you worked it out. Need to remember BGRAReplace for future projects.

Your help was greatly appreciated. Thank you.

Also noticed a pulsating pattern if you set divisor2 = 5.00   



« Last Edit: May 28, 2025, 09:35:25 am by Boleeman »

 

TinyPortal © 2005-2018