POV-Ray : Newsgroups : povray.unofficial.patches : MegaPov's Depth Map Server Time: 27 Jul 2017 22:47:36 GMT
  MegaPov's Depth Map (Message 1 to 3 of 3)  
From: VSector
Subject: MegaPov's Depth Map
Date: 26 May 2013 21: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

From: Warp
Subject: Re: MegaPov's Depth Map
Date: 27 May 2013 22:33:52
Message: <51a3df50@news.povray.org>
VSector <nomail@nomail> wrote:
> <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.

I haven't tested, but you seem to have two black planes right in front
of the camera, so it's no surprise that all you get is a black image...

-- 
                                                          - Warp


Post a reply to this message

From: clipka
Subject: Re: MegaPov's Depth Map
Date: 28 May 2013 23:58:43
Message: <51a544b3@news.povray.org>
Am 26.05.2013 23:39, schrieb VSector:

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

Looks like your camera is "below" the planes (which is considered 
"inside"); using "hollow" on the planes might get you where you want to go.


Post a reply to this message

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