Logo by CorneliaYoder - 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: Did you know ? you can use LaTex inside Postings on fractalforums.com!
 
*
Welcome, Guest. Please login or register. November 26, 2025, 01:26:16 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 [2] 3 4 ... 8   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: Help?  (Read 3685 times)
0 Members and 1 Guest are viewing this topic.
DarkBeam
Global Moderator
Fractal Senior
******
Posts: 2512


Fragments of the fractal -like the tip of it


« Reply #15 on: October 30, 2015, 09:24:47 AM »

Nice job and np for hijacking since I do it all the times  A Beer Cup
Logged

No sweat, guardian of wisdom!
Crist-JRoger
Fractal Fertilizer
*****
Posts: 389



WWW
« Reply #16 on: October 30, 2015, 08:41:43 PM »

smooth menger rendered with global illumination




Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #17 on: October 30, 2015, 10:21:53 PM »

Can we pronounce it "Shmenger"?  Because that would be awesome. 


  Nice renders. 
Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #18 on: October 30, 2015, 10:45:02 PM »

this is how I used (modified) your fold function...

 If you could, I'd comment before bscale and boffset like the following (I also changed the default values and the total range):

Code:
// keep scale values the same for each variable, for a more orderly fractal
uniform vec3 bscale; slider[(-5,-5,-5),(2,2,2),(5,5,5)]
//only use x component, for a more orderly fractal
uniform vec3 boffset; slider[(-5,-5,-5),(2,0,0),(5,5,5)]

  In Fragmentarium, if you hover over a slider or box, it does a pop up of the comment that is directly above the variable declaration.  So if you hover over boffset, with the above code, it would pop up "only use x component, for a more orderly fractal".

 And then for the Pine part, introduce a pixel scaling part, with the y and z pixels normally set to 0, so it is more smooth.  In fact, if you set it up so the y and z parts only get added in every 4-5 iterations... way cooler.

  UPDATE:  mistake in formula below... due to optimizations (elimination of temp variables).  You have to calculate b.z before b.y, because you use b.y to calculate b.z.  I kept them in original order to let people know that I switched y and z in the calculation, but... really... seriously.  I'll comment in the formula.  
Code:
// just use x pixel, for most orderly fractal... I like order.  Don't ever alter this ever, or the fractal will
// come to life, seek out fluffy bunnies, and explode.  So if you face the Rabbit of Caerbannog.. well.
// this fractal can help, if you don't have the HHGoA.  
uniform vec3 PixelMult;slider[(-2,-2,-2),(1,0,0),(2,2,2)]

  //I'd multiply the pixel outside of the loop or function call, so you don't have to do it a bunch of times... so do it here:
Cx=Cx*PixelMult.x;
Cy=Cy*PixelMult.y;
Cz=Cz*PixelMult.z;

void BenesiPine(inout vec3 b) {
// STEP2: "Benesi pinetree"
float xt = b.x*b.x; float yt = b.y*b.y; float zt = b.z*b.z;
float t = 2.0*b.x/sqrt(yt+zt);
b.x = xt-yt-zt+Cx;
b.y = 2.0*t*b.y*b.z+Cz;  //  was b.z = t*(yt-zt)+Cy;      had to switch these because b.z is used in this.. so cannot
b.z = t*(yt-zt)+Cy;  //   was   b.y = 2.0*t*b.y*b.z+Cz;    change before it is calculated.  y and z are still switched
}                                                  // mathematically... just not in the formula    so I'd leave a comment so people know
I will add a Benensi folder to the Examples collection for these frags if that's ok with you  cheesy
 Implicitly.  Although I would totally not mind if you spelled my name correctly, like you did in the formulas, instead of like you did above.  Unless you insist on spelling it incorrectly.  Which would also probably be all right, but slightly confusing.  

  If it's all right with you, before they go all official, could I give them a once over?  Just to see if there are any optimization errors.  Funny- I made the EXACT same error when I was re-writing the frag yesterday....  because I used temp variables in the old version, and it just didn't work right.  I was like "WTF is going on??" until I looked...  afro
« Last Edit: October 30, 2015, 11:02:13 PM by M Benesi » Logged

