POV-Ray : Newsgroups : povray.binaries.images : bricks (isosurface) : Re: bricks (isosurface) Server Time
7 Nov 2024 11:33:43 EST (-0500)
  Re: bricks (isosurface)  
From: Groucho
Date: 17 Aug 2004 16:08:04
Message: <412265a4@news.povray.org>
Here it goes:

#declare rr = seed(1234);

#macro T_Wall()
 pigment {rgb (0.8+0.15*rand(rr))*<0.3+0.02*rand(rr),0.3,0.3>}
 normal {
  granite
  scale 0.01
 }
 finish {diffuse 1.8}
#end

#macro BlockWall(l,h,w)
 #declare r=0.02;
 isosurface {
  function {
   f_rounded_box(x,y,z,r,l/2,h/2,w/2)+0.01*f_noise3d(10*x,10*y,10*z)
  }
  contained_by {box {<-l/2,-h/2,-w/2> <l/2,h/2,w/2>}}
  translate <l/2,h/2,w/2>
  texture {T_Wall()}
 }
#end

.Groucho.

"Vladimir" <nomail@nomail> wrote in message
news:web.412235209f026eba14f564e0@news.povray.org...
> I have finally checked out the links.
> The Brick posted by stefan is very good but when I experimented I found it
> only textured on one side. I think this is because the bricks were based
> around the function x and I will do some more experimenting trying out
> functions to produce boxes.
>
> Groucho- your pictures are great. I would be very interested in seing the
> source code for the bricks.
>
> The bricks I will be using in my final image will be whitewashed and
> therefore I am trying to create a brick that looks good with minimal
> texturing.
>
> Thanks
> Peter
>


Post a reply to this message

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