POV-Ray : Newsgroups : povray.general : Rendering in B&W? : Re: Rendering in B&W? Server Time
12 Aug 2024 13:14:08 EDT (-0400)
  Re: Rendering in B&W?  
From: Peter Popov
Date: 12 Mar 1999 15:15:05
Message: <36e973a1.3905999@news.povray.org>
On 12 Mar 1999 17:38:53 +0100, rol### [at] casimirrezelenstfr (Roland
Mas) wrote:

>I wondered how long it would take until someone would notice this...
>I'm afraid you all lost :-)
>
>The doc says it all (almost):
>
>--- Cut here ---
If you say so... :)
>--- Cut here ---
>
>Maybe it should have been a bit clearer.  Anyway, the output can be
>turned into a sixteen bit per pixel black and white image file.  I
>first wrote "at least in Truevision format", but it is not true.  My
>further tests reveal that it works with "PNG" format.  Hence my
>superseding of my previous article.
>
>Roland.

Use the output image as a source for a height_field turned towards the
camera with a gradient pattern ranging from black to white and
pointing towards the viewer. For example, this

height_field
{
  png "hf16g.png"
  texture
  {
    pigment { gradient y color_map { [0 color rgb 0][1 color rgb 1] }}
    finish { ambient 1 }
  }
  translate -0.5
  scale <1,1/1000,1>
  rotate -90*x
}

camera
{
  location -2*z
  up y
  right x
  angle 30
  look_at 0
  orthographic
}

should work, imho. Use the same output file width and height settings
as for the original, color image.

---------
Peter Popov
ICQ: 15002700


Post a reply to this message

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