POV-Ray : Newsgroups : povray.windows : The question about depth image generation : The question about depth image generation Server Time
19 Apr 2024 11:25:34 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 :
'http://runevision.com/graphics/stereo/depthmap/'
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}
      }

}
camera{
 perspective
 location <0,0,0>
 direction -z
}

Using this code, the color of the central pixel equal approximately about
255*(10/40)=64.
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.