POV-Ray : Newsgroups : povray.binaries.images : interesting shape: CA, DF3, isosurface (284k jpg) Server Time
11 Oct 2026 03:25:38 EDT (-0400)
  interesting shape: CA, DF3, isosurface (284k jpg) (Message 1 to 20 of 20)  
From: stbenge
Subject: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 4 Jun 2009 20:25:45
Message: <4a286609@news.povray.org>
Hello Everyone,

Here is the result of a 256x256-cell, 2D cellular automata sim played 
out in 128 frames and copied into a df3 file. It was then rendered in 
POV-Ray 3.7 using an isosurface, a box containing absorbing media, and a 
single area_light. A little bit of glare was added for a touch of extra 
luminance.

Thanks goes out to Warp. Last year he posted an example of how to write 
df3 files in C++. I was able to adapt his code to mine and run with it. 
Thanks!

Q's & C's, welcome as always~

Sam


Post a reply to this message


Attachments:
Download 'cadf3b.jpg' (284 KB)

Preview of image 'cadf3b.jpg'
cadf3b.jpg


 

From: Darren New
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 4 Jun 2009 21:15:07
Message: <4a28719b$1@news.povray.org>
stbenge wrote:
> Here is the result of a 256x256-cell, 2D cellular automata sim played 
> out in 128 frames and copied into a df3 file.

A very awesome visualization. Very cool. I bet if you got a glider gun, you 
could see the leaning towers. :-)

> Thanks goes out to Warp. Last year he posted an example of how to write 
> df3 files in C++. I was able to adapt his code to mine and run with it. 

Speaking of which, I just posted "MakeDF3" to p.b.utilities. It's a 
stand-alone Windows program (with portable Tcl source) that will read a file 
of x,y,z,v tuples and generate an appropriate binary DF3 file. Just in case 
you're working in BASIC or something and don't have convenient binary 
output. ;-)

-- 
   Darren New, San Diego CA, USA (PST)
   There's no CD like OCD, there's no CD I knoooow!


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 00:20:02
Message: <4a289cf2@news.povray.org>
Darren New wrote:
> A very awesome visualization. Very cool. I bet if you got a glider gun, 
> you could see the leaning towers. :-)

Thanks! Yeah, I should rediscover one of the large gliders I came 
across. Pretty long period, might be interesting.

  > Speaking of which, I just posted "MakeDF3" to p.b.utilities.

Sounds like a nifty app. Do you know anything about writing higher bits 
to a df3 file? Will 16 or 32 bits make for a smoother function in POV? I 
tried to implement higher bit values based on what the POV docs said 
about it, but didn't see any difference. I'm probably doing it wrong :)

Sam


Post a reply to this message

From: Darren New
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 01:23:36
Message: <4a28abd8@news.povray.org>
stbenge wrote:
> Darren New wrote:
>> A very awesome visualization. Very cool. I bet if you got a glider 
>> gun, you could see the leaning towers. :-)
> 
> Thanks! Yeah, I should rediscover one of the large gliders I came 
> across. Pretty long period, might be interesting.

Actually, I'd like to see the file into which you injected your DF3. That 
is, the surrounding lighting and statements and such.

>  > Speaking of which, I just posted "MakeDF3" to p.b.utilities.
> 
> Sounds like a nifty app. Do you know anything about writing higher bits 
> to a df3 file? Will 16 or 32 bits make for a smoother function in POV? 

I don't know. I wrote the code at the request of someone else.

-- 
   Darren New, San Diego CA, USA (PST)
   There's no CD like OCD, there's no CD I knoooow!


Post a reply to this message

From: Christian Froeschlin
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 03:33:23
Message: <4a28ca43$1@news.povray.org>
> Here is the result of a 256x256-cell, 2D cellular automata sim played 
> out in 128 frames and copied into a df3 file.

Interesting, it does look a bit like organic growth of
some coral or sponge.

> Thanks goes out to Warp. Last year he posted an example of how to write 
> df3 files in C++. I was able to adapt his code to mine and run with it. 

Note that you can write binary files since beta 32, so if
you ever port your automata to SDL you can write DF3 too ;)


Post a reply to this message

From: Bill Pragnell
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 03:35:00
Message: <web.4a28c9f181b26676dd25f0b0@news.povray.org>
Remarkable. In the best possible sense :-)


Post a reply to this message

From: Thomas de Groot
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 03:56:48
Message: <4a28cfc0@news.povray.org>
Corals! Excellent!

Thomas


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 11:30:27
Message: <4a293a13@news.povray.org>
Christian Froeschlin wrote:
> Note that you can write binary files since beta 32, so if
> you ever port your automata to SDL you can write DF3 too ;)

I'll keep that in mind if I ever feel like doing things the slow way ;) 
But that's good to know, actually. Thanks :)

Sam


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 11:31:13
Message: <4a293a41@news.povray.org>
Bill Pragnell wrote:
> Remarkable. In the best possible sense :-)

Thanks!

Sam


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 11:32:36
Message: <4a293a94$1@news.povray.org>
Thomas de Groot wrote:
> Corals! Excellent!

That was one of my first impressions too. I removed the texture which 
made it resemble a human brain. I didn't want to make anybody sick ;)

Sam


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 11:58:49
Message: <4a2940b9@news.povray.org>
Darren New wrote:
> Actually, I'd like to see the file into which you injected your DF3. 
> That is, the surrounding lighting and statements and such.

Okay, here it is. I can also post the df3 file if you are interested. I 
have the max_gradient for the isosurface set at 80, even though POV 
suggested 2037.859:

/*
CAdf3B.pov

June 2009
Samuel Benge
*/

#default{finish{ambient 0}}

camera{
  location <-0.1735,10.3,-13>
  look_at<0,.5,0>
  angle 20/1.75
}

