|
![](/i/fill.gif) |
In article <web.3d769f5626cc84be295e176c0@news.povray.org>,
"klotera" <klo### [at] hotpop com> wrote:
> I have a question about height_fields.. i just learned them the other night
> and I have been trying to do different texture options with them (the
> actual height-field object, not the reference image) and i've foud I cant
> do alot of things, like apply apply a checker or color_map to the pigment.
> What is it about the nature of height_fields that causes this?
Textures for height fields work just like textures for any other object.
The thing that seems to be causing you trouble is that POV-Ray textures
are solid: the texture is evaluated at each point in space, not at UV
coordinates on a surface. The checkers pattern is a 3D grid of cubes, so
simply applying a checkered texture to a height field won't give squares
on the surface, the height field will rise and fall through the cubes.
Applying the texture to a sphere will make this clear.
You could unevenly scale the checkers pattern to be larger along the y
axis, so the height field stays within one "layer" of cubes, or you
might be able to do something with the UV mapping feature. (I haven't
done anything with this feature myself, so I'm not sure if it is
applicable here)
Color maps don't apply to the checkers pattern or any other block
pattern, you need to use something like bozo or crackle. If this wasn't
what you meant, I don't understand...color maps behave the same for any
texture, whether it is applied to a height field or not.
--
Christopher James Huff <cja### [at] earthlink net>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: chr### [at] tag povray org
http://tag.povray.org/
Post a reply to this message
|
![](/i/fill.gif) |