POV-Ray : Newsgroups : povray.binaries.images : Block coded in PovRay Server Time
2 Aug 2024 02:28:26 EDT (-0400)
  Block coded in PovRay (Message 1 to 10 of 23)  
Goto Latest 10 Messages Next 10 Messages >>>
From: H  Karsten
Subject: Block coded in PovRay
Date: 4 Feb 2008 13:25:01
Message: <web.47a75855985ffec620776f0@news.povray.org>
A view people ask me how I did this:
http://news.povray.org/povray.binaries.images/thread/%3Cweb.4798a383d450dfce811410630%40news.povray.org%3E/?mtop=259872


Well now I tried to code such a cube in PovRay.

Here it is:

//Take a coffee now!!

global_settings {assumed_gamma 3 radiosity {pretrace_start 1 pretrace_end
0.0000001 count 50 error_bound 0.05 recursion_limit 10 brightness 0.5}}

camera {
  ultra_wide_angle
  location  <0.0, 0.1, -1.0>*1.5
  direction 1.5*z
  right     x*image_width/image_height
  angle 90
  look_at   <0.0, 0.65,  0.0>
}

light_source {<-30, 30, -30> color rgb 1}

#declare resolution=60;
#declare densiti=0.125;
#declare chaos=2;

#declare bloks=union{
#declare zet=0;
#while (zet<resolution)

#declare hf=object{height_field {
    function resolution,resolution {
      pigment {
        agate
        color_map {
         [0  color rgb 0]
         [1  color rgb 1]
        }
        turbulence chaos
        scale 1
        translate <0,0,1/resolution*zet>
      }
    }
scale resolution
  } }


#declare zet=zet+1;
#declare iks=0;
#while (iks<resolution)
#declare iks=iks+1;
#declare ueps=0;
#while (ueps<resolution)
#declare ueps=ueps+1;
#if (inside(hf,<iks,(resolution/(1/(1-(densiti)))),ueps>))
box{-0.4,0.4 translate<iks,zet,ueps>}
#end
#end
#end
#end
}
object{bloks
pigment{color rgb 1}
finish{ambient 0 diffuse 1}
scale 1/resolution
translate <-0.5,0,-0.5>
rotate <0,60,0>
}


sky_sphere {
  pigment {
    gradient y
    color_map {
      [0.0 rgb <0.6,0.7,1.0>]
      [0.5 rgb <0.0,0.1,0.8>]
      [1 rgb 0]
    }
  }
}


plane {
  y, 0
  pigment { color rgb 1 }
  finish{ambient 0 diffuse 1}
}


Post a reply to this message


Attachments:
Download 'block.jpg' (259 KB)

Preview of image 'block.jpg'
block.jpg


 

From: nemesis
Subject: Re: Block coded in PovRay
Date: 4 Feb 2008 14:15:01
Message: <web.47a7639f15c6d867fba9d8b70@news.povray.org>
"H. Karsten" <h-karsten()web.de> wrote:
> pretrace_end 0.0000001 count 50 error_bound 0.05

oh, man!


Post a reply to this message

From: William Tracy
Subject: Re: Block coded in PovRay
Date: 4 Feb 2008 16:29:26
Message: <47a783b6$1@news.povray.org>
Looks like a neat start for some really awesome spaceship greebling. :-D

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

:D1ck :u like the site
:D1ck :what wil u give it out of 10
:Sp07 :.654564
     -- script kiddies in an IRC chat


Post a reply to this message

From: Thomas de Groot
Subject: Re: Block coded in PovRay
Date: 5 Feb 2008 03:32:15
Message: <47a81f0f@news.povray.org>
Interesting!

...and by playing with the size of the component blocks, one gets this for 
instance. Very close to your original one.

by the way, I just used the default values for radiosity.

Thomas


Post a reply to this message


Attachments:
Download 'HKarsten_GreebleBlock.png' (136 KB)

Preview of image 'HKarsten_GreebleBlock.png'
HKarsten_GreebleBlock.png


 

From: Thomas de Groot
Subject: Re: Block coded in PovRay
Date: 5 Feb 2008 07:45:57
Message: <47a85a85@news.povray.org>
Another interesting example. I randomized the individual block sizes and the 
pigments; used marble instead of agate; densiti=0.25; chaos=0.5

Thomas


Post a reply to this message


Attachments:
Download 'HKarsten_GreebleBlock.jpg' (98 KB)

Preview of image 'HKarsten_GreebleBlock.jpg'
HKarsten_GreebleBlock.jpg


 

From: H  Karsten
Subject: Re: Block coded in PovRay
Date: 5 Feb 2008 08:30:02
Message: <web.47a863b615c6d86725876e950@news.povray.org>
You can also play with the pattern.
Use wrinkles or leopard instead of agate.


Post a reply to this message

From: Stephen
Subject: Re: Block coded in PovRay
Date: 5 Feb 2008 08:41:34
Message: <srpgq35vc2df9u0bb8lo8i6dp0ogmhhpqo@4ax.com>
On Tue, 5 Feb 2008 13:45:52 +0100, "Thomas de Groot" <t.d### [at] internlDOTnet>
wrote:

>Another interesting example. I randomized the individual block sizes and the 
>pigments; used marble instead of agate; densiti=0.25; chaos=0.5
>
>Thomas 
>
I like that

Regards
	Stephen


Post a reply to this message

From: nemesis
Subject: Re: Block coded in PovRay
Date: 5 Feb 2008 09:50:00
Message: <web.47a8768415c6d867f6bd64af0@news.povray.org>
"Thomas de Groot" <t.d### [at] internlDOTnet> wrote:
> Another interesting example. I randomized the individual block sizes and the
> pigments; used marble instead of agate; densiti=0.25; chaos=0.5
>
> Thomas

the smaller preview image makes it look like an iceberg! :)


Post a reply to this message

From: bluetree
Subject: Re: Block coded in PovRay
Date: 5 Feb 2008 11:35:01
Message: <web.47a8902015c6d867715c5f5e0@news.povray.org>
"nemesis" <nam### [at] gmailcom> wrote:
> "Thomas de Groot" <t.d### [at] internlDOTnet> wrote:
> > Another interesting example. I randomized the individual block sizes and the
> > pigments; used marble instead of agate; densiti=0.25; chaos=0.5
> >
> > Thomas
>
> the smaller preview image makes it look like an iceberg! :)

And the bigger one for an instance like many sugar cubes. Hmmmm. :-)
Looks nice.

Regards
            bluetree


Post a reply to this message

From: William Tracy
Subject: Re: Block coded in PovRay
Date: 5 Feb 2008 17:57:54
Message: <47a8e9f2@news.povray.org>
Thomas de Groot wrote:
> Another interesting example.

Legos! :-D

-- 
William Tracy
afi### [at] gmailcom -- wtr### [at] calpolyedu

    "I don't hink it helps to make analagies between the physical and 
social worlds," Sax said primly.
    "Shut up, Sax. Go back to your virtual reality."
     -- Kim Stanley Robinson, _Red Mars_


Post a reply to this message

Goto Latest 10 Messages Next 10 Messages >>>

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