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

NurbsCurve are renders as linear curves in hydra #2135

Open
cpichard opened this issue Oct 29, 2024 · 1 comment
Open

NurbsCurve are renders as linear curves in hydra #2135

cpichard opened this issue Oct 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@cpichard
Copy link
Collaborator

Describe the bug
When we render the following NurbsCurve example exported from maya

#usda 1.0
(
    defaultPrim = "curve1"
    metersPerUnit = 0.01
    upAxis = "Y"
)

def NurbsCurves "curve1" (
    kind = "component"
)
{
    int[] curveVertexCounts = [4]
    float3[] extent = [(-2.5648465, -0.6877133, -0.5), (1.4385666, 7.8890786, 0.5)]
    double[] knots = [0, 0, 0, 0, 1, 1, 1, 1]
    int[] order = [4]
    point3f[] points = [(-2.0648465, 7.3890786, 0), (0.93856657, 4.8293514, 0), (0.2901024, 2.8156996, 0), (-1.7235495, -0.18771331, 0)]
    double2[] ranges = [(0, 1)]
    float[] widths = [1] (
        interpolation = "constant"
    )
}

Arnold will render linear segment instead of a nurb curve.
If you import this USD in Maya (cmds.mayaUSDImport(file="my_file.usd")), you get a nurbsCurve (see first screenshot).
If I try to render this same curve with arnold (using hydra render delagate), I get the second screenshot.
image (3)
image (4)

@cpichard cpichard added the bug Something isn't working label Oct 29, 2024
@autodesk-oss-arnold-bot
Copy link

Issue synced internally to ARNOLD-15620

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant