Welcome to Fractal Forums

Fractal Software => Smartphones / Mobile Devices => Topic started by: nmmmnu on May 22, 2015, 11:10:26 AM




Title: Mandeldroid 1.1
Post by: nmmmnu on May 22, 2015, 11:10:26 AM
Hi

I am not new to the forum, but until now I did not have account.

Some time ago, i developed following program on C:
https://github.com/nmmmnu/Mandelbrot

and week ago I port it in Java for Android here:
https://github.com/nmmmnu/MandelDroid
so I can play with touch controls and export coordinates for the C version.

you can download directly from Google Play:
https://play.google.com/store/apps/details?id=nu.nmmm.android.mandeldroid

Any suggestions and criticism will be welcome!


Title: Re: Mandeldroid 1.1
Post by: DarkBeam on May 22, 2015, 11:33:05 AM
 :beer:
Wow looks fast, but where's the menu. And why it doesn't recognize dblclick to zoom...
Luca :D


Title: Re: Mandeldroid 1.1
Post by: PieMan597 on May 22, 2015, 01:24:40 PM
Nice app! Darkbeam, the menu appears if you tap the back button.


Title: Re: Mandeldroid 1.1
Post by: nmmmnu on May 22, 2015, 04:41:03 PM
@DarkBeam - if there is no hardware menu button, menu is "linked" to back button, but you need version 1.1

I did not know double click must zoom - will do it next release.
Is there any other "standard" things people expects?

Fast - I am using "normal" double and simulating complex with them:

https://github.com/nmmmnu/MandelDroid/blob/master/src/nu/nmmm/android/mandelbrot/FractalCalculatorMandelbrot.java#L68 (https://github.com/nmmmnu/MandelDroid/blob/master/src/nu/nmmm/android/mandelbrot/FractalCalculatorMandelbrot.java#L68)
Code:
	double zx2 = zx * zx;
double zy2 = zy * zy;

if (zx2 + zy2 > ESCAPE2)
return i;

zy = 2 * zx * zy + y;
zx = zx2 - zy2 + x;

this does not allow me to do anything else than cube, but works quite fast... (x = real, y = imaginary)

I also did not used abs(), because in my C experience, it works slower than simple if's.
>>> correction - seems I lied about abs()


Title: Re: Mandeldroid 1.1
Post by: Snicker02 on May 22, 2015, 05:59:29 PM
WOW!! very nice!!!  :D it saves to the base directory of the card... is there a way to choose where to save it to? or a share button??


Title: Re: Mandeldroid 1.1
Post by: nmmmnu on May 22, 2015, 07:29:06 PM
share currently is not implemented, but probanly in the future - depends how difficult it is to be implemented.

about sd card - i tried to do it as easy as possible, i probably need to change it to dedicated directory, because if I use pictures, it will get mixed with camera shots / uploads.


Title: Re: Mandeldroid 1.1
Post by: TheRedshiftRider on May 22, 2015, 10:09:24 PM
Fast and simple, nice. But the zooming makes the fractal  move too much, I think.


Title: Re: Mandeldroid 1.1
Post by: DarkBeam on May 23, 2015, 10:14:23 AM
Julia mode is missing :(


Title: Re: Mandeldroid 1.1
Post by: nmmmnu on May 23, 2015, 12:35:56 PM
julia mode is at the bottom of my list...

beside bugfixes, next thing - some new color schemes with rgb colors.


Title: Re: Mandeldroid 1.1
Post by: Snicker02 on May 25, 2015, 04:19:11 AM
julia mode is at the bottom of my list...

beside bugfixes, next thing - some new color schemes with rgb colors.

I like the new colors in the newest update


Title: Re: Mandeldroid 1.1
Post by: nmmmnu on May 25, 2015, 04:03:22 PM
Here are some images with same color scheme, backported to C

perpendicular burning ship antennas??? :)
https://www.flickr.com/photos/nmmmnu/18075438591/in/dateposted-public/

other perpendicular burning ship places:
https://www.flickr.com/photos/nmmmnu/17888165279/in/dateposted-public/
https://www.flickr.com/photos/nmmmnu/18071065922/in/dateposted-public/

burning ship forest
https://www.flickr.com/photos/nmmmnu/17451825024/in/dateposted-public/