My question is how to get xyz(uvw) coordinates from a texture that is mapped on a sphere.
I try to explain my setup as good I can:
I have a videoIn(cv) node and a contour(cv) node which gives me the the XY coordinates from the brightest pixels from the video. This XY coordinates I use to spawn particles(dx11). It works fine, but now I have to map the videoIn texture on a sphere(PhongDirectional) and I need to transform the contour pixel data from XY space on the sphere coordinates. So that I can spawn the particles on the sphere.
I think about two options:
- There is a vvvv node (or combination) that can give me the uv coordinates after I mapped the texture on a sphere.
- I have to write kind of a shader to calculate the mapping of my pixel on a sphere by hand.
I’m new too vvvv and hope that I explained it right. Any ideas how to solve this thing?