POV-Ray : Newsgroups : povray.binaries.animations : mandelbulb Server Time
31 Oct 2024 08:17:00 EDT (-0400)
  mandelbulb (Message 1 to 9 of 9)  
From: jr
Subject: mandelbulb
Date: 16 Dec 2019 10:00:02
Message: <web.5df79ae89b091d678c662f470@news.povray.org>
hi,

on Dec 5th Chris Thomasson posted some code in comp.lang.c to render a set of
images forming an "Experimental Power Stack Mandelbulb".  converted and imported
those into a df3, and rendered a view revolving around Y.


enjoy, jr.


Post a reply to this message


Attachments:
Download 'ctdata.mp4.mpg' (2158 KB)

From: Bald Eagle
Subject: Re: mandelbulb
Date: 16 Dec 2019 13:30:01
Message: <web.5df7cc354033b194eec112d0@news.povray.org>
> converted and imported those into a df3,

I'll bet that would look cool as an isosurface


Post a reply to this message

From: jr
Subject: Re: mandelbulb
Date: 16 Dec 2019 15:00:07
Message: <web.5df7e2204033b198c662f470@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> > converted and imported those into a df3,
> I'll bet that would look cool as an isosurface

can post the code used if you want to take a gander.


regards, jr.


Post a reply to this message

From: Bald Eagle
Subject: Re: mandelbulb
Date: 16 Dec 2019 18:45:00
Message: <web.5df816bf4033b194eec112d0@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:

> can post the code used if you want to take a gander.

Is it like an adjustable mandelbulb thing where the result can be animated, or
does it just make a single DF3?   I can take a look at the DF3, and maybe
someone can suggest a texture / uv map to use.   I would imagine a proximity
pattern would be the closest to what people do with raymarching / signed
distance functions.


Post a reply to this message

From: Dick Balaska
Subject: Re: mandelbulb
Date: 16 Dec 2019 19:01:16
Message: <5df81acc$1@news.povray.org>
Am 12/16/19 9:55 AM, also sprach jr:
> hi,
> 
> on Dec 5th Chris Thomasson posted some code in comp.lang.c to render a set of
> images forming an "Experimental Power Stack Mandelbulb".  converted and imported
> those into a df3, and rendered a view revolving around Y.
> 
> 
> enjoy, jr.
> 

It looks like the bad guy in a cheesy action movie.

"Pink Ranger, I am your father!"


-- 
dik
Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)


Post a reply to this message

From: jr
Subject: Re: mandelbulb
Date: 16 Dec 2019 20:00:01
Message: <web.5df827394033b198c662f470@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> "jr" <cre### [at] gmailcom> wrote:
> > can post the code used if you want to take a gander.
>
> Is it like an adjustable mandelbulb thing where the result can be animated, or
> does it just make a single DF3?

a c program which outputs 256 frames/images.

there's not much by way of parameters, <x,y,z> dims and iteration count, I've
attached a source which is formatted (and slightly modified from the original),
compile with:

  $ cc -std=c99 ct.c -lm

the author recommends doubling the resolution.


> I can take a look at the DF3, and maybe
> someone can suggest a texture / uv map to use.

the df3 is 256^3, build your own?!  :-)

fwiw, this is the BASH to do it:

# mkdf3-sh
for i in $(seq 0 255)
do
  ppmtogif -nolzw ct_anime_$(printf %03d $i).ppm |
  giftopnm |
  pnmtopng > frm_$(printf %03d $i).png;
  sync
done

df3util create 256,256,256 1 ctdata  && sync

for i in $(seq 0 255)
do
  df3util -w import ctdata y:$i frm_$(printf %03d $i).png
done


> I would imagine a proximity
> pattern would be the closest to what people do with raymarching / signed
> distance functions.

I'd be interested in the program writing more than just a single value
("colour"), but haven't the maths to divine where to .. interfere.



> It looks like the bad guy in a cheesy action movie.
> "Pink Ranger, I am your father!"
> --
> dik
> Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)

</grin>  (although the reference is straight over my head)


regards, jr.


Post a reply to this message


Attachments:
Download 'ct.c.txt' (11 KB)

From: Dick Balaska
Subject: Re: mandelbulb
Date: 16 Dec 2019 20:31:01
Message: <5df82fd5$1@news.povray.org>
Am 12/16/19 7:54 PM, also sprach jr:
> # mkdf3-sh
> for i in $(seq 0 255)
> do
>    ppmtogif -nolzw ct_anime_$(printf %03d $i).ppm |
>    giftopnm |
>    pnmtopng > frm_$(printf %03d $i).png;
>    sync
> done

Why do you convert to gif first?  pnmtopng will read any of the netpbm 
formats.


-- 
dik
Rendered 49,882,521,600 of 49,882,521,600 pixels (100%)


Post a reply to this message

From: jr
Subject: Re: mandelbulb
Date: 16 Dec 2019 20:55:00
Message: <web.5df835514033b198c662f470@news.povray.org>
hi,

Dick Balaska <dic### [at] buckosoftcom> wrote:
> Am 12/16/19 7:54 PM, also sprach jr:
> >    ppmtogif -nolzw ct_anime_$(printf %03d $i).ppm |
> >    giftopnm |
> >    pnmtopng > frm_$(printf %03d $i).png;
>
> Why do you convert to gif first?  pnmtopng will read any of the netpbm
> formats.

heh, ignorance?  made me read the man page again, to be fair, it does say "reads
a portable pixmap" in the first sentence. :-)  and, re-reading, I see there's an
option to include a text chunk.  thanks!


regards, jr.


Post a reply to this message

From: jr
Subject: Re: mandelbulb
Date: 9 Jan 2020 08:15:00
Message: <web.5e1727384033b198c662f470@news.povray.org>
"jr" <cre### [at] gmailcom> wrote:
> on Dec 5th Chris Thomasson posted some code in comp.lang.c to render a set of
> images forming an "Experimental Power Stack Mandelbulb".  ...

also posted a strangely beguiling animation of (related) code:
<https://www.youtube.com/watch?v=XpbPzrSXOgk>


enjoy, jr.


Post a reply to this message

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