POV-Ray : Newsgroups : povray.binaries.images : A Friday Abstract Server Time
30 Jul 2024 16:24:16 EDT (-0400)
  A Friday Abstract (Message 21 to 30 of 30)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Jaime Vives Piqueres
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 03:59:36
Message: <4ecb6478$1@news.povray.org>
On 22/11/11 01:50, stbenge wrote:
> On 11/19/2011 5:02 AM, Thomas de Groot wrote:
>> Have you seen this animation?
>> http://www.youtube.com/watch?v=JlUMRMpLzRo
>
> Sorry, I can't view those things. More precisely, I can't stand to
> wait the for the darned things to download. We still have yet to
> experience a cost-effective, post 2000's internet technology to hit
> this area :(

   I guess "that area" is benefiting from such isolation in several ways,
tough... ;)

   The animation shows a 3D fractal created with Mandelbulber, which
looks truly impressive... I've just downloaded it, and I can't stop
playing with it. It's a shame that I cannot export these things to
POV-Ray for a better texturing work... because I lack the skills to
create them from the scratch, as you did.

--
Jaime


Post a reply to this message

From: Ive
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 06:44:32
Message: <4ecb8b20@news.povray.org>
Am 22.11.2011 09:59, schrieb Jaime Vives Piqueres:
> The animation shows a 3D fractal created with Mandelbulber, which
> looks truly impressive... I've just downloaded it, and I can't stop
> playing with it. It's a shame that I cannot export these things to
> POV-Ray for a better texturing work... because I lack the skills to
> create them from the scratch, as you did.
>
> --
> Jaime

Yeah, Mandelbulber is fun!

Maybe you are able to come up with some more interesting texture work 
than I did as I was mostly interested in the formula itself after having 
played with Mandelbulber.

This is my try on doing it within POV-SDL. It needs some toying around 
with the isosurface parameters (and the iteration limit) for closeup views.

-Ive


========================================================================+

#declare fm_recurse = function(Iteration, IterationBailout, x,y,z, MB_x, 
MB_y, MB_z) {

    select(Iteration > IterationBailout | pow(MB_x,2) + pow(MB_y,2) + 
pow(MB_z,2) > 2, 0,

       fm_recurse(Iteration+1, IterationBailout, x,y,z,

          x + pow(pow(MB_x,2) + pow(MB_y,2) + pow(MB_z,2), 4)
              * sin( atan2(sqrt(pow(MB_x,2) + pow(MB_y,2)), MB_z) * 8)
              * cos( atan2(MB_y, MB_x) * 8),

          y + pow(pow(MB_x,2) + pow(MB_y,2) + pow(MB_z,2), 4)
              * sin( atan2( sqrt(pow(MB_x,2) + pow(MB_y,2)), MB_z) * 8)
              * sin( atan2(MB_y,MB_x) * 8),

          z + pow(pow(MB_x,2) + pow(MB_y,2) + pow(MB_z,2), 4)
              * cos( atan2( sqrt(pow(MB_x,2) + pow(MB_y,2)), MB_z) * 8)

       ),

       1 / (Iteration + log(L2 / log((Iteration > (Iteration-1)) + 
pow(MB_x,2) + pow(MB_y,2) + pow(MB_z,2))) / L8)

    )
};


#declare f_mandelbulb = function(x,y,z, MaxIterations) {
     fm_recurse (1, int(MaxIterations-1), x,y,z, x,y,z)
}


#declare Mandelbulp = isosurface {
   function {f_mandelbulb(x,y,z, 10)}  // MaxIterations = 10
   threshold 0.17
   max_gradient 12
   accuracy 0.001
   contained_by {sphere {0, 1.2} }
/*
   texture {
     pigment {
       function { f_mandelbulb(x,y,z, 5) } sine_wave
       scale 1
       frequency 4
       color_map {
         [0.00 rgb <0.7, 0.4, 0.1> ]
         [1.00 rgb <0.9, 0.2, 0.0> ]
       }
     }
     finish {
       ambient 0  diffuse 0.9  specular 0 roughness 0.02
     }
   }
*/

   texture {
     pigment {
       spherical
       color_map {
         [0.00 rgb <0.0, 0.6, 0.2> ]
         [0.26 rgb <0.7, 0.4, 0.1> ]
         [1.00 rgb <0.5, 0.1, 0.0> ]
       }
       turbulence 0.11
       scale 1.2
     }

     finish {
       ambient 0  diffuse 1
     }
   }
}

========================================================================+


Post a reply to this message


Attachments:
Download 'mandelbulp-8-8-2.jpg' (292 KB)

