Jump to content

renderstate vs packed fragments


Recommended Posts

So am I correct in understanding that the Render State VOP can be used to read attributes on packed *geos* in a shader.  (Where "attributes" means attributes  you've added to the top-level packed points themselves, not the underlying packed geometry.)...  But that the same doesn't work with packed fragments?  Or is this a bug?

See attached file.  Render and inspect the "noiseColor" image plane.  If you turn on "create packed fragments" on the Pack node, and re-render, you'll notice that the shader is no longer rendering colors into this plane.

I understand that packed fragments are references into a larger geo, whereas packed geos are entire geos.  But I don't see why this would prevent you from using Render State with both of them.  If a technical explanation exists, I'd be glad to hear it.

packedRenderState.hip

Link to comment
Share on other sites

I found this in the docs:

Quote

Merge packed fragments into single geometry

Houdini render property
 
vm_pack_mergefragments
IFD property
 
object:pack_mergefragments

For efficiency, mantra usually merges separate fragments into a single piece of geometry. This typically uses less geometry and renders more efficiently.

However, since the geometry is merged into a single piece of geometry for rendering, the individual packed fragments are not available for material stylesheets and their attributes aren’t available for the renderstate() function.

Disabling this option will cause each fragment primitive to be rendered as a separate mantra object. This will typically take more memory and may impact rendering performance.

 

  • Like 3
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...