Creating USD for bgeo sequence with Geometry clip Sequence

   842   0   2
User Avatar
スタッフ
2 posts
Joined: 1月 2024
オフライン
Here is how you can write out a small USD file to refer to bgeo sequence cache on disk as a value clip , without re-caching the bgeo as .USD and avoid loading the whole bgeo sequence into memory.

1. Before you cache out your geometry:


In SOPs, add in usdconfigure node , specify an “Import Path Prefix” and turn on “Sample Frame”.
This will allow geometry Clip Sequence Lop to bring in the cache.

2. Writing out USD in LOPs



On Geometry Clip Sequence

Sampling Behavior: Sample Frame Range
Sample the whole sequence of cache without introducing node time dependency


Turn off “Get Geometry From Second input”
“Load Clip File Path” points to bgeo cache
“Clip Primitive Path” same as Import Path Prefix on USD config
To bring bgeo sequence in

Turn on “All Clip Files Have a Matching Scene Graph Structure”
Faster generation of topology and manifest file by processing a single clip instead of all, use it when the scene graph and set of attributes are the same across bgeo sequence

Turn off “Flattern Clip File”
To avoid re-writing cache as .usd


On USD ROP
Set Valid Frame Range to “Render Current Frame”
Since we are sampling the whole frame range above (no time dependency) and writing out single topology and manifest file, this can be set to be current.

If you are writing out usda, it will indicate that it's reading the bgeo directly

asset assetPaths = [@./geo/sphere.1.bgeo.sc@, @./geo/sphere.2.bgeo.sc@, @./geo/sphere.3.bgeo.sc@,....}

Hope this is useful~

Attachments:
sops.png (41.2 KB)
usdconfig.png (19.1 KB)
lops.png (21.0 KB)
geoclipseq.png (61.0 KB)
usdrop.png (41.3 KB)

  • Quick Links