Welcome Guest.   Make a donation to an author on the site November 21, 2009, 05:26:14 AM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Latest Review: Word Processor Roundup June 14, 2007.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: NANY 2009 Release: Fractal Explorers  (Read 3056 times)
TPReal
Honorary Member
**
Posts: 108



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« on: November 30, 2008, 09:38:12 AM »

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 JuliaExplorer
VersionRolling Release smiley it's not any big program, I'm not versioning it
Short DescriptionViewing Mandelbrot set and Julia sets
Supported OSesAny
Download Linkhttp://tpreal.dcmembers.com/Fractals.zip
System Requirements
  • Ruby
  • ruby-opengl gem
Version 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 smiley

Screenshots
MandelbrotExplorer





JuliaExplorer






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 smiley

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.
« Last Edit: December 08, 2008, 01:12:06 PM by TPReal » Logged

deviantopian
Supporting Member
**
Posts: 41


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #1 on: December 04, 2008, 01:26:27 PM »

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:

Quote
./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

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
Logged
TPReal
Honorary Member
**
Posts: 108



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #2 on: December 04, 2008, 01:53:35 PM »

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 smiley Please download the program again (in the original post) and try to run the program. Let me know if any other errors occur smiley

Thanks,
TPR.
Logged

TPReal
Honorary Member
**
Posts: 108



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #3 on: December 04, 2008, 04:20:40 PM »

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.
Logged

mouser
First Author
Administrator
*****
Posts: 21,839



plarker mouser see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: December 04, 2008, 06:24:26 PM »

dcmembers just went down briefly, it's back up.
Logged
deviantopian
Supporting Member
**
Posts: 41


see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #5 on: December 05, 2008, 03:25:27 AM »

Yeah, that fixed it. Thmbsup
I have a NVIDIA GeForce Go 7800 GTX.

The fact that you can change the value of c on the fly in JuliaExplorer is very cool and not something I've seen before. It's like adding another dimension cheesy
Logged
TPReal
Honorary Member
**
Posts: 108



see users location on a map View Profile WWW Give some DonationCredits to this forum member
« Reply #6 on: December 05, 2008, 05:08:40 AM »

Glad to hear it works smiley And I learned something about the shaders. The first time I saw the Julia fractal with the extra dimension was when I wrote this program, too smiley

But it does mean that ideally your tool would be something that at least one other person in the known universe might be interested in downloading and using.
Have you seen, mouser? My program meets the NANY requirements cheesy
Logged

Pages: [1]   Go Up
  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
SMF © 2006-2009, Simple Machines LLC

social bookmark this page