cameraSpace UV Pass


#1

Hi,
I need UV pass in camera space, i tried using

samplerInfo.pointCameraX -> vrayRE_Extra_Tex.VrayTextureExtratexR      (redChannel )
samplerInfo.pointCameraY -> vrayRE_Extra_Tex.VrayTextureExtratexG      (greenChannel)

But getting -ve & +ve value. May be because of pointCamera value is not clamped between [0,1]. So how to solve this ??

Thank you


#2

Is there any way to query pixel U,V value in screen space ???
i mean render resolution width = U (0,1) resolution Height = V (0,1)

So pixel @ center will give (0.5,0.5)

And Render/Bake that pass