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