Increase in USD file size when using cache nodes

   713   4   1
User Avatar
Member
11 posts
Joined: Nov. 2018
Offline
I'm looking for a simple sop to lop workflow.

I attached a simple scene.

I created animation data in sop and added a motion blur node (cache node) in lop.
USD Render Rop to export sequence USD files for rendering, the first frame will be 500KB, but the 10frame will be 900KB.
This is probably because the 10frame USD file contains animation information from the 1st frame.

I'm trying to find a way to minimize caching along the way, but maybe I'm doing it wrong?
Edited by shirak - Oct. 3, 2024 01:33:39

Attachments:
network.png (44.1 KB)
filesize.png (22.5 KB)
motionblur_.hip (812.9 KB)

User Avatar
Staff
504 posts
Joined: June 2020
Offline
The Motion Blur LOP has an embedded Cache LOP in it which is set to "Cache Cooked Frames". This, as you suspected, leads to an aggregation of data where on frame 1 you only cache samples for frame 1 and, on frame 10, end up with a cache of samples for frames 1-10.

Our USD ROP (and USD Render ROP) have control for filtering out "irrelevant" time samples when writing out the USD files, but it looks like it's not working as-expected in the USD Render ROP. See the attached image for things working when using the USD ROP to write out the files.

Can you please log a bug?

Attachments:
usd.png (125.8 KB)

User Avatar
Member
11 posts
Joined: Nov. 2018
Offline
I exported it using USD ROP and it seems to be working fine.
As a result of inspecting, only 0.5 and 1.5 frames are exported for the 1st frame, and 9.5 and 10.5 frames are exported for the 10th frame.


Next, I tried exporting using the USD Render ROP and changing Filter Time Samples to "When Using Frme Ranges".
Then, information for all frames is now included from the first frame file.
Should I submit it to an RFE?

Attachments:
USD_ROP.png (69.1 KB)
USD_Render_Rop_1st_frame.png (132.2 KB)
file_size_2.png (21.3 KB)

User Avatar
Member
11 posts
Joined: Nov. 2018
Offline
I restarted Houdini and tried writing the USD Render ROP without letting anything cook, it was the same as the first time.
(Increase in USD file size )
All the information was probably written out from the first frame because the cache was already in memory.
User Avatar
Staff
504 posts
Joined: June 2020
Offline
Please submit as a bug, thanks.
  • Quick Links