[Sidefx-houdini-list] perpective from camera uv[2] to distance

Rangi Sutton rangi at kanuka.com.au
Tue Jan 17 17:47:22 EST 2012


I'm just guessing...

But is uv[2] equivalent to the distance to the plane the camea is on,
as opposed to the distance to the point the camera is at?

Calculating the distance to a point is pretty quick in vex.. I'd be
doing it like that.

r.


On 6 December 2011 12:23, Georg Duemlein <rdg at preset.de> wrote:
> Hello,
>
> Just wondering:
> Is it possible to get the distance to camera from a uvTextureSOP set to
> 'Perspective from Camera'?
>
> I blindly assumed that uv[2] is kinda like the distance.
> But then doing a distance(P, cameraOrigin) gives me different results.
>
> Might be confusing lots here, though.
> Anyone can shed some light, before I go down a rabbit hole of matrices that
> don't line up?
>
> Thanks,
>
> Georg



More information about the Sidefx-houdini-list mailing list