#declare air = <.1 .2 .5>;
#declare lres = 3;
#declare lpos = <.5,.5,1>;

light_source{
  lpos*100000,1.75
  area_light x*80000,z*80000,lres,lres
  adaptive 2 jitter
}

background{rgb <92,30,1>/1024}

#declare densityFile = "brainB.df3";

#declare DF3B=
pigment{
  pigment_pattern{planar scale 2 translate -y}
  pigment_map{
   [0 rgb 0]
   [.05
    density_file df3 densityFile
    interpolate 1
    translate -1/2
    rotate x*90+y*90
    scale 2*<1,-1,1>
   ]
  }
}

#declare DF3=
function{
  pigment{
   pigment_pattern{DF3B}
   color_map{
    [0 rgb 0]
    [.25 rgb 1]
   }
  }
}

isosurface{
  function{
   -DF3(x,y,z).grey+.5
  }
  accuracy .001
  max_gradient 80
  contained_by{box{-1,1}}
  pigment{
   bumps scale<100,.1,100>
   frequency 20
   translate y*.25
   color_map{
    [0 rgb<.8,.8,1>]
    [.25 rgb 1]
    [.5 rgb<.8,.7,1>]
    [1 rgb<1,.8,.7>]
   }
  }
  finish{brilliance 0}
  translate -y/8
  scale<2,1,2>
  double_illuminate
  no_shadow
}

box{-1.01,1.01
  pigment{rgbt 1}
  interior{
   media{
    absorption 70*air
    density{
     pigment_pattern{DF3B}
     color_map{
      [.1 rgb 0]
      [.125 rgb 1]
     }
    }
   }
  }
  translate -y/8
  scale<2,1,2>
  hollow
}


Post a reply to this message

From: Darren New
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 12:31:36
Message: <4a294868$1@news.povray.org>
stbenge wrote:
> Okay, here it is. I can also post the df3 file if you are interested. 

Thank you!  I wanted to play with different CAs, not fiddle with the POV ray 
itself. :-)

Actually, I have a CA that generates a nice 3D cave structure kind of thing 
(sorta). Originally built for an automated dungeon-crawl type game. I've put 
off building an actual scene because the blobs never seemed to come out 
right. I never thought to try a DF3 instead. I'll give this a go (in my 
copious spare time ;-).

-- 
   Darren New, San Diego CA, USA (PST)
   There's no CD like OCD, there's no CD I knoooow!


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 5 Jun 2009 14:04:04
Message: <4a295e14$1@news.povray.org>
Darren New wrote:
> stbenge wrote:
>> Okay, here it is. I can also post the df3 file if you are interested. 
> 
> Thank you!  I wanted to play with different CAs, not fiddle with the POV 
> ray itself. :-)

No problem! I know how you feel. I should feel bad about not learning 
vector.h and how to write df3s with it, but I don't :)

> Actually, I have a CA that generates a nice 3D cave structure kind of 
> thing (sorta). Originally built for an automated dungeon-crawl type 
> game. I've put off building an actual scene because the blobs never 
> seemed to come out right. I never thought to try a DF3 instead. I'll 
> give this a go (in my copious spare time ;-).

I would like to see it when you have something to show. I'm always 
interested in those types of things!

Sam


Post a reply to this message

From: Paolo Gibellini
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 8 Jun 2009 04:30:56
Message: <4a2ccc40@news.povray.org>
Really intriguing!
;-)
Paolo


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 8 Jun 2009 14:14:39
Message: <4a2d550f$1@news.povray.org>
Paolo Gibellini escribió:
> Really intriguing!

   Now that I think of it, apart from the technical wonders and the highly
artistic look, there is always "the intriguing touch" in Sam images.

   Great Work on this one, BTW...

--
Jaime


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 8 Jun 2009 15:22:12
Message: <4a2d64e4@news.povray.org>
Paolo Gibellini wrote:
> Really intriguing!
> ;-)
> Paolo

Thank you.

Sam


Post a reply to this message

From: stbenge
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 8 Jun 2009 15:23:33
Message: <4a2d6535$1@news.povray.org>
Jaime Vives Piqueres wrote:
> Paolo Gibellini escribió:
>> Really intriguing!
> 
>   Now that I think of it, apart from the technical wonders and the highly
> artistic look, there is always "the intriguing touch" in Sam images.
> 
>   Great Work on this one, BTW...

Thanks, it was just a test. I figured I should post *something* :)

Sam


Post a reply to this message

From: Thomas de Groot
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 9 Jun 2009 02:59:33
Message: <4a2e0855$1@news.povray.org>
"stbenge" <" <-"@hotmail.com> schreef in bericht 
news:4a2d6535$1@news.povray.org...
>
> Thanks, it was just a test. I figured I should post *something* :)

Somehow, your tests are always more than just a test.

Thomas


Post a reply to this message

From: Jaime Vives Piqueres
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 9 Jun 2009 11:21:41
Message: <4a2e7e05$1@news.povray.org>
Thomas de Groot escribió:
> Somehow, your tests are always more than just a test.

   Test scenes are almost whole genre in visual arts, and some people are
very good at it, including Samuel. Making a non-boring test scene is really
an art...

--
Jaime


Post a reply to this message

From: Thomas de Groot
Subject: Re: interesting shape: CA, DF3, isosurface (284k jpg)
Date: 10 Jun 2009 03:50:34
Message: <4a2f65ca@news.povray.org>
"Jaime Vives Piqueres" <jai### [at] ignoranciaorg> schreef in bericht 
news:4a2e7e05$1@news.povray.org...
>   Test scenes are almost whole genre in visual arts, and some people are
> very good at it, including Samuel. Making a non-boring test scene is 
> really
> an art...

I fully agree.

Thomas


Post a reply to this message

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