|
|
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
|
|