POV-Ray : Newsgroups : povray.binaries.images : slope Server Time
15 Nov 2024 13:23:47 EST (-0500)
  slope (Message 1 to 2 of 2)  
From: Bryan Valencia
Subject: slope
Date: 20 Jun 2006 19:40:05
Message: <44988755$1@news.povray.org>
I'm trying to use a height_field and the slope pigment to do some buildings,
but I can't figure it out.

I'd like to make the more vertical surfaces of my to use my windows "cells"
texture, while the more horizontal surfaces should be plain gray.


Post a reply to this message

From: Charles C
Subject: Re: slope
Date: 21 Jun 2006 02:15:00
Message: <web.4498e32fb7f79e33200a56120@news.povray.org>
You've already got the textures you want?  Sounds like you just need to use
a texture_map with with a slope pattern.  E.g (using textures borrowed from
docs):


//
//********************************* ---o
//                                     o
#include "colors.inc"
#include "textures.inc"
#include "woods.inc"


camera { location  <3, 4, 5>
         direction 4*z
         right     x*image_width/image_height
         look_at   <0,0,0>
}

light_source { <30,30,30>, color rgb 1 }


height_field {
  png
  "hf buildings.png"  //change file name of course
  texture {
     slope y
     texture_map {
       [0.3  pigment{Red} finish{phong 1}]
       [0.3  T_Wood11]
       [0.6  T_Wood11]
       [0.9  pigment{DMFWood4} finish{Shiny}]
     }
   }

}
//
//********************************* ---o
//                                     o

PS, This thread probably should be in "General"

Charles




"Bryan Valencia" <pov### [at] spamgourmetcom> wrote:
> I'm trying to use a height_field and the slope pigment to do some buildings,
> but I can't figure it out.
>
> I'd like to make the more vertical surfaces of my to use my windows "cells"
> texture, while the more horizontal surfaces should be plain gray.


Post a reply to this message

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