ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > N.A.N.Y. 2009

NANY 2009 Release: Fractal Explorers

(1/2) > >>

TPReal:
NANY 2009 Entry Information
This is in fact two tiny programs, but they are both about exploring a fractal, and they share common libraries, so I put them here together.

Application NameMandelbrotExplorer and JuliaExplorerVersionRolling Release :) it's not any big program, I'm not versioning itShort DescriptionViewing Mandelbrot set and Julia setsSupported OSesAnyDownload Linkhttp://tpreal.dcmembers.com/Fractals.zipSystem Requirements
* Ruby
* ruby-opengl gemVersion History
* 2008-11-30 16:00 - First release
* 2008-12-04 21:00 - Compatibility with some graphic cards added (thanks, deviantopian)AuthorTPReal

Description
The applications are written just for fun, as an étude of Ruby and OpenGL Shading Language.

JuliaExplorer - Fractal Evolution
JuliaExplorer allows you to explore Julia sets of quadratic polynomials of the form z^2+c. It allows you to zoom into any part of the generated set, but the even more exciting feature is the ability to change smoothly the value of the complex parameter c, and see the fractal evolve slowly from one form to another.

MandelbrotExplorer - Into The Fractal
MandelbrotExplorer allows you to explore the Mandelbrot set. It allows you to zoom into any part of the set.

Possible enhancements
There's a lot of things that could be done to make these programs better, like:

* Ability to save a specific image, or coordinates
* Option of antialiasing to make the images look smoother
* Maybe some colours or something
* Displaying FPS
* Automatic image changing (as if it was a screensaver)But they are not planned - maybe I'll do some of those one day, and maybe I'll leave it as an exercise for the reader :)

Screenshots
MandelbrotExplorer
[attachthumb=#1][/attachthumb]
[attachthumb=#2][/attachthumb]
[attachthumb=#3][/attachthumb]
[attachthumb=#4][/attachthumb]

JuliaExplorer
[attachthumb=#5][/attachthumb]
[attachthumb=#6][/attachthumb]
[attachthumb=#7][/attachthumb]
[attachthumb=#8][/attachthumb]
[attachthumb=#9][/attachthumb]

Usage

Installation
First, you have to have Ruby installed, along with ruby-opengl gem. Ruby is available here: http://www.ruby-lang.org/en/downloads/ , if you are using Windows, I recommend the One-Click Installer from here: http://rubyforge.org/projects/rubyinstaller/ . Some additional info cn be found in the zip archive, in help/Ruby Installation.txt.

Just unpack the zip archive and run MandelbrotExplorer.rb or JuliaExplorer/rb.

Using the Application
MandelbrotExplorer
Just play around with Arrow keys and the zoom: A and Z keys. That's all :)

JuliaExplorer
When you run the program, a short tutorial is displayed. The basics are: use Arrows and A, Z to see the fractal evolve, and use U, J, H and K, and zoom: S, X, to zoom into any part of the fractal. But it might be a bit tricky at first, so read the tutorial.

Some description can also be found in the help directory in the archive.

Known Issues
There are some issues with installing ruby-opengl on some older versions of One-Click Installer for Windows. See the help file for details.

deviantopian:
Hmm... I downloaded ruby186-27_rc2.exe and installed it, then tried double clicking on JuliaExplorer.rb - I get the initial instructions, but when I hit Enter, I get this:

./lib/tp.GLShader.rb:150:in `link': Program link error: (ShaderError)
Fragment info
-------------
(15) : error C5051: profile does not support conditional returns

        from ./lib/tp.GLShader.rb:159:in `run'
        from C:/Documents and Settings/Richard/Desktop/Fractals/JuliaExplorer.rb
:46:in `oncreate'
        from ./lib/tp.OpenGL.rb:87:in `initialize'
        from ./lib/tp.OpenGL.rb:85:in `catch'
        from ./lib/tp.OpenGL.rb:85:in `initialize'
        from C:/Documents and Settings/Richard/Desktop/Fractals/JuliaExplorer.rb
:34:in `initialize'
        from C:/Documents and Settings/Richard/Desktop/Fractals/JuliaExplorer.rb
:129:in `new'
        from C:/Documents and Settings/Richard/Desktop/Fractals/JuliaExplorer.rb
:129
--- End quote ---

I tried installing Ruby to my Program Files Folder first, thought that might be the problem so uninstalled and installed in C:\Ruby instead, but that didn't make any difference.

Just wondered if you had any ideas why this might be?

Richard

TPReal:
Hello Richard.

Thanks for reporting this. The error you got is an error that occurred when your graphic card tried to link the shader program. The error message is loaded from the graphic card and wrapped into a Ruby exception (ShaderException).

The error is probably because your graphic card is different than any of those that I have tested my program on. I'm not a shader expert, and well, I didn't know that some GP do not support conditional returns. What is the graphics you have?

Based on the error message, I guess I corrected it. On my machine it still works, so probably I didn't break anything :) Please download the program again (in the original post) and try to run the program. Let me know if any other errors occur :)

Thanks,
TPR.

TPReal:
I see there are currently some problems with file hosting on dcmembers so I attached the file to the original post, apart from giving the link.

mouser:
dcmembers just went down briefly, it's back up.

Navigation

[0] Message Index

[#] Next page

Go to full version