|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello,
I would like to store the scene depth values (and if possible the normal vector
values as well) for every pixel. How can this be achieved using Pov ray 3.7? I
have found no such examples online.
Thank you in advance,
Mark
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 06/01/2016 07:01 AM, Mark B wrote:
>
> Hello,
>
> I would like to store the scene depth values (and if possible the normal vector
> values as well) for every pixel. How can this be achieved using Pov ray 3.7? I
> have found no such examples online.
>
> Thank you in advance,
> Mark
>
>
At : http://www.povray.org/search/
search for "depth map"
There have been some patches & methods over the years. To do it in
POV-Ray's screen distribution language (SDL), suppose setting up
something with trace() in the way you wish to measure depth would be one
possible way.
Bill P.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Am 01.06.2016 um 13:01 schrieb Mark B:
> I would like to store the scene depth values (and if possible the normal vector
> values as well) for every pixel. How can this be achieved using Pov ray 3.7? I
> have found no such examples online.
POV-Ray 3.7 does not have any native mechanism to obtain depth
information, so you'll need to design your scene in such a way that the
colours in the image happen to depend on the distance to the camera.
The most straightforward way to achieve this is to disable the
individual textures of all the scene's objects, bundle those objects
into one big union, and assign a texture with a gradient or spherical
pattern to it, with an emission-only finish.
An alternative is to set all objects' textures to a plain white
emission-only texture, and flood the scene with an absorbing atmosphere.
Or set all objects' textures to a pitch black texture, and flood the
scene with an emissive atmosphere.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 06/01/2016 08:02 AM, William F Pokorny wrote:
> On 06/01/2016 07:01 AM, Mark B wrote:
>
> At : http://www.povray.org/search/
> search for "depth map"
>
> There have been some patches & methods over the years. To do it in
> POV-Ray's screen distribution language (SDL), suppose setting up
> something with trace() in the way you wish to measure depth would be one
> possible way.
>
> Bill P.
... Make that "scene description language". Positive proof my already
questionable mind is slipping further into the foggy abyss... :-)
Bill P.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
>
> Hello,
>
> I would like to store the scene depth values (and if possible the normal vector
> values as well) for every pixel. How can this be achieved using Pov ray 3.7? I
> have found no such examples online.
>
> Thank you in advance,
> Mark
>
>
You can't have both at the same time.
For the depth, other have given some options.
For the normals, you should take a look at the aoi pattern.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |