[Pbrt-discuss] re: Access to camera within Film

Daniel Neilson dneilson at cs.ualberta.ca
Wed Jun 1 14:08:08 EDT 2005


Hi Jared,
  I would love to see what you have. I was thinking that I'd just use the 
Ray::maxt field of the Ray class in my film to get the depth to the 
intersection point; my understanding is that this field will contain the 
distance, along the ray, to the intersection point after an intersection 
is found. And, since a Ray is passed into the Film to record each 
sample...

  I'm thinking, now, that I might just use an external script to 
modify the output depth-image to contain the camera information that the 
image was generated with.

-Daniel

On Wed, 1 Jun 2005 sohn at cs.wisc.edu wrote:
> I don't think there is a way to gain access to the Camera from there and
> even if you could, you would also need to know the point where each ray
> intersects with a primitive to calculate the depth.
>
> I just implemented something that solves a similar problem a couple of
> weeks ago.
>
> In my Scene class, I capture ray intersection information, calculate the
> depth for the world coordinates of the intersecting point, and pass it
> onto the Film class via Rays.
>
> I have been meaning to clean up and release my code (which also captures
> other information (basically Saito-Takahashi '90 G-Buffers) such as world
> coordinates, surface normals, surface coordinates, and primitive IDs) for
> awhile, and will probably do so soon.  Let me know if you would like to
> get a copy of what I have now.
>
> Jared
>
>
> _______________________________________________
> pbrt-discuss mailing list
> pbrt-discuss at pbrt.org
> http://six.pairlist.net/mailman/listinfo/pbrt-discuss
>



More information about the pbrt-discuss mailing list