POV-Ray : Newsgroups : povray.binaries.images : Urban heightfield [WIP] : Urban heightfield [WIP] Server Time
29 Jul 2024 22:22:13 EDT (-0400)
  Urban heightfield [WIP]  
From: Marco Bernardini
Date: 30 Jul 2013 12:35:01
Message: <web.51f7eaa68a30b87e3495bd7c0@news.povray.org>
Something with an "urban" look, using radial, cells and checker functions for a
heightfield.
Nothing definitive, just a starting point.
Big problem: to give a different texture just to roofs, but I'll post about this
in the general group.

Marco Bernardini


****

camera{
 location <0,15,-30> look_at <0,0,0>
 right x*image_width/image_height
}

background { rgb 0.7 }

#declare P1=function{
 pigment {
  radial
  translate <5,0,5>
  frequency 8
  scale 0.1
 }
}

#declare P2=function{
 pigment {
  cells
  scale 0.05
 }
}

#declare P3=function{
 pigment {
  checker
  scale 0.2
 }
}

#declare P=function {
 P1(x,y,z).gray
 + P2(x,0,z).gray
 + P3(x,0,z).gray
}

#declare Blocks =
height_field {
 function 666, 666 {
 P(x,0,y)
 }
 texture {
  pigment {
   color rgb 1
  }
 }
 translate <-.5,0,-.5>
}

object {
 Blocks
 scale <35,5,50>
}

light_source {
 <-30, 50, -30>
 rgb <1,.2,0>
}

*****


Post a reply to this message


Attachments:
Download 'urban_heightfield.png' (74 KB)

Preview of image 'urban_heightfield.png'
urban_heightfield.png


 

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