POV-Ray : Newsgroups : povray.advanced-users : POVRay Depth-map : POVRay Depth-map Server Time
26 Jun 2024 07:36:58 EDT (-0400)
  POVRay Depth-map  
From: handos
Date: 21 Sep 2012 13:15:01
Message: <web.505c9f9f85132defd7ae32040@news.povray.org>
Hi everyone,

I had written a povray patch for obtaining depth per pixel of an image some time
ago. I had used povray-3.7 and modified the tracetask.cpp in
(source/backend/render/tracetask.cpp) in the function TraceTask::Run() where I
was using all the time SimpleSamplingM0() and in this function I replaced the
line
 trace(x, y, GetViewData()->GetWidth(), GetViewData()->GetHeight(), col);
by
 trace(x, y, GetViewData()->GetWidth(), GetViewData()->GetHeight(), col,
depthVal); to obtain the depth. I have been using Jaime's office scene for
rendering and obtaining depth-map but I only observe that there are
discretization artifacts I observe in the depth. I have kept the image and the
depth file here at www.doc.ic.ac.uk/~ahanda/scene_and_depth.html . I am
wondering if this is due to very simple sampling method used for tracing? I am
not using any AntiAliasing options and jitter etc. to render that scene and
simply picking up the depth values returned by the trace function that's called
by SimpleSampleM0().


Thank you,


Post a reply to this message

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