Logo by Fiery - 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: Visit the official fractalforums.com Youtube Channel
 
*
Welcome, Guest. Please login or register. April 24, 2024, 03:45:44 PM


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: jcube formula question  (Read 4997 times)
Description: Trying to determine the jcube formula in v 191 to bring into Houdini
0 Members and 2 Guests are viewing this topic.
jamesbradleym
Forums Newbie
*
Posts: 5


« on: January 20, 2017, 09:20:02 PM »

Hello!

I'm working through Houdini and I've managed to get a semblance of the mandelbulb in 3d through use of it's 3d forumla - now I'm trying to determine what the fomula is for the JCube 3 set inside mandelbulb3d v 191.

I tried to find it through the .m3f file but all it says is

Code:
"[OPTIONS]
.Version = 4
.DEscale = 0.2
.DEoption = 2
.RStop = 1024
.DReci2 Alpha = .41421356
.Double Cx1 = 0
.Double Cy1 = 1
.Double Cz1 = 1
.Double Cx2 = 1
.Double Cy2 = 1
.Double Cz2 = 1
.Double GScale (test) = 3
[CODE]
558BEC535689C38B75088B7630B8FFFFFF7F2141042142042143049083C4B0DD
46B0D9E8D8E9D9C9D9E0DD5C2418DC46F0DD1424DC4EE8DD542408D9E8DEF1DD
542410DC4C2418D9E8DEC1DD5C241890DD01DD02DD03D8D1DFE0D0EC7202D9C9
D8D2DFE0D0EC7302D9CAD9C9D8D2DFE0D0EC7202D9CA90D9C0DD442410DED9DF
E0D0EC765290D9C0DC442418D9C2DED9DFE0D0EC764190DD46E0DCE9DDD8DD46
D8DCEADDD8DD46D0DCEBDDD8DD442408DCCBDCCADCC9DD4108DEC9DD5908DD46
E0DCC1DDD8DD46D8DCC2DDD8DD46D0DCC3DDD890EB3E90DD46C8DCE9DDD8DD46
C0DCEADDD8DD46B8DCEBDDD8DD042490DCCBDCCADCC9DD4108DEC9DD5908DD46
C8DCC1DDD8DD46C0DCC2DDD8DD46B8DCC3DDD89090DD1BDD1ADD1989D883C450
5E5B5DC20800
[END]

A brute-force IFS formula, that tries to replicate the "Jerusalem Cube" fractal.
It is discontinue, but it's the best known approximation of the formula.
Warning; GScale parameter may help to obtain more effects but discontinuities become more evident!"

Which is helpful to some extent but the formula isn't shown at all..

Anyone have any ideas on how to either parse the code and decompile it or maybe who know's the jcube formula used in v 191?

Thanks!

James[/code]
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #1 on: January 20, 2017, 09:31:43 PM »

Formula is in the forums. No need to decompile! smiley
I don't remember where but search for Jerusalem Cube
http://www.fractalforums.com/sierpinski-gasket/jerusalem-cube-can-be-made-via-kifs/
Logged

No sweat, guardian of wisdom!
jamesbradleym
Forums Newbie
*
Posts: 5


« Reply #2 on: January 20, 2017, 09:35:32 PM »

Thanks so much!!
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #3 on: January 20, 2017, 09:48:51 PM »

Formulas can be decompiled but it is very hard to interpret the results.
Sometimes it is even obscure to me
You are welcome  A Beer Cup
Luca
Logged

No sweat, guardian of wisdom!
jamesbradleym
Forums Newbie
*
Posts: 5


« Reply #4 on: January 20, 2017, 09:53:32 PM »

Formula is in the forums. No need to decompile! smiley
I don't remember where but search for Jerusalem Cube
http://www.fractalforums.com/sierpinski-gasket/jerusalem-cube-can-be-made-via-kifs/

So I just went through that link to the forums, I couldn't find an equation set that incorporated the 8 variables shown in the formulas tab (Alpha, Cx1, Cy1, Cz1, Cx2, Cy2, Cz2, GScale (test)).

Looking through each of the posts that searching Jerusalem cube pulls up..
Logged
jamesbradleym
Forums Newbie
*
Posts: 5


« Reply #5 on: January 20, 2017, 10:27:25 PM »

After closer inspection and a (attempted) reading of your discourse it may be that this:

Code:
JC4(x,y,z,alpha,beta){
   t=beta-1;
   scl=(alpha+t);
   scl1=scl/alpha;
   a=1/scl1;
   r=x*x+y*y+z*z;dd=1;
   for(i=0;i<MI && r<100;i++){
      x=abs(x);y=abs(y);z=abs(z);
      if(x<y){t=x;x=y;y=t;}
      if(z<x){t=z;z=x;x=t;}
      if(x<y){t=x;x=y;y=t;}

      if(y<a && x>1-beta*a+y){
         x-=1;z-=1;
         x*=scl1;y*=scl1;z*=scl1;dd*=scl1;
         x+=1;z+=1;
      }else{
         x-=1;y-=1;z-=1;
         x*=scl;y*=scl;z*=scl;dd*=scl;
         x+=1;y+=1;z+=1;
      }
      r=x*x+y*y+z*z;
   }
   (sqrt(r)-1.75)/dd
}

Is the jcube3 formula used inside mandelbulb3d v 1.91. However, I'm still uncertain as to which variables are Cx2, Cy2, Cz2, or Gscale. and for that matter I'm a bit stumped on Cx1, Cy1, and Cz1 - they aren't labeled as such in the actual code so I'm cautious to label them as x = Cx1 etc...
Logged
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #6 on: January 21, 2017, 08:39:25 PM »

I no longer remember.
Cx,Cy,Cz should be some replacement to the x+=1 ... etc but ... do not remember much else!
Logged

No sweat, guardian of wisdom!
jamesbradleym
Forums Newbie
*
Posts: 5


« Reply #7 on: January 25, 2017, 08:13:53 PM »

Ahh well, it's okay.. Still trying to figure it out but not having much luck just yet..

How do the multiple equation fractals work? I have _y2 reciprocal as the first equation with jcube following - not sure how they relate to form the fractal though.
Logged
Pages: [1]   Go Down
  Print  
 
Jump to:  

Related Topics
Subject Started by Replies Views Last post
Question about Formula Mandelbulb 3d M Benesi 4 1844 Last post June 25, 2010, 07:45:09 AM
by M Benesi
question about formula reset and some more... Mandelbulb 3d cKleinhuis 9 3254 Last post December 29, 2010, 01:55:39 AM
by cKleinhuis
Question about parameters ( formula; AexionC ) Mandelbulb 3d TsarveK 5 1523 Last post March 09, 2012, 12:05:34 PM
by DarkBeam
@jesse - save formula as new formula ?! feature request cKleinhuis 0 5064 Last post October 10, 2012, 05:43:14 PM
by cKleinhuis
Quick formula question Mandelbulb 3d Glitchraptor 8 1676 Last post March 20, 2015, 10:51:44 PM
by DarkBeam

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.172 seconds with 28 queries. (Pretty URLs adds 0.009s, 2q)