i am using vive controllers to ‘airbrush’ a projection-mapped object. my intent was to use rayPOP, with a ray origin at each control position, aimed in the direction of controller rotation from the openVR chop. and then use the rayPOP intersection attributes get the point of intersection from the ray and object i am projection mapping, do stuff w that, etc. i have most of the setup working, but now i am stuck on how to ‘aim’ the ray. I am using P as the ray attribute, so the point of origin is the controller pos in world space. but how can i also point the ray in the direction of rotation, stored in attribute R? is this possible? right now it seems like the ray always points toward the origin…
to be precise, the information i am using is the Tex coords of the ray intersection, which I am using to draw a texture on the geometry, and finally projection map the real object. so any solution needs to allow me to get the tex coords of the intersection of a ray originating a point P with direction R and a static piece of geometry