mclarekin
Fractal Senior
******
Posts: 1739



« Reply #19 on: October 30, 2015, 11:35:05 PM »

Bensei is right up there with transfrom and origional,  as my current most common typos grin
Code:
float Cx = 0.816496580927726;
float Cy = 0.5773502691896258;
float Cz = 0.7071067811865475;
did you change to your mag constants to something like this so not to be confused with pixel component Cx, Cy Cz

float Cmagx = 0.816496580927726;
float Cmagy = 0.5773502691896258;
float Cmagz = 0.7071067811865475;
Logged
mclarekin
Fractal Senior
******
Posts: 1739



« Reply #20 on: October 31, 2015, 12:08:00 AM »

Quote
//I'd multiply the pixel outside of the loop or function call, so you don't have to do it a bunch of times... so do it here:
Cx=Cx*PixelMult.x;
Cy=Cy*PixelMult.y;
Cz=Cz*PixelMult.z;

That is  a good idea. I have yet to set up Initial Conditions transforms in Mandelbulber, but when I may add  the PixelMult option, cool.

SO I re-arranged the BenesiFastPwr2PineTree, for easy later removal.

 
Code:
CVector3 temp = z;
    z *= z;
    double t = 2 * temp.x/sqrt(z.y + z.z);
    c *= benesiFastPwr2PineTree.constantMultiplierVect;  // possibly move to IC
    z.x = (z.x - z.y - z.z) + c.x ;
    z.z = (t * (z.y - z.z)) + c.y ;
    z.y = (2 * t * temp.y * temp.z) + c.z;
« Last Edit: October 31, 2015, 12:17:51 AM by mclarekin, Reason: added re-arranged code » Logged
3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #21 on: October 31, 2015, 12:45:06 AM »

If you could, I'd comment before bscale and boffset like the following (I also changed the default values and the total range):
...
 Implicitly.  Although I would totally not mind if you spelled my name correctly
...
  If it's all right with you, before they go all official, could I give them a once over?  Just to see if there are any optimization errors.  Funny- I made the EXACT same error when I was re-writing the frag yesterday....  because I used temp variables in the old version, and it just didn't work right.  I was like "WTF is going on??" until I looked...  afro

Yes, comments are good.

TY! sorry 'bout the fat-fingering, I would have caught it eventually  roll eyes

Not quite ready for patch v14 but soon, I've been thinking of putting the examples folder into a separate zip file for maintenance and distribution or perhaps an accessible folder on my webserver, maybe a repository that can be queried for updates? wink at any rate I'll try to keep current with your changes, just post'em here on FF an I'll find them.  I know... there's always one more tweak smiley
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #22 on: October 31, 2015, 04:24:09 AM »

did you change to your mag constants to something like this so not to be confused with pixel component Cx, Cy Cz

  No, it's the way 3dickulus wrote it.  I'm thinking it's maybe a bit of recycling of variables... which I've done often.  You should check out some of my private (not publicly released) code....... well, not really, because it would take me years to explain all the variables, and I'd have to figure out the math again, because I didn't use a standardized nomenclature... 


That is  a good idea. I have yet to set up Initial Conditions transforms in Mandelbulber, but when I may add  the PixelMult option, cool.
  I thought you did something similar from your code already.  Hmm..
