Logo by mario837 - Contribute your own Logo!

END OF AN ERA, FRACTALFORUMS.COM IS CONTINUED ON FRACTALFORUMS.ORG

it was a great time but no longer maintainable by c.Kleinhuis contact him for any data retrieval,
thanks and see you perhaps in 10 years again

this forum will stay online for reference
News: Support us via Flattr FLATTR Link
 
*
Welcome, Guest. Please login or register. March 28, 2024, 09:40:34 AM


Login with username, password and session length


The All New FractalForums is now in Public Beta Testing! Visit FractalForums.org and check it out!


Pages: [1]   Go Down
  Print  
Share this topic on DiggShare this topic on FacebookShare this topic on GoogleShare this topic on RedditShare this topic on StumbleUponShare this topic on Twitter
Author Topic: smooth spherical fold  (Read 2864 times)
0 Members and 1 Guest are viewing this topic.
mclarekin
Fractal Senior
******
Posts: 1739



« on: April 17, 2017, 04:45:12 AM »

Implemented but yet to fully test.


Chart shows the effective conditional scaling :
green line standard spherical fold with maxR2 = 1.0 and minR2 = 0.25
red line parabolic spherical fold at  default settings.

Basic code with a couple of options that I added to the c++ version

Code:
double maxScale = transf-> // slider default 4.0   (1/0.25 = 4)
double maxR2 = transf-> // slider default 1.0


double midPoint = (maxScale - 1.0) * 0.5;
double halfMax = maxR2 * 0.5;       
double factor = midPoint / (halfMax * halfMax);       
double m;



//iter loop
double rr = dot(z,z)
// add optional offset forward
// add optional scale
if (rr < halfMax)
{
m = maxScale - (rr * rr) * factor;
z *= m;
Dd *= m;
}
else if (rr < maxR2)
{
m = 1.0 + (maxR2 - rr) * (maxR2 - rr) * factor;
z *= m;
Dd *= m;
}
// add optional offset back



* para sph fold.png (21.1 KB, 664x561 - viewed 346 times.)
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #1 on: April 17, 2017, 07:44:19 PM »

heyyy Graeme I made one already some time ago... don't remember well the details smiley
Logged

No sweat, guardian of wisdom!
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Generalized Box Fold. Amazing Box, Amazing Surf and variations « 1 2 » fractower 25 8371 Last post September 23, 2011, 11:31:57 PM
by knighty
Spherical Texture Fold 3D Fractal Generation Aexion 7 4553 Last post July 15, 2011, 10:07:35 PM
by Jesse
The power of fold (new) Theories & Research knighty 8 1621 Last post September 12, 2011, 10:37:50 PM
by knighty
Fold Box Mod Mandelbulber Gallery mclarekin 0 751 Last post February 13, 2016, 09:19:00 PM
by mclarekin
Fold Box Mod 11 Mandelbulber Gallery mclarekin 0 640 Last post February 14, 2017, 12:17:07 PM
by mclarekin

Powered by MySQL Powered by PHP Powered by SMF 1.1.21 | SMF © 2015, Simple Machines

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