POV-Ray : Newsgroups : povray.binaries.images : hf question/help - Melly Server Time
3 Oct 2024 13:19:46 EDT (-0400)
  hf question/help - Melly (Message 1 to 2 of 2)  
From: Tom Melly
Subject: hf question/help - Melly
Date: 10 Jan 2000 07:16:19
Message: <3879cd93@news.povray.org>
My problem is this - I want a hf of a slanted hill/cliff with a 
different texture on top to the bare rock shown at the sides (the 
exposed cliff).

At the moment I am doing it by having two copies of the hf, one of them 
scaled slightly higher in the Y direction and set slightly back and 
left. This isn't very satisfactory for a variety of reasons (I can't get 
any turbulence in to the edge apart from anything else, which leads to 
an over-regular thickness of the two materials).

Is there a better way to do this?

Current code and image below.

height_field // white cliff
{
 tga
 "c1.tga"
 smooth
 scale <300, 75, 400>
 translate <-175,-5,-50>
  pigment {rgb<1,1,1>}
}

height_field // green cliff
{
 tga
 "c1.tga"
 smooth
 scale <300, 80, 400>
 translate <-176,-5,-49>
 pigment {rgb <0,1,0>}
}

// An infinite planar surface
// plane {<A, B, C>, D } where: A*x + B*y + C*z = D
plane
{
  y,  -1.0
  pigment{rgb<1,1,0>}
}


Post a reply to this message


Attachments:
Download 'iso-8859-1' (2 KB)

From: Bill DeWitt
Subject: Re: hf question/help - Melly
Date: 10 Jan 2000 09:52:53
Message: <3879f245@news.povray.org>
"Tom Melly" <tom### [at] tomandluforce9couk> wrote in message
news:3879cd93@news.povray.org...
My problem is this - I want a hf of a slanted hill/cliff with a different
texture on top to the bare rock shown at the sides (the exposed cliff).

    I use two images, duplicates of the same original, then convert one to
greyscale and blur it , then rescale the other so that the image_map drapes
over the height_field a little.

    Here is a quick example (read:quality very limited)


height_field
{
  tga "cliff-3.tga"
  water_level 0.2
  smooth
  texture
  {
    pigment
    {
      image_map { tga "cliff-1.tga" map_type 0 interpolate 2 once  }
      rotate x*90
      scale .98
    }
  }
}


Post a reply to this message


Attachments:
Download 'Cliff001.jpg' (15 KB) Download 'Cliff-2.jpg' (4 KB) Download 'Cliff-1.jpg' (12 KB)

Preview of image 'Cliff001.jpg'
Cliff001.jpg

Preview of image 'Cliff-2.jpg'
Cliff-2.jpg

Preview of image 'Cliff-1.jpg'
Cliff-1.jpg


 

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