Logo by Trifox
News: Visit the Fractalforums.com User Gallery
 
*
Welcome, Guest. Please login or register. November 20, 2008, 07:48:09 PM


Login with username, password and session length



Pages: [1]
  Print  
Author Topic: New Java Applet Fractal Explorer Program on CodingMagic.com  (Read 346 times)
Description: New Java Applet Fractal Explorer Program on CodingMagic.com
0 Members and 1 Guest are viewing this topic.
starplasm
Fractal Freshman
**
Posts: 9


View Profile
« on: June 05, 2008, 10:10:14 PM »

Hello everyone! I would like to share with you a Java applet creation of mine at http://www.codingmagic.com:

http://www.codingmagic.com/StarFractal/StarFractal.html

The Java applet allows the user to explore the Mandelbrot set with real time responsiveness. The image is generated in stages as opposed to pixel-by-pixel. The GUI is very responsive to user inputs.

I have also made an informational page regarding the Mandelbrot set describing the math behind the images:

http://www.codingmagic.com/StarFractal/StarFractalHelp.html

I intend on adding descriptions of the coding behind the applet as well in due time. There are other nifty java applet coding projects on there for your amusement as well.

Comments and suggestions are always welcome. Enjoy!

Regards,
Pierre
« Last Edit: June 13, 2008, 02:57:10 AM by starplasm » Logged
Trifox
Administrator
Fractal Molossus
*****
Posts: 561


Frascinating!


View Profile WWW
« Reply #1 on: June 05, 2008, 11:10:53 PM »

hello there, welcome to the forum !

  please be sure not to double posting/spammin !

the rendering method is interesting, do you render by iteration depth ? isn 't that a problem to manage the calculated areas ?
has the rendering method some speed gains ? do you use guessing inside the stripes ?  :Smiley

nice work !

 Afro Afro
Logged

---

divide and conquer - iterate and rule
fractalmovies.com
starplasm
Fractal Freshman
**
Posts: 9


View Profile
« Reply #2 on: June 05, 2008, 11:50:20 PM »

Hello! Sorry, I did not mean to spam.   Undecided

Yes, you are correct! Each frame is generated via the iteration depth. The calculated areas go untouched once they exceed the boundary limit. So, less pixels get altered as the rendering process continues. I suppose a speed gain could be considered to be the fact that you get to see the fractal as it's generated. Smiley  I set an upper limit on the maximum number of iterations, but you don't have to wait for it to finish rendering to see the results. The longer you wait, the more detailed and accurate the image. Smiley

I don't use any guessing techniques in generating the fractal. I prefer to have it mathematically as accurate as possible.  angel1 The exponential color smoothing takes care of the coloring for each pixel.

Thanks for the great observations and comments!
Pierre
Logged
Sockratease
Global Moderator
Fractal Phenom
*****
Posts: 351



View Profile
« Reply #3 on: June 06, 2008, 02:14:30 AM »


Welcome to the forum.

That's a fun little toy!

Nice work and thanks for sharing.
Logged

Fractals turn up in the oddest places!
Trifox
Administrator
Fractal Molossus
*****
Posts: 561


Frascinating!


View Profile WWW
« Reply #4 on: June 06, 2008, 03:28:27 AM »

it is nice to lookat when it builds the fractal !  Wink

a hint for the current/iteration would be nice, so that when black screen, the user sees that something goes on ...

beside of that an estimation should be made of the first line visible, i would suggest you calc a 9x9 rectangle of dots the border, and the center, and take the lowest iteration depth as estimator when the first thing is visible on screen ...  Smiley

 Afro
Logged

---

divide and conquer - iterate and rule
fractalmovies.com
starplasm
Fractal Freshman
**
Posts: 9


View Profile
« Reply #5 on: June 06, 2008, 05:27:10 PM »

Hi Trifox,

Thank you for the suggestions! I have updated the applet - it will now show the iteration number in the status bar of the web browser.  Cheesy

I have a few ideas for improving the zoom feature. I'll have a look at that this weekend.

Thanks again!
Pierre
Logged
Trifox
Administrator
Fractal Molossus
*****
Posts: 561


Frascinating!


View Profile WWW
« Reply #6 on: June 06, 2008, 06:59:03 PM »

nicely done, now you can check the number in the status bar when the first pixel becomes visible,
that should be the 'hinting' number... Wink

but some further notes:
ok, i like the option to continue a started calculation, but i do not like to wait for the result on the screen is visible,
i thought before of a similar method, but i was rendering the image up to a certain iteration depth ( e.g. 25 ) to see the contours,
after that i have a list of not-escaped points, and then i start to continue those pixels who have not diverged yet.

another thing to mention:
by using the browser bar as a status display, you are using an external component dependant to your program, what happens if the applet is run standalone?

continue the good work!

 Afro Afro Afro Afro
