Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix double-timescale in usdAbc plugin #662

Closed
spiffmon opened this issue Oct 15, 2018 · 4 comments
Closed

Fix double-timescale in usdAbc plugin #662

spiffmon opened this issue Oct 15, 2018 · 4 comments

Comments

@spiffmon
Copy link
Member

Description of Issue

See description of problem in the alembic discussion group .

Currently we are both rescaling the individual timeSamples, and setting layer timeCodesPerSecond in a duplicated attempt to convert from Alembic seconds to a (presumed) target of 24 timeCodesPerSecond.

I propose we address this by only scaling the timeSamples, because this will produce a file that is directly useable via reference or payload, whereas timeCodesPerSecond in a referenced file is ignored, so consumers would need to manually apply the same scale as a layer offset on a reference (and payloads do not currently support layer offsets).

Also propose adding an SdfFileFormatArg to usdAbc so that one can specify the desired timeCodesPerSecond to use in the sample scaling.

Steps to Reproduce

System Information (OS, Hardware)

Package Versions

Build Flags

@jtran56
Copy link

jtran56 commented Oct 17, 2018

Filed as internal issue #USD-4839.

@AlexSchwank
Copy link
Collaborator

Hi @spiffmon,

Any news on this one?

Thanks,
Alex

@spiffmon
Copy link
Member Author

Hi @AlexSchwank . Sorry, this fell off my radar. If we're OK not adding any configurability for the sampling frequency to use for conversion (hardcoded to 24 timeCodesPerSecond), then I could probably squeeze this in, soon.

@AlexSchwank
Copy link
Collaborator

Thanks @spiffmon . I think a hardcoded 24 timeCodesPerSecond is a good first step. If we realize that a configurable value is needed we can improve it later on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants