Hi,
I’m continuing my adventure in writing plugins for our custom hair tool at work. This time a sdfFileFormat
plugin that reads in hair data and then converts that to an UsdGeomBasisCurves
. My initial implementation I just hard coded the time to zero to get everything working as I figured time should be easy to add later.
How wrong I was, I had just assumed USD worked similar to DCCs and I could just query the current time when USD calls my Read(…)
function. But if I understand things correctly, USD expects Read(…)
to give back the whole time slice that then clients can sample.
Which will be quite heavy and time consuming to do. Instead I would like to just stream the data to USD once something ask for it. I looked around for documentation and examples and found the alembic plugin. Which is kind of similar to what I want, just a lot more complexity to it.
Is the sdfAbstractData
the way to go in this case? As it is used in usdAbc
. Or is there something simpler that I overlooked? I just need to generate an UsdGeomBasisCurves
primitive at each time sample.
I figured I better ask here before I venture too deep into this rabbit hole.
Thanks!