Contour output shaders are called after the regular image has been computed.
The contour output shader contour_only generates a contour image with a given background color in the color frame buffer, discarding the rendered color image.
"contour_only" (
color "background",
boolean "glow",
boolean "maxcomp")
This contour output shader generates a contour image composited over the rendered color image.
"contour_composite" (
boolean "glow",
boolean "maxcomp")
The contour output shader contour_ps creates PostScript code with black contours. The PostScript code can be written to a file with a separate output statement that specifies the file type ps. This shader does not touch the rendered color frame buffer.
"contour_ps" (
integer "paper_size",
scalar "paper_scale",
scalar "paper_transform_b",
scalar "paper_transform_d",
boolean "title",
boolean "landscape",
vector "ink_stroke_dir",
scalar "ink_min_frac",
string "file_name"
)
| ( | 1 | b | ) |
| 0 | d |
For example, to get a PostScript file in A4 paper size with full scale, use the following statements in the camera definition:
output "contour,rgba" "contour_ps" (
"paper_size" 4,
"paper_scale" 1.0,
"paper_transform_b" 0.0,
"paper_transform_d" 1.0,
"title" on,
"landscape" on,
"file_name" "contourimage.ps"
)
Copyright (©) 1986-2009 by mental images GmbH