Jump to content

Baking Point Clouds from RSL


Recommended Posts

Hi,

I am unable to generate a point cloud file from an RSL shader within Houdini to be used for SSS. I may be using the wrong workflow but when I render out my RIBs from the renderman ROP, the RIB file is created successfully but it is not generating the .ptc file.

The shader I have applied to my geometry to bake out a .ptc file is as follows:

surface bake_radiance_t(

string filename = "$HIP/maps/sss.ptc",

displaychannels = "_area,_radiance_t";

color sc = 1)

{

color irrad, rad_t;

normal Nn = normalize(N);

float ar = area(P, "dicing");

/* Direct Illumination (ambient and diffuse) */

irrad = sc * ambient() + diffuse(Nn);

/* Store in point cloud file */

bake3d(filename, displaychannels, P, Nn, "interpolate", 1,

"_area", ar, "_radiance_t", irrad);

Oi = Os;

Ci = irrad * Os;

}

Are there any specific settings I have to apply in Houdini for ptc's? Thanks in advance for any assistance to resolve this!

Sam.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...