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

usdrecord: empty output for files that are visible in usdview #2556

Closed
hybridherbst opened this issue Jul 29, 2023 · 10 comments
Closed

usdrecord: empty output for files that are visible in usdview #2556

hybridherbst opened this issue Jul 29, 2023 · 10 comments

Comments

@hybridherbst
Copy link
Contributor

Description of Issue

According to the docs, usdrecord should have a similar output to usdview. However, the following files all result in empty renderings:

On the ASWF slack someone mentioned the possibility that extents are missing. However, that doesn't stop usdview from producing a reasonable image. And authoring the extent doesn't produce an image either; I've attached a file both with and without extent.

Steps to Reproduce

  1. Download
    Avocado.glb.three.usdz.zip
  2. Run usdrecord Avocado.glb.three.usdz Avocado-with-extent.png
  3. Download
    Avocado.glb.three.usdz.no-extent.zip
  4. Run usdrecord Avocado.glb.three.usdz Avocado-without-extent.png

Note both resulting images are empty.
Open the files in usdview to see that they are visible (albeit small - but both the same small).

This file also already renders empty and has extents authored (direct export from Blender):
sphere.usda.zip

System Information (OS, Hardware)

Both Windows 11 and M2 MacBook Pro

@carlynorama
Copy link

I don't know what's causing this but FrameRecorder seems to have its own code for setting up the scene that may be different than usdview's here

@jesschimein
Copy link
Collaborator

Filed as internal issue #USD-8544

@drwave
Copy link

drwave commented Jul 31, 2023 via email

@hybridherbst
Copy link
Contributor Author

Thanks for the feedback. My particular case here is visually verifying that USDZ files have the expected content (for e.g. https://asset-explorer.needle.tools/Avocado) - my hope was that the assumptions from "usdview has similar output to usdrecord" hold, and/or that there's a default logic to make sure files have ok clipping and so on.

That being said, happy to try your suggestion – do you happen to have an example file with such a DomeLight setup at hand? My understanding would be that I can have a "wrapper.usda" that has DomeLight + camera and then loads the "Converted.usdz" into it. Is that correct?

@drwave
Copy link

drwave commented Jul 31, 2023 via email

@drwave
Copy link

drwave commented Jul 31, 2023 via email

@drwave
Copy link

drwave commented Jul 31, 2023 via email

@drwave
Copy link

drwave commented Jul 31, 2023 via email

@spiffmon
Copy link
Member

Thanks, @drwave ! I do feel like usdrecord should minimally ensure the near clip it picks is free of the extent of the root bbox, even if it cannot optimize depth-buffer use. For @hybridherbst 's and others' use case for any asset out there, I don't think any preconfigured camera can work equally for both yup and zup assets or large/small assets?

@drwave
Copy link

drwave commented Jul 31, 2023 via email

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

5 participants