« Last Edit: June 06, 2008, 11:15:42 PM by Trifox » Logged

---

divide and conquer - iterate and rule
fractalmovies.com
starplasm
Fractal Freshman
**
Posts: 9


View Profile
« Reply #7 on: June 07, 2008, 04:23:33 AM »

Hi Trifox,

I made the applet work a bit differently now in terms of the user interface for the zoom rectangle. I forced the applet to be square, i.e. 1:1 aspect ratio. I forced the rectangle for the zoom interface to always show exactly the area into which the user will be zooming into the fractal. Previously I used a resize method based upon the user input while maintaining the aspect ratio. With the new method, what you see in the blue selection rectangle will be exactly what you get. I also made sure that the applet indicates in the status bar when it has completed the maximum number of iterations or when no pixels need any further refinement.

http://www.codingmagic.com/StarFractal/StarFractal.html

I'll look into making the zoom function give more feedback initially when zoomed in deep into the fractal in the next couple of days.

Thanks again for the great suggestions! Smiley
Pierre
Logged
starplasm
Fractal Freshman
**
Posts: 9


View Profile
« Reply #8 on: June 10, 2008, 07:17:07 PM »

Hello again fractal fanatics!

StarFractal has been upgraded to v1.1 Beta!

http://www.codingmagic.com/StarFractal/StarFractal.html

It has been rewritten such that it will now store the previous fractal view such that the user can return to it and continue the fractal calculation! A feature for previewing the area of the fractal into which the applet zooms will be added in the near future.

Enjoy!
Pierre
Logged
starplasm
Fractal Freshman
**
Posts: 9


View Profile
« Reply #9 on: June 12, 2008, 10:37:33 PM »

Hi Trifox,

I updated StarFractal to v1.1, which now includes a bicubic resize routine that runs immediately after each zoom command that the user performs. So, instead of seeing a black screen initially, you see a preview image of the fractal from the data in the previous iteration. The preview image gets updated after each iteration and becomes the exact fractal calculation in the end.

http://www.codingmagic.com/StarFractal/StarFractal.html

Cheers!
Pierre

http://www.codingmagic.com
Logged
Trifox
Administrator
Fractal Molossus
*****
Posts: 561


Frascinating!


View Profile WWW
« Reply #10 on: June 13, 2008, 12:20:44 PM »

hi there, ok, that is better,

but i have pixel trash in the black areas when zooming, and this trash areas do not get correctly overdrawn

 
Logged

---

divide and conquer - iterate and rule
fractalmovies.com
starplasm
Fractal Freshman
**
Posts: 9


View Profile
« Reply #11 on: June 13, 2008, 06:35:39 PM »

hi there, ok, that is better,

but i have pixel trash in the black areas when zooming, and this trash areas do not get correctly overdrawn

 

Hi Trifox,

If you allow the iterations to go to completion (300 iterations total), then the black areas will get correctly drawn after the 300th iteration is completed. Smiley

I didn't realize that the bicubic resize was not working correctly at first. Thank you for pointing that out.  Smiley The "trash areas" were caused by the fact that I was interpolating between color indices in my color table as opposed to the actual RGB color values. That's what caused the "trash areas" to occur. I have fixed the problem as of today, and everything is now working properly.  Cheesy

Check it out! http://www.codingmagic.com/StarFractal/StarFractal.html

Pierre

http://www.codingmagic.com
« Last Edit: June 14, 2008, 03:32:11 PM by starplasm » Logged
GFWorld
Strange Attractor
***
Posts: 248



View Profile WWW
« Reply #12 on: June 19, 2008, 05:42:50 PM »

>Check it out! http://www.codingmagic.com/StarFractal/StarFractal.html

Pierre - itīs really fascinating ! :-)))
Margit

Logged
Duncan C
Fractal Lover
**
Posts: 177


View Profile
« Reply #13 on: September 04, 2008, 02:13:06 AM »

Hello everyone! I would like to share with you a Java applet creation of mine at http://www.codingmagic.com:

http://www.codingmagic.com/StarFractal/StarFractal.html

The Java applet allows the user to explore the Mandelbrot set with real time responsiveness. The image is generated in stages as opposed to pixel-by-pixel. The GUI is very responsive to user inputs.

I have also made an informational page regarding the Mandelbrot set describing the math behind the images:

http://www.codingmagic.com/StarFractal/StarFractalHelp.html

I intend on adding descriptions of the coding behind the applet as well in due time. There are other nifty java applet coding projects on there for your amusement as well.

Comments and suggestions are always welcome. Enjoy!

Regards,
Pierre


Your applet won't load on my machine (Mac running Leopard and Safari browser.)
Logged
Pages: [1]
  Print  

 
Jump to:  



Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 1.027 seconds with 27 queries. (Pretty URLs adds 0.085s, 2q)