How to get material info with shop_materialpath known in HDK

   2179   2   0
User Avatar
Member
2 posts
Joined: Aug. 2021
Offline
I'm a rookie in houdini HDK. While I was trying to export a simple customized model file like .obj . I met some problems when I tried to export the material infomation.
By using the interface: gdp->findPrimitiveAttribute("shop_materialpath") , I have got the material path(eg. /mat/diffuse). Next step, I need to acquire the textures and other parameters of this material, for example, IOR, Roughness, Metallic...
Please give me a hint about the interfaces that I need.
User Avatar
Staff
1473 posts
Joined: July 2005
Offline
You will need to obtain the Houd material node (ie, a VOP node) at the node path "/mat/diffuse", eg using OPgetDirector()->findNode("/mat/diffuse"), and then check the node parameters like IOR, Roughness, and Metallic.
User Avatar
Member
2 posts
Joined: Aug. 2021
Offline
rafal
You will need to obtain the Houd material node (ie, a VOP node) at the node path "/mat/diffuse", eg using OPgetDirector()->findNode("/mat/diffuse"), and then check the node parameters like IOR, Roughness, and Metallic.
Thank you very much
  • Quick Links