imageworks/OpenShadingLanguage — pull request #162 by lgritz (2012-10-04 17:48:18+00:00)
Title: New function: pointcloud_write

I had request from our shading department for a special-purpose function that would allow shaders to be able to write data to pointclouds, and save them at the end of rendering.

This adds:

int pointcloud_write (string filename, point position, string attrib1, TYPE data1, ...)

The underlying implementation, as with the pointcloud lookup functions, lives on the renderer side (though I'm considering making a good default implementation as part of OSL), accessible through the RendererServices API.

In the process, I made shell default implementations of pointcloud_get and pointcloud_search in the base class (rather than pure virtual) and removed the empty shells from testshade and testrender.