POV-Ray : Newsgroups : povray.binaries.images : Return to PoVghanistan - smooth HF bug in 3.5? (6 x JPG 800 x 600, 180 KB) : Re: Examples of Afghan mud architecture (was: Re: Return to PoVghanistan ) Server Time
15 Aug 2024 08:22:01 EDT (-0400)
  Re: Examples of Afghan mud architecture (was: Re: Return to PoVghanistan )  
From: Marc-Hendrik Bremer
Date: 12 Aug 2002 13:59:14
Message: <3d57f772@news.povray.org>
First try, far from perfect, but maybe a start. There should probably be
another displacment function (as Brick_Fun), to get the 'in brick cracks'.

Speaking of the third image you provided:
My problem is, that I don't understand how they build those walls. Are those
"features" the actual bricks (quite big ones) or is it some kind of plaster?
Is the more "traditional" brick wall in the upper right not jet roughcasted,
or are there simply differend kinds of walls?

Anyway here is the isosurface code for the above images (wrap it with some
scene from the insert-menu):

#include "textures.inc"
#include "functions.inc"
#include "rad_def.inc"


#declare Brick_Fun= function {pattern{ Irregular_Bricks_Ptrn  (0.08,3,1,0.4)
turbulence 0.4 scale 0.15}}

// function against the straight upper edge of the "building"
#declare YDispl=
function{select(y-1.4,0,f_noise3d(x*7.5,y,z*7.5)/7+f_noise3d(x*2,y,z*2)/5)}


isosurface {
    function { f_rounded_box(x-y/10,y+YDispl(x,y,z),z-y/10, 0.05, 3, 1.6, 3)
                   -Brick_Fun(x,y/3,z)*0.025
                }
    contained_by { box {<-3.5,-1.6,-3.5>,<3.5,1.7,3.5>} }  // container
shape
    max_gradient 5                      // POV finds something like 82 -
increase if you notice artefacts!

    pigment{ rgb 0.9}
    normal{granite  scale 0.5}
    translate <0,1.6,0>
    rotate y*-25
  }

Hope that helps a bit and let me know if you get stuck somewhere,

Marc-Hendrik


Post a reply to this message


Attachments:
Download 'POVghanistan.jpg' (44 KB)

Preview of image 'POVghanistan.jpg'
POVghanistan.jpg


 

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