Re:Show HN: FractalViewer: A JavaScript fractal explorer
by laser on Tuesday July 26, 2016 @06:24AM
(#12164572)
Is there a way to increase the max depth by just rendering the zoomed area, or is it unviable as the mathematics require calculating the entire object?
[ Parent
| on HN ]
Re:Show HN: FractalViewer: A JavaScript fractal explorer
by elsurudo on Tuesday July 26, 2016 @08:26AM
(#12165077)
Last time I implemented something like this was in uni about 10 years ago now, but I recall that not being the case – you should be able to render just the visible area, as (at least in the case of Mandelbrot) the data is independent.
Re:Show HN: FractalViewer: A JavaScript fractal explorer
by valera_rozuvan on Tuesday July 26, 2016 @09:17AM
(#12165357)
Do you mean to render the same view (what you see), but at a higher resolution? So that, for example, you can print it out?
Re:Show HN: FractalViewer: A JavaScript fractal explorer
by laser on Tuesday July 26, 2016 @02:34PM
(#12167797)
No, I mean that at a certain level of zoom the fractal appears to stop being generated, and I end up just zooming into pixel blocks. For example, if you try to recreate https://www.youtube.com/watch?v=0jGaio87u3A you can only for for a bit before the fractal appears to stop generating.
Re:Show HN: FractalViewer: A JavaScript fractal explorer
by valera_rozuvan on Tuesday July 26, 2016 @04:47PM
(#12168625)
It's because currently FractalViewer is not designed to work around floating point precision limits in JavaScript. So, after zooming a bit, you hit the "pixelated wall". I plan to address this issue in future release of FractalViewer. See https://github.com/valera-rozuvan/FractalViewer/issues/10 .
More information on JS floating point numbers, their limitations, and ways to work around those limits - can be found in this informative article http://blog.chewxy.com/2014/02/24/what-every-javascript-deve... .