Per instance primvars XPU

   1004   2   1
User Avatar
Member
948 posts
Joined: April 2008
Offline
I am trying to use per instance primvars on my point instancing on Solaris to override texture per instance using the XPU engine but it seems that for strings it is not working.
I am using the usdprimvar to override the path of the texture on my shader bringing in my texture attribute.
I did however got it to working with vector custom primvars, does anyone knows if there is a limitation for that on XPU?

By the way in CPU it works.

I am using Houdini 19.5 build 368.

Thanks.
Edited by mzigaib - Oct. 6, 2022 15:57:53
https://vimeo.com/user2163076 [vimeo.com]
User Avatar
Staff
469 posts
Joined: May 2019
Offline
Here are the KarmaXPU docs
https://www.sidefx.com/docs/houdini/solaris/karma_xpu.html [www.sidefx.com]

"Supports all primvars except for string-typed primvars"

I'm guessing you're storing the filename as string-primvar?
So that won't work (yet... we do have it planned)
For now you will need to try some kind of alternative
eg
- use UDIMS (a float-primvar can be used to offset the UV coordinate, or order to choose what texture you want)
- have multiple texture/image nodes in the scene, and use a switch node to choose the result. (ie you'd have an integer primvar to select what texture you want)
Edited by brians - Oct. 6, 2022 21:26:56
User Avatar
Member
948 posts
Joined: April 2008
Offline
Oh thanks for the feedback!
Yeah I was getting to this conclusion, but it is ok.
I was trying to instance trees and use attributes to assigning procedurally the textures per part of the tree.
I can find another way until this is working, thanks again for the heads up and awesome work with XPU guys!
https://vimeo.com/user2163076 [vimeo.com]
  • Quick Links