POV-Ray : Newsgroups : povray.advanced-users : mapping a texture to a height field : mapping a texture to a height field Server Time
29 Jul 2024 00:23:29 EDT (-0400)
  mapping a texture to a height field  
From: Ben Abernathy
Date: 27 Apr 2003 10:06:05
Message: <3eabe3cd$1@news.povray.org>
Hi, I have a problem when trying to map a grass texture to a height field.
Basically what I have is your normal height field representing a few hills
and a river bed. But when I go to map a gras texture I made in Paint Shop,
the rendered image comes out with what looks like skewed lines on all the
flat areas of the height field. I was wondering if I had a parameter set
incorrectly or something. After I create the height field, I scale it to
make it larger, could this be causing the problem? If so, is there a way to
work around it? I have pasted the height field code below.


height_field {
  sys
  "height_map.bmp"
 smooth
 pigment { image_map { sys "grass.bmp" once interpolate 2}}
 scale <20, 4, 20>
 translate <-4, 0, 0>
}


Post a reply to this message

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