POV-Ray : Newsgroups : povray.binaries.images : One for the Linux Heads (27k) : Re: One for the Linux Heads (27k) Server Time
14 Aug 2024 07:14:11 EDT (-0400)
  Re: One for the Linux Heads (27k)  
From: Justin Higgins
Date: 27 Nov 2002 04:09:25
Message: <3DE489BC.6000400@webone.com.au>
Thanks,

The bubbles are pretty simple, here is the code for the whole cube:

intersection {

   isosurface {
       function { 
f_rounded_box(x,y,z,0.05,1,1,1)-f_noise3d(x*1.9,y*2.2,z*1.9)*0.2}
        contained_by { box {<-10,-10,-10><10,10,10>} }
        accuracy 0.01
       threshold 0
        max_gradient 1.34

   }

#local seedvar = seed (14);
#local nbub = 0;
#while (nbub < 150)
   sphere { 
<((rand(seedvar)-0.5)*1.8),((rand(seedvar)-0.5)*1.8),((rand(seedvar)-0.5)*1.8)>,rand(seedvar)*0.08

inverse}
   sphere { 
<((rand(seedvar)-0.5)*.8),((rand(seedvar)-0.5)*.8),((rand(seedvar)-0.5)*.8)>,rand(seedvar)*0.03

inverse}
   #local nbub = nbub + 1;
#end
   texture { pigment { Col_Glass_General } finish { F_Glass6 } normal { 
bumps 0.1 scale 0.2 } }
   interior { I_Glass1  }

     photons {
       target
       refraction on
       reflection on
     }
        rotate <0,3,0>
        translate <0,1.1,4>
}

Cheers,

  - Justin

Jong wrote:
> Dear Justin,
> 
>  Wonderful. The  bubbles are also really nice looking!
> If you don't mind, I'd like to know how you did the bubbles inside the cube.
> 
> Jong
> 
> "Justin Higgins" <jhi### [at] webonecomau> wrote in message
> news:3DE### [at] webonecomau...
> 
>>Hi,
>>
>>I really only did this cause I like the look of my icecube.
>>
>>
> 
> 
> 
>


Post a reply to this message

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