POV-Ray : Newsgroups : povray.advanced-users : Height field old style? : Re: Height field old style? Server Time
8 Jun 2024 09:57:03 EDT (-0400)
  Re: Height field old style?  
From: Thomas de Groot
Date: 1 Feb 2014 08:07:14
Message: <52ecf182$1@news.povray.org>
And this is the documentation of pattern found on the same site. Note 
the facultative use hf_gray_16.

[quote]
8.4. Pattern Image Type

Author: Ronald L. Parker

pattern Width, Height { [hf_gray_16] PIGMENT }

This keyword defines a new bitmap image type. The pixels of the image 
can be derived from any standard pigment. This image may be used 
wherever a tga image may be used. Some uses include creating 
heightfields from procedural textures or wrapping a 2d texture such as 
hexagons around a cylinder (though a better way to do this is with the 
new cylindrical warp.)

A pattern statement be used wherever an image specifier like tga or png 
may be used. Width and Height specify the resolution of the resulting 
bitmap image. The pigment body may contain transformations. If present, 
they apply only to the pigment and not to the object as a whole.

This image type currently ignores any filter values that may be present 
in the pigment, but it keeps transparency information. If present, the 
hf_gray_16 specifier causes POV-Ray to create an image that uses the TGA 
16-bit red/green mapping.

Example:

#declare QuickLandscape =
height_field {
   pattern 200,200 {
     hf_gray_16
     bozo
     color_map {
       [0 rgb 0]
       [1 rgb 1]
     }
   }
}
[/quote]


Thomas


Post a reply to this message

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