How to Render Coloured Packed Objects in Mantra w/o unpack?

   1203   2   0
User Avatar
Member
65 posts
Joined: 3月 2012
Offline
Hello.

How can I render Colourered Packed Objects in Mantra WITHOUT USING UNPACKING node?

I was testing days for figuring this out... and could not find the solutions.

Here is attached screenshot and a sample hip file.(Made in Houdini 19.0.720)

Thank you,
Edited by icecreamumai - 2023年7月7日 11:17:21

Attachments:
Hou_Q_HowtoRenderPackedObj_inMantra.jpg (505.3 KB)
Hou_How2RenderPackedOBJ_Scene.hip (9.9 MB)

User Avatar
Member
9118 posts
Joined: 7月 2007
Offline
in the shader you can access any attribute that lives on packed primitive geo using Render State VOP with packed: prefix like packed:Cd (see attached file)

or if using Principled shader and want diffuse Cd or opacity Alpha, just check Packed Color or Packed Alpha

you can also use Material Stylesheets for more complex overrides

Attachments:
Hou_How2RenderPackedOBJ_Scene_mod.hipnc (705.0 KB)

Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
65 posts
Joined: 3月 2012
Offline
tamte
in the shader you can access any attribute that lives on packed primitive geo using Render State VOP with packed: prefix like packed:Cd (see attached file)

or if using Principled shader and want diffuse Cd or opacity Alpha, just check Packed Color or Packed Alpha

you can also use Material Stylesheets for more complex overrides


Thank you so much, tamte!

With your help, I finally managed to render packed objects with colored texture, too.
Material Stylesheets is where I have avoided using it, because it seems complicated...

It is good to know using "render state node" for accessing information of packed attributes.
Thanks for the Principled shader info as well!

Attachments:
Hou_Q_HowtoRenderPackedObj_inMantra_SOLVED.jpg (280.0 KB)

  • Quick Links