2d Rasterization / Color Transfer in SOP using GPU

   1249   1   0
User Avatar
Member
40 posts
Joined: Feb. 2018
Offline
I have a grid (a) and a simple quad (b), both of which live in the XY-plane. I’d like to efficiently interpolate and copy a’s Cd attribute to each point of b. This can be done in VEX, as shown in c. However, if the grid a has a very high resolution, or if b consists of more than just 2 triangles, things get slow.

Since this is essentially a rasterization problem, I wonder if I could somehow do this on the GPU to make it fast. Is this a feasible idea?

Attachments:
a.png (358.8 KB)
b.png (292.2 KB)
c.png (646.8 KB)

User Avatar
Member
899 posts
Joined: Feb. 2016
Offline
there's an opencl sop node in Houdini, but I have no experience with it.
here's a master class about opencl vs vex

https://vimeo.com/241568199 [vimeo.com]
  • Quick Links