POV-Ray : Newsgroups : povray.windows : The question about depth image generation : The question about depth image generation Server Time
29 May 2023 17:53:44 EDT (-0400)
  The question about depth image generation  
From: Hao
Date: 15 Feb 2018 19:15:00
Message: <web.5a8621bc4c29b94a66fefcc00@news.povray.org>
I want to render the depth image of the scene. I follow the methods of :
This method is useful for some scenes. However, it is found that the color of
the rendered image changes when the "colors.inc" or other predefined inc files
are included. Could any one give me some suggestions?
The codes of 'http://runevision.com/graphics/stereo/depthmap/' are,

object {
  sphere{-z*20 10}
    texture {
      pigment {gradient -z}
      scale 40
      finish {ambient 1 diffuse 0}

 location <0,0,0>
 direction -z

Using this code, the color of the central pixel equal approximately about
However, if the 'color.inc', 'functions.inc' or other inc files are included at
the begining of the file, the color of rendered image changes.

Does anyone know why?

Post a reply to this message

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