Difference between revisions of "Documentation Talk:Reference Section 5"

From POV-Wiki
Jump to navigation Jump to search
m (format changes/additions)
m (following up)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<p>The section on image_map should reference function images...</p>
 
<p>The section on image_map should reference function images...</p>
<p>Like this? --[[User:Jholsenback|jholsenback]] 12:07, 24 July 2009 (UTC)</p>
+
:* changed merged back into main page --[[User:Jholsenback|jholsenback]] 14:59, 26 March 2010 (UTC)
 
===Specifying an Image Map===
 
===Specifying an Image Map===
 
<p>The syntax for an <code>image_map</code> is:</p>
 
<p>The syntax for an <code>image_map</code> is:</p>
Line 13: Line 13:
 
   }
 
   }
 
  IMAGE_MAP:
 
  IMAGE_MAP:
 +
  pigment {
 
   image_map {
 
   image_map {
     FUNCTION_IMAGE | [BITMAP_TYPE] "bitmap[.ext]"
+
     FUNCTION_IMAGE
      [IMAGE_MAP_MODS...]
+
    }
  }
+
  [PIGMENT_MODFIERS...]
FUNCTION_IMAGE:
+
  }
  function I_WIDTH, I_HEIGHT { FUNCTION_IMAGE_BODY }
 
FUNCTION_IMAGE_BODY:
 
  PIGMENT | FN_FLOAT | pattern { PATTERN [PATTERN_MODIFIERS] }  
 
 
  BITMAP_TYPE:
 
  BITMAP_TYPE:
 
   gif | tga | iff | ppm | pgm | png | jpeg | tiff | sys
 
   gif | tga | iff | ppm | pgm | png | jpeg | tiff | sys
Line 27: Line 25:
 
   filter Palette, Amount | filter all Amount |
 
   filter Palette, Amount | filter all Amount |
 
   transmit Palette, Amount | transmit all Amount
 
   transmit Palette, Amount | transmit all Amount
 +
FUNCTION_IMAGE:
 +
  function I_WIDTH, I_HEIGHT { FUNCTION_IMAGE_BODY }
 +
FUNCTION_IMAGE_BODY:
 +
  PIGMENT | FN_FLOAT | pattern { PATTERN [PATTERN_MODIFIERS] }
 
</pre>
 
</pre>
For syntax of function images see "Function Image".
+
 
 
<!--<indexentry primary "gif" "tga" "iff" "ppm" "pgm" "png" "jpeg" "tiff" "sys, image_map">--->
 
<!--<indexentry primary "gif" "tga" "iff" "ppm" "pgm" "png" "jpeg" "tiff" "sys, image_map">--->
 
<p>After the optional <em>BITMAP_TYPE</em> keyword is a string expression
 
<p>After the optional <em>BITMAP_TYPE</em> keyword is a string expression
Line 34: Line 36:
 
<em>BITMAP_TYPE</em> is not given, the same type is expected
 
<em>BITMAP_TYPE</em> is not given, the same type is expected
 
as the type set for output.</p>
 
as the type set for output.</p>
<p class="Note"><strong>Note:</strong> For syntax of function images see [[Documentation:Reference Section 5.4#Function Image|Function Image]].</p>
 
 
<p>Example:</p>
 
<p>Example:</p>
 +
 +
== Using the Alpha Channel ==
 +
 +
the section "Using the Alpha Channel" includes information about alpha handling in output files; this is the wrong place for such information, it should instead go into the output settings section.
 +
 +
:* done: --[[User:Jholsenback|jholsenback]] 22:59, 11 December 2010 (UTC)

Latest revision as of 22:59, 11 December 2010

The section on image_map should reference function images...

  • changed merged back into main page --jholsenback 14:59, 26 March 2010 (UTC)

Specifying an Image Map

The syntax for an image_map is:

 IMAGE_MAP:
  pigment {
    image_map {
      [BITMAP_TYPE] "bitmap[.ext]"
      [IMAGE_MAP_MODS...]
      }
  [PIGMENT_MODFIERS...]
  }
 IMAGE_MAP:
  pigment {
   image_map {
     FUNCTION_IMAGE
     }
  [PIGMENT_MODFIERS...]
  }
 BITMAP_TYPE:
   gif | tga | iff | ppm | pgm | png | jpeg | tiff | sys
 IMAGE_MAP_MOD:
   map_type Type | once | interpolate Type | 
   filter Palette, Amount | filter all Amount |
   transmit Palette, Amount | transmit all Amount
 FUNCTION_IMAGE:
   function I_WIDTH, I_HEIGHT { FUNCTION_IMAGE_BODY }
 FUNCTION_IMAGE_BODY: 
   PIGMENT | FN_FLOAT | pattern { PATTERN [PATTERN_MODIFIERS] } 

After the optional BITMAP_TYPE keyword is a string expression containing the name of a bitmapped image file of the specified type. If the BITMAP_TYPE is not given, the same type is expected as the type set for output.

Example:

Using the Alpha Channel

the section "Using the Alpha Channel" includes information about alpha handling in output files; this is the wrong place for such information, it should instead go into the output settings section.