Quote from: mclarekin link=topic=22583.msg88233#msg88233 date=14462464SO I re-arranged the BenesiFastPwr2PineTree, for easy later removal.

 [code
CVector3 temp = z;
    z *= z;
    double t = 2 * temp.x/sqrt(z.y + z.z);
    c *= benesiFastPwr2PineTree.constantMultiplierVect;  // possibly move to IC
    z.x = (z.x - z.y - z.z) + c.x ;
    z.z = (t * (z.y - z.z)) + c.y ;
    z.y = (2 * t * temp.y * temp.z) + c.z;[/code]
Nice.  I do need to learn Mandelbulber, to become versed in it as well.
Logged

M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #23 on: October 31, 2015, 04:29:38 AM »

 
TY! sorry 'bout the fat-fingering, I would have caught it eventually  roll eyes
   I was joking about my name..  hope I don't come across the wrong way.... eek...
I know... there's always one more tweak smiley
  cool.  afro
Logged

3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #24 on: October 31, 2015, 04:38:06 AM »

Can we pronounce it "Shmenger"?  Because that would be awesome. 

"Shmenger" gets my vote +++
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
Crist-JRoger
Fractal Fertilizer
*****
Posts: 389



WWW
« Reply #25 on: October 31, 2015, 09:15:38 AM »

 Ohh.. exp is mine.  Whhhooops... cheesy  I put in some options to rotate around the camera- actually screwed up the math, but it worked good enough for me, although it didn't work the way I wanted.

  And.. here is an update.  Includes transforms 3,4,5b as options.  I don't get a lot of mileage out of my ancient 8+ year old GPU (8600m... mobile.. and not the faster one)...  ahh, you know what.  I don't know how to color either...  wink  I wrote a few scripts.. but.. meh...

  Anyway.. this has options to do the other transforms (and you can see how I set it up from within the code).. runs slower, but it has options.  If you remove a few of the if statements from the main loop, it will run faster.  I'd do that for rendering animations.
Is that possible to use "pine with options original Brute Raytracer.frag" with DE-raytracer?
Logged

3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #26 on: October 31, 2015, 09:00:49 PM »

Yes, well, sort of...
http://www.fractalforums.com/images-showcase-%28rate-my-fractal%29/bat/
http://www.fractalforums.com/images-showcase-%28rate-my-fractal%29/dragon-t22599/
and attached is a modified frag for testing, just the default mandelbulb DE frag with Benesi's fold and pine formulas hacked and butchered until I got some viewable results, this is probably not the "correct" implementation but fun to play with.

* BenesiFoldedBulb.frag (7.67 KB - downloaded 18 times.)
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
M Benesi
Fractal Schemer
****
Posts: 1075



WWW
« Reply #27 on: October 31, 2015, 09:24:02 PM »

  Try this.  Keep in mind that I am using an old version of Fragmentarium with old raytracers.. I need to update to 3dickulus's new version.. I.. just work with the things on my desktop.

  OMG.. I'm turning into my parents..  using old things because they work good enough, and I don't feel like bothering to get something new....  For whatever reason, the fractal fades in the distance... things that are far behind one section of the fractal aren't there.

   Ohh... raysteps wasn't set high enough.  Set them higher to get the distant parts of the fractal..

  I've been using non-DE because I'm used to it.. but.. anyway.  Here you go:


* pine with options DE.frag (9.15 KB - downloaded 21 times.)
« Last Edit: October 31, 2015, 09:39:01 PM by M Benesi » Logged

Crist-JRoger
Fractal Fertilizer
*****
Posts: 389



WWW
« Reply #28 on: October 31, 2015, 09:41:19 PM »

Thank you very much! 3dickulus and M Benesi too! I'll try... later, now computer busy.
I use frag ver. 1.0.0, because in new versions i have troubles with using - all borders of values in sliders are locked, so i often use values over the sliders. Sometimes very large  embarrass
And i don't like auto-build when you open many frags and switch them.
So, i use old software too, or not "old" - i just don't update without necessary  wink 
Logged

3dickulus
Global Moderator
Fractal Senior
******
Posts: 1558



WWW
« Reply #29 on: October 31, 2015, 10:25:44 PM »

@M Benesi mine is sooooo wrong, sorry for making a mess of your beautiful code evil and thanks for the proper DE frag cheesy

@Crist-JRoger I will try to apply the "No Auto Run" feature in preferences to the tab switching, but it should only be applying the last valid settings when returning to a tab ie: putting it where you left it so that settings from previous tab don't interfere with current tab.
all borders of values in sliders are locked, so i often use values over the sliders. Sometimes very large
can you elaborate on this a little bit?
Logged

Resistance is fertile...
You will be illuminated!

                            #B^] https://en.wikibooks.org/wiki/Fractals/fragmentarium
Pages: 1 [2] 3 4 ... 8   Go Down
  Print  
 
Jump to:  


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.636 seconds with 24 queries. (Pretty URLs adds 0.019s, 2q)