Capsule_1 rendering breaks when top/bottom radii are different
Description of Issue
The new Capsule_1 primitive seems to have a issues drawing correctly. Compared to adjusting radiusTop and radiusBottom with Cylinder_1, the new cylinder prim has unexpected results that look buggy.
Steps to Reproduce
-
Download attachment from Bug_Capsule_1.usda.zip , and open in
usdview -
With radiusBottom of 1.0 and radiusTop of 0.3 on both primitives, it seems reasonable to expect the capsule to resemble the cylinder, except for the rounded ends. But it looks unexpectedly different, maybe broken:
-
Open up an Interpeter window, to use for next steps
-
In usdview, select primitive1, and then select its radiusBottom property, and in the interpreter window, run
usdviewApi.property.Set(0.3) -
Then select its radiusTop property, and in the interpreter window, run
usdviewApi.property.Set(1.0) -
This looks entirely broken, like there are assumptions about the values/order of radiusTop and radiusBottom:
Package Versions
USD 24.05
Thanks, @crydalch - do you get the same results with Hydra 2 as with default Hydra 1?
Hi @spiffmon!
Yes, it appears the same with USDIMAGINGGL_ENGINE_ENABLE_SCENE_INDEX=1
Filed as internal issue #USD-9737
Is this something that is already being worked on by Pixar? I was thinking of tackling this, but didn't want to duplicate any work that may already be ongoing.
This was easier than I thought... PR incoming soon. I'll just cross my fingers that there hasn't been any duplicated effort.
Thank you @marktucker! We had not started on this yet, so the PR is very welcome!
Closing as this has been fixed. Thank you!