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
Loading Alembic in StageView widget in custom Qt interface fails to display Alembic geometry #1022
Comments
Note that upon loading the stage from the Alembic file and doing As such, it is reproducable with solely that output saved as |
Hi Roy,
I haven’t examined your files, but a have a hunch as to what the issue
may be. Alembic files only contain timeSamples (ie no default values),
whereas our kitchen set comes from our pipeline where static models only
contain default values.
I think that the imager, if not configured, reads from the default time.
Try configuring the StageView’s current frame with
UsdTimeCode.EarliestTime() or zero (or the stage’s startTimeCode, if
authored (though it may not be).
On Mon, Nov 4, 2019 at 7:18 AM Roy Nieterau ***@***.***> wrote:
Note that upon loading the stage from the Alembic file the and doing
stage.ExportToString I'm getting this output
<https://pastebin.com/mEaZcQ81> which seems like it does actually load
the mesh correctly. Nevertheless, saving that as sphere.usd and then
loading results in the same behavior of only showing a bounding box and not
showing any geometry whatsoever.
As such, it is reproducable with solely that output saved as .usd too.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1022>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABPOU2EQ7EKF2TSLO4BHOZ3QSA4MNANCNFSM4JIUWYZQ>
.
--
--spiffiPhone
|
@spiffmon I just figured that out, ha! Since I got the exported Sphere working when I refactored the As soon as I added this: earliest = Usd.TimeCode.EarliestTime()
window.model.currentFrame = Usd.TimeCode(earliest) The model displayed fine. |
Description of Issue
I'm trying to embed USD view widgets into a custom Qt interface, for which a code example can be found here.
This works fine when displaying the example
Kitchen_set.usd
scene however when loading an Alembic file this solely displays the bounding box. Nevertheless when usingusdview
the exact same Alembic file works fine.Example
sphere.abc
(zipped): sphere.zipWhat am I missing to correctly load the Alembic file? Or am I misinterpreting how to reuse these widgets in a custom interface? What I'm trying to do is have a very simple Hydra viewer to display USD/Alembic assets in our pipeline asset manager. As such a simple Viewport with a timeline (with optionally allowing to enable a hierarchy editor) would be perfect.
Steps to Reproduce
sphere.abc
Note how just the bounding box is displayed but no geometry is visible. The following warning can be observed in the Python log:
However, the same file works fine with
usdview
.Package Versions
USD tag
v19.11
Build Flags
The text was updated successfully, but these errors were encountered: