|
|
"Patrick Dugan" <pat### [at] netinsnet> wrote in message
news:3c9c9e4e@news.povray.org...
> How do/can you make a isosurface box that has a "rough" surface?
> I have a (poor) image I made by hand of a "turbulent" box shape.
Basically
> I am trying to
> make boxes that look like randomly made rectangular stones that have been
> placed within
> a stone wall (like a fireplace) but have been chipped to be somewhat
> rectangular so they
> can be placed somewhat close together.
I was just doing that too after talking to Tom about stone walls and
talking to my lovely wife about the stone wall we want in the front yard.
Here's what I've got so far, there are some odd things in it from left over
experiments but I think the basics are there. Hopefully it doesn't wrap
funny...
////////////// Camera //////////////////////
camera { //
right < 1.333, 0.0, 0.0 > //
up < 0.0, 1.0, 0.0 > //
direction < 0.0, 0.0, 1.0 > //
location < 3.0, 3.0, 7.0 >
look_at < 0.0, 0.0, 0.0 > //
} //
////////////// end Camera //////////////////
/////////////// Light ////////////////
light_source { < 1000.0, 1000.0, 1000.0 >
color rgb < 1.0, 1.0, 1.0 > }
#declare Rock=function{
pigment{
crackle
turbulence 0.25
color_map { [0 rgb 1] [1 rgb 0] }
scale < 0.5, 0.25, 0.5 >*3
}
}
#declare Wall1 = function { max((x*x*x-1),(y*y-1),(z*z-1)) }
#declare RockWall =
isosurface {
function {
Wall1(x,y,z)
+Rock(x,y,z).x
*0.5
}
contained_by { box { <-8.0,-1.5,-1.5 >,
< 8.0, 1.5, 1.5 > }
accuracy 0.0001
max_gradient 25
pigment { rgb 1 }
finish { ambient 0.125 }
translate < 0.0, 0.0, 0.0 >
}
object { RockWall }
Post a reply to this message
Attachments:
Download 'RockWall02.jpg' (15 KB)
Preview of image 'RockWall02.jpg'
|
|