Preview of image 'mandelbulp-8-8-2.jpg'
mandelbulp-8-8-2.jpg


 

From: Ive
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 06:48:03
Message: <4ecb8bf3@news.povray.org>
Am 22.11.2011 12:43, schrieb Ive:

err, obviously missing:

#declare L2 = log(2);
#declare L8 = log(8);


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 13:01:40
Message: <4ecbe384$1@news.povray.org>
On 22/11/11 12:43, Ive wrote:
> Yeah, Mandelbulber is fun!

   Too fun, I would say... I'm getting addicted.

> Maybe you are able to come up with some more interesting texture work
>  than I did as I was mostly interested in the formula itself after
> having played with Mandelbulber.
>
> This is my try on doing it within POV-SDL. It needs some toying
> around with the isosurface parameters (and the iteration limit) for
> closeup views.

   OMG... after just trying the code, I'm fearing the attached image took
days to render? :(

--
Jaime


Post a reply to this message

From: Ive
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 15:12:10
Message: <4ecc021a@news.povray.org>
Am 22.11.2011 19:01, schrieb Jaime Vives Piqueres:
> OMG... after just trying the code, I'm fearing the attached image took
> days to render? :(
>
It was some time ago but I think to remember rendering time was about 3 
hours - with an overclocked and well cooled i7 that is.
But I might very well have used different settings for the isosurface 
and I think a recursion limit of only 8 and not 10, but I'm not sure.

Anyway this SDL function *is* slow (mostly because the recursion I 
think) and it would be much faster by implementing the mandelbulb 
function as iteration within POV-Ray itself. Should be fairly simple. In 
case you are compiling POV-Ray from source and are interested I could 
give it a try and send you a patch?

-Ive


Post a reply to this message

From: waggy
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 15:30:00
Message: <web.4ecc052677a558489726a3c10@news.povray.org>
Ive <ive### [at] lilysoftorg> wrote:
> Anyway this SDL function *is* slow (mostly because the recursion I
> think) and it would be much faster by implementing the mandelbulb
> function as iteration within POV-Ray itself. Should be fairly simple. In
> case you are compiling POV-Ray from source and are interested I could
> give it a try and send you a patch?
>
Just do a search on the newsgroups for f_mandelbulb.  I haven't had a chance to
fully test the patch with RC3, but changing the relevant code bits manually
worked fine.  The speedup is significant, but not stellar.


Post a reply to this message

From: Ive
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 15:58:14
Message: <4ecc0ce6@news.povray.org>
Am 22.11.2011 21:25, schrieb waggy:
> Just do a search on the newsgroups for f_mandelbulb.  I haven't had a chance to
> fully test the patch with RC3, but changing the relevant code bits manually
> worked fine.  The speedup is significant, but not stellar.
>

Ah, well, found it.
I was already wondering that nobody has done this before ;)
This guy from skytopia was also my source of information and there are 
some really nice renderings over there.

-Ive


Post a reply to this message

From: stbenge
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 16:16:19
Message: <4ecc1123$1@news.povray.org>
On 11/22/2011 12:07 AM, Thomas de Groot wrote:
> On 22-11-2011 1:45, stbenge wrote:
>> I thankee, sai! (sorry, too much SK)
>
> [sounds familiar... is that The Dark Tower?]
>

Yeah ;P


Post a reply to this message

From: Christian Froeschlin
Subject: Re: A Friday Abstract
Date: 22 Nov 2011 16:27:06
Message: <4ecc13aa$1@news.povray.org>
stbenge wrote:

> We still have yet to experience a 
> cost-effective, post 2000's internet technology to hit this area :(

Have you looked at satellite options? I don't have experience
with them myself but it looks like end customer options start at
about EUR 15 per month at least in Europe (for 1.5 MBit downstream
and upstream over your previous provider). High latencies are
unavoidable (speed of light) so this would be just for
download, not gaming or skype.


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: A Friday Abstract
Date: 23 Nov 2011 04:17:17
Message: <4eccba1d@news.povray.org>
On 22/11/11 21:11, Ive wrote:
> Anyway this SDL function *is* slow (mostly because the recursion I
> think) and it would be much faster by implementing the mandelbulb
> function as iteration within POV-Ray itself. Should be fairly simple.
> In case you are compiling POV-Ray from source and are interested I
> could give it a try and send you a patch?

   Thanks, but for the moment I prefer to just use Mandelbulber, as it is
fairly fast and so I avoid expending too much time on this "fractal
fascination". And to be frank, the mandelbulb is not my preferred one:
actually I'm addicted to the Tglad's mandelbox, as it gives the most
surprising and diverse results.

--
Jaime


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.