Copernicus , Attributes, Filtering

   492   1   6
User Avatar
Member
41 posts
Joined: March 2018
Offline
Hey, I'm loving the new Copernicus nodes.
One thing I'm struggling to do easily is to import a SOP attribute as a non-filtered pixel map (one pixel per point).

This would be very useful for shaders and realtime work (for example, dynamic deformation maps).
Am I missing a node or is this still a WIP?

I have tried the not so elegant method of transferring the attribute to a colored grid of points or squares in SOPs before and trying to rasterize it, but it's proving impossible to get a 1:1 corresponence in COPs.

It's both difficult to match the resolution with the Rasterize Settings node (it always seems to be either slightly offset or mis-scaled despite matching the sizes or using UV), or there is interpolation happening which destroys the data.

Has anyone figured out a good workflow?
User Avatar
Member
25 posts
Joined: Nov. 2013
Offline
Hi,

Here's one way to do it with OpenCL. It reads the point/prim attribute from the grid point/prim with the same index as the current pixel and writes the value into the output layer.
Hope that helps.

Attachments:
attribute_to_pixels.hip (496.7 KB)

Houdini FX 20.5 | http://techie.se [techie.se]
  • Quick Links