sniegockiszymon
2024年2月20日 06:38:44
Hey guys, how are you refreshing textures in XPU? Since .rat files on xpu I've got issue when updating textrues (in that scenario I'm using cops and render them to disk) but houdini doesnt udpate .rat files whenever original textures is updated. I cant even delete this rat texture without closing houdini because windows says its being used
Soothsayer
2024年2月21日 09:26:03
render menu -> update textures ?
BrianHanke
2024年2月21日 14:40:31
I've often wondered about this myself, but I don't think it's possible to refresh textures. I imagine the intended workflow is to increase the version in the file name any time you update a texture.
Hamilton Meathouse
2024年2月23日 04:14:07
A few things you can try are mentioned in this thread. Seems you're not the first to run into texture refresh issues.
https://www.sidefx.com/forum/topic/81603/ [
www.sidefx.com]
BrianHanke
2024年2月23日 08:24:28
I dug into this some more to try to get reproducible steps. Here's what does and doesn't work for me on Houdini 20.0.610 on Windows 10:
Karma CPU
- Can't overwrite texture while CPU running
- Can't overwrite texture while CPU paused
- Can't overwrite texture after switching to GL
- Can overwrite texture after switching to XPU
- Once CPU releases the texture then it reads the updated texture without any extra steps
Karma XPU
- Can overwrite texture at any time
- Pause or restart does not update texture
- Switch to GL, Reset Karma XPU, switch to XPU does not update texture
- Render > Update Textures while XPU running does not update texture
- Render > Update Textures, restart render, texture now all black
- Repeat above step again, texture now updated
- Render > Update Textures, switch to GL, Reset XPU, switch to XPU, texture now all black
- Render > Update Textures again, restart render, texture now updated
I think there are some other combos that work with XPU, but you get the idea.
Long story short, neither CPU or XPU gets it right. CPU locks the texture, XPU does it right. CPU updates the texture without any extra steps, XPU does not. I think the way it should be in both CPU and XPU is the texture never gets locked and it updates automatically.
jsmack
2024年2月23日 13:14:23
BrianHanke
Karma XPU
- Can overwrite texture at any time
- Pause or restart does not update texture
- Switch to GL, Reset Karma XPU, switch to XPU does not update texture
- Render > Update Textures while XPU running does not update texture
- Render > Update Textures, restart render, texture now all black
- Repeat above step again, texture now updated
- Render > Update Textures, switch to GL, Reset XPU, switch to XPU, texture now all black
- Render > Update Textures again, restart render, texture now updated
I think there are some other combos that work with XPU, but you get the idea.
Long story short, neither CPU or XPU gets it right. CPU locks the texture, XPU does it right. CPU updates the texture without any extra steps, XPU does not. I think the way it should be in both CPU and XPU is the texture never gets locked and it updates automatically.
did you get the automatically generated rat files to regenerate? XPU doesn't use the textures directly if they don't have mip maps.
I wonder if the hscript command texcache -c will delete them, or if the external command line htexcache -c is needed.
BrianHanke
2024年2月23日 14:27:19
Yes, the XPU steps create an updated .rat file (the original texture is .jpg in my test). Here's a clip showing the texture corruption that happens with texcache -c (which I assume is what Render > Update Textures is doing).
Image Not Found
jsmack
2024年2月23日 16:32:52
BrianHanke
Yes, the XPU steps create an updated .rat file (the original texture is .jpg in my test). Here's a clip showing the texture corruption that happens with texcache -c (which I assume is what Render > Update Textures is doing).
yikes
ben_the_animator
2024年6月4日 15:09:34
It's kinda hard to use the Karma for look dev if you can't update a material texture to try things out.
danvil
2025年5月1日 21:52:33
Any update on this issues? I use a material baker to create textures and when I bake the textures new files are written to disk, but the materials in Houdini do not update. The *.rat files all seem out of date. "Render" -> "Update Textures" is not doing anything. I am using Houdini 20.5.550 and Solaris Karma CPU/XPU (neither works).
BrianHanke
2025年5月2日 16:04:23
No updates that I know of...
Hip-Freak
2025年11月13日 05:05:31
any news about this?