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.
Per instance primvars XPU
975 2 1- mzigaib
- Member
- 944 posts
- Joined: April 2008
- Offline
- brians
- Staff
- 450 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)
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
- mzigaib
- Member
- 944 posts
- Joined: April 2008
- Offline
-
- Quick Links