POV-Ray : Newsgroups : povray.general : Different textures depending on slope/steepness? Server Time
28 Nov 2024 22:30:27 EST (-0500)
  Different textures depending on slope/steepness? (Message 1 to 6 of 6)  
From: Kaggen
Subject: Different textures depending on slope/steepness?
Date: 26 Jul 2006 13:10:00
Message: <web.44c7a0b4959d8fec570bd89c0@news.povray.org>
Hi!

I'm into rendering landscapes right now, and i've been fairly successfull.
The one thing i can't get my head around is how i control textures
depending on how steep the slope (on a mountain side for example) is. I
found something called slope_map, but thats not what i'm looking for.

I also read somwhere that one can use the trace command, but it seems kind
of hard (i'm not that good at math).

The thing i wan't to do is to control, for example, grass and stone textures
depending on steepness of a mountainside. Where the surface is relativley
plain, i want to have a grass texture, where it's steep i wan't to have a
stone texture.

/Mats


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Different textures depending on slope/steepness?
Date: 26 Jul 2006 14:05:01
Message: <web.44c7ae5462efd8a4c150d4c10@news.povray.org>
"Kaggen" <nomail@nomail> wrote:
> Hi!
>
> I'm into rendering landscapes right now, and i've been fairly successfull.
> The one thing i can't get my head around is how i control textures
> depending on how steep the slope (on a mountain side for example) is. I
> found something called slope_map, but thats not what i'm looking for.
>
> I also read somwhere that one can use the trace command, but it seems kind
> of hard (i'm not that good at math).
>
> The thing i wan't to do is to control, for example, grass and stone textures
> depending on steepness of a mountainside. Where the surface is relativley
> plain, i want to have a grass texture, where it's steep i wan't to have a
> stone texture.
>
> /Mats

slope pattern (3.5.11.30  Slope in the docs)


-tgq


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Different textures depending on slope/steepness?
Date: 26 Jul 2006 14:10:00
Message: <web.44c7afe462efd8a4c150d4c10@news.povray.org>
"Kaggen" <nomail@nomail> wrote:
> Hi!
>
> I'm into rendering landscapes right now, and i've been fairly successfull.
> The one thing i can't get my head around is how i control textures
> depending on how steep the slope (on a mountain side for example) is. I
> found something called slope_map, but thats not what i'm looking for.
>
> I also read somwhere that one can use the trace command, but it seems kind
> of hard (i'm not that good at math).
>
> The thing i wan't to do is to control, for example, grass and stone textures
> depending on steepness of a mountainside. Where the surface is relativley
> plain, i want to have a grass texture, where it's steep i wan't to have a
> stone texture.
>
> /Mats

Also should note that slope_map has nothing to do with what you want.
Slope_map is for creating custom surface normal waveforms

-tgq


Post a reply to this message

From: Charles C
Subject: Re: Different textures depending on slope/steepness?
Date: 26 Jul 2006 14:20:00
Message: <web.44c7b1f262efd8a4200a56120@news.povray.org>
I think you want a texture_map with a slope pattern with up as the direction
vector.  Look up just "slope" in the docs and ignore that the example is for
a pigment.
Charles


Post a reply to this message

From: Charles C
Subject: Re: Different textures depending on slope/steepness?
Date: 26 Jul 2006 14:50:00
Message: <web.44c7b8d362efd8a43869c6770@news.povray.org>
Here's a quick (& kindof ugly) example....

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

#version 3.6;

#include "colors.inc"
#include "woods.inc"
#include "textures.inc"
#include "metals.inc"

// ----------------------------------------

camera {
  location  <2.0, 1.5, 0.5>
  direction 1.5*z
  right     x*image_width/image_height
  look_at   <0.5, 0.0,  0.5>
}

light_source {  <0, 10, 0>  color rgb <1, 1, 1>  }


// ----------------------------------------

plane { y, -1 pigment { color rgb <0.7,0.5,0.3> }    }


height_field {
  png
  "plasma3.png"
  texture {
      slope y
      texture_map {
        [0.0  T_Wood11]
        [0.5  pigment{Green} finish{phong 1}]
        [0.85  T_Chrome_1A]
        [0.95  pigment{Brown} finish{Shiny}]
      }
    }
  scale <1,.2,1>
}


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


Post a reply to this message

From: Kaggen
Subject: Re: Different textures depending on slope/steepness?
Date: 26 Jul 2006 16:30:00
Message: <web.44c7cfd462efd8a4570bd89c0@news.povray.org>
"Trevor G Quayle" <Tin### [at] hotmailcom> wrote:
>
> slope pattern (3.5.11.30  Slope in the docs)
>
>
> -tgq

Thank's all!

I was so close, but when i discovered that slope_map was not what i thought
it was i never thought there was another slope-function. This was just what
i wanted!

Povray and Megapov are really great software!


Post a reply to this message

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