Refreshing .rat textures, how?
4128 17 7-
- sniegockiszymon
- Member
- 71 posts
- Joined: 6月 2022
- オフライン
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
Edited by sniegockiszymon - 2024年2月20日 06:39:02
-
- Soothsayer
- Member
- 875 posts
- Joined: 10月 2008
- オフライン
-
- BrianHanke
- Member
- 455 posts
- Joined: 4月 2018
- オフライン
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.
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
-
- Hamilton Meathouse
- Member
- 211 posts
- Joined: 11月 2013
- オフライン
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]
https://www.sidefx.com/forum/topic/81603/ [www.sidefx.com]
-
- BrianHanke
- Member
- 455 posts
- Joined: 4月 2018
- オフライン
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.
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.
Edited by BrianHanke - 2024年2月23日 08:38:58
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
-
- jsmack
- Member
- 8177 posts
- Joined: 9月 2011
- オフライン
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.
Edited by jsmack - 2024年2月23日 13:16:35
-
- BrianHanke
- Member
- 455 posts
- Joined: 4月 2018
- オフライン
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
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
-
- jsmack
- Member
- 8177 posts
- Joined: 9月 2011
- オフライン
-
- ben_the_animator
- Member
- 4 posts
- Joined: 11月 2023
- オフライン
-
- danvil
- Member
- 3 posts
- Joined: 6月 2017
- オフライン
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
- Member
- 455 posts
- Joined: 4月 2018
- オフライン
No updates that I know of...
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
-
- Hip-Freak
- Member
- 21 posts
- Joined: 12月 2017
- オフライン
-
- Nicolas Heluani
- Member
- 299 posts
- Joined: 12月 2015
- オフライン
Ouch....
Just run into this problem and indeed is kind of a serious issue for look dev.
I have been trying to set up a smooth workflow to completely replace the substance package with copernicus and even with the limitation on UDIMs I was sure I could find something but if basically I need to restart Houdini everytime I want to reload a texture then that is a no go.
Just run into this problem and indeed is kind of a serious issue for look dev.
I have been trying to set up a smooth workflow to completely replace the substance package with copernicus and even with the limitation on UDIMs I was sure I could find something but if basically I need to restart Houdini everytime I want to reload a texture then that is a no go.
-
- BrianHanke
- Member
- 455 posts
- Joined: 4月 2018
- オフライン
I just revisited this in Houdini 21 and the situation with Karma is slightly worse. XPU now locks textures too and no amount of updating textures or restarting renders does anything.
It's not a Solaris thing. RenderMan 27 works great: no file lock, change your texture, click restart and the render instantly updates to the latest version.
It's not a Solaris thing. RenderMan 27 works great: no file lock, change your texture, click restart and the render instantly updates to the latest version.
Edited by BrianHanke - 2025年12月1日 22:13:25
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
-
- dlee
- スタッフ
- 476 posts
- Joined: 9月 2016
- オフライン
BrianHanke
I just revisited this in Houdini 21 and the situation with Karma is slightly worse. XPU now locks textures too and no amount of updating textures or restarting renders does anything.
It's not a Solaris thing. RenderMan 27 works great: no file lock, change your texture, click restart and the render instantly updates to the latest version.
We did find a file lock bug relating to non-RAT textures on CPU on Windows, but otherwise unable to reproduce the problem in any other combinations.
Can you please file a bug, including your platform, texture format, and a reproducible case if you have one. Thanks.
-
- Nicolas Heluani
- Member
- 299 posts
- Joined: 12月 2015
- オフライン
dleeSorry I also went ahead and did a bug report.... I had a test file ready from my previous testing of UDIMs in Cops.BrianHanke
I just revisited this in Houdini 21 and the situation with Karma is slightly worse. XPU now locks textures too and no amount of updating textures or restarting renders does anything.
It's not a Solaris thing. RenderMan 27 works great: no file lock, change your texture, click restart and the render instantly updates to the latest version.
We did find a file lock bug relating to non-RAT textures on CPU on Windows, but otherwise unable to reproduce the problem in any other combinations.
Can you please file a bug, including your platform, texture format, and a reproducible case if you have one. Thanks.
Here is a video showing the bug FYI.
texture bug... [www.dropbox.com]
bug #152086
Edited by Nicolas Heluani - 2025年12月2日 17:28:50
-
- BrianHanke
- Member
- 455 posts
- Joined: 4月 2018
- オフライン
I tried your scene and initially it worked and the textures updated without any problems. Then this happened! It's odd how unpredictable this is. I'd like to submit a report but I honestly don't know how to do so constructively since the behavior feels random on some level.
Subscribe to my Patreon for the best CG tips, tricks and tutorials! https://patreon.com/bhgc [patreon.com]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
Twitter: https://twitter.com/brianhanke [twitter.com]
Behance: https://www.behance.net/brianhanke/projects [www.behance.net]
-
- Nicolas Heluani
- Member
- 299 posts
- Joined: 12月 2015
- オフライン
ok.. this is crazy in my case textures do not update at all. just the first time you create them is like XPU refuses to create new rat files. But if you close houdini and open it again everything is fine.
I got it to work!!!
So I updated my nvidia driver to latest game driver rather than studio and everything seems to be working fine now.
Don`t know if this will help anyone else but here it is.
I got it to work!!!
So I updated my nvidia driver to latest game driver rather than studio and everything seems to be working fine now.
Don`t know if this will help anyone else but here it is.
Edited by Nicolas Heluani - 2025年12月2日 19:54:24
-
- Quick Links






