[Radiance-general] 3d Depth of a pixel
Lars O. Grobe
grobe at gmx.net
Thu Mar 17 04:58:17 PDT 2011
Hi!
> I need to know the z depth of each 3d point. I want an output image such
> that color of each pixel stores the info of z-depth of the corresponding
> pixel .
> in rpict i am confused in syntax. How do i use -z option ?
Didn't your command line work? I would probably avoid using the
.hdr-extension for a depth-map, as its content are not hdr (in rgbe) but
only floats.
Besides rpict, you could also use rtrace if you do not need the
radiance/irradiance map but only the depth map. Probably I'd do that, as
I could directly access the data then transparently without worrying
about scanline ordering and reading binary files :-)
Look at the possible output values of rtrace (from 'man rtrace'):
--
(..)
-ospec Produce output fields according to spec. Characters
are interpreted as follows:
o origin (input)
d direction (normalized)
(..)
L first intersection distance
(..)
p point of intersection
(..)
--
So lots of data you can get for finding the first point of intersection
seen from a point of view. vwrays gives you ray directions to shoot at
your scene.
Maybe this is helpful, maybe someone has a working example using rpict's -z?
Cheers, Lars.
More information about the Radiance-general
mailing list