POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov's Depth Map : MegaPov's Depth Map Server Time
25 Apr 2024 16:12:11 EDT (-0400)
  MegaPov's Depth Map  
From: VSector
Date: 26 May 2013 17:40:00
Message: <web.51a2811657ce97ae8e2aaf90@news.povray.org>
To anyone who is familiar with MegaPov,

I am interested in generating a depth map to test an algorithm I'm working with,
but I'm having a heck of a time trying to get it to work.

I've generated a basic scene:

<code>
#include "pprocess.inc"
#version unofficial MegaPov 1.21
global_settings{
  post_process { PP_Depth(0,20) }
}
camera {
 location <0,0,0>
 look_at <0,0,1>
}
sphere {
 <0,0,4>, 1
}
</code>

But all I get is black.  I hear another approach is using povray with fog, which
works well with spheres.  But when I use:

<code>
#include "colors.inc"
#include "textures.inc"
camera {
 location <0,0,0>
 look_at <0,0,1>
}
global_settings {
 ambient_light rgb <10, 10, 10>
}
fog {
 distance 10
 color rgb<1,1,1>

}
plane {
 <1,0,1>, 8
}

plane {
 <-1,0,1>, 8
}
</code>

I get only a black image.

Anyone has any suggestions or comments?

-Vincent


Post a reply to this message

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