Jump to content

RenderMan: unable to turn culling off


Recommended Posts

I'm trying to set up point-cloud occlusion. Therefore, I need to turn the culling off.

As always, I have added corresponding attributes to the geo node: "Cull Shading Of Occluded Surfaces" (ri_cullshadehidden), "Cull Shading Of Backface Surfaces" (ri_cullshadebackface) and set them to off.

But when I render and generate point cloud, these surfaces are obviously culled:

post-10135-0-86840600-1380718039_thumb.p

In the generated rib file, there are the following lines:


Attribute "cull" "bool backfacing" [0]
Attribute "cull" "bool hidden" [0]
Attribute "dice" "int rasterorient" [0]
[/CODE]

For some reason, Houdini outputs these 2 attribs as "bool" type, while they must be of "int" type.

If I manually edit the file replacing "bool" with "int" and render it, point cloud is created as expected (with backfacing surfaces present).

How do I fix it inside Houdini? Maybe, I've got some setting missing?

Houdini 12.5.469

prman 15.1

Edited by Lex-DRL
Link to comment
Share on other sites

Looks like it's bug in Houdini.

I've exported ribs with the same attributes from 3Delight in Maya, and there were "int".

So I fixed it by editing RIBprman15.0.py located at houdini/soho/python2.6/. I've replaced there all appearances of "bool" to "int".

Now it works.

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...