Home Page

  • September 24, 2021, 06:15:23 AM *
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  


Official site launch very soon, hurrah!

Author Topic: Julia Fractals: Added Animation  (Read 4381 times)


  • Programmer Person
  • Administrator
  • Hero Member
  • *****
  • Posts: 527
    • View Profile
    • Dakusan's Domain
Julia Fractals: Added Animation
« on: October 07, 2009, 12:06:10 PM »

Original update for Julia Fractals: Added Animation can be found at https://www.castledragmire.com/Updates/Julia_Fractals:_Added_Animation.
Originally posted on: 12/26/08
Regarding: Julia Fractals

v0.15: Binary | Source

I added animation when zooming in and out. This is achieved by drawing the new fractal level into a buffer, and then resizing and translating both fractal level buffers appropriately over a fixed number of frames to animate a zoom effect. It would, of course, be optimal to redraw the entire fractal on each frame of the animation, but this would be a MAJOR speed hit.

The visual quality doesn’t look as good as I’d like at the moment due to XP’s StretchBlt API not using very good resizing algorithms, but it will do for now. Basically, colors show up too brightly when being resized. I can just plug in another resizing algorithm later that will give better results, possibly using a GPU API (DirectX or OpenGL) for optimal results and speed.

I also cleaned up the comments a little.

Time spent on update: 2.5 hours