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

BasisCurves disappearing on update #1861

Closed
BigRoy opened this issue Feb 15, 2024 · 4 comments · Fixed by #1921
Closed

BasisCurves disappearing on update #1861

BigRoy opened this issue Feb 15, 2024 · 4 comments · Fixed by #1921
Labels
bug Something isn't working

Comments

@BigRoy
Copy link
Contributor

BigRoy commented Feb 15, 2024

Describe the bug

It seems that Arnold incorrectly 'updates' BasisCurves. This is mostly noticable in Houdini Solaris, where just moving the camera or clicking through frames makes the curves disappear. There, a "Restart Render" is required for the hair curves to show up.

To Reproduce

Reproduce in Houdini 20.0.590 with HtoA 6.2.5.2

Here's a simple usda file with some curves generated by "Draw Curve" with SOP Create in LOPs in Houdini.

curves.zip

  1. Sublayer this file in Houdini
  2. Move camera - curves disappear
    (Note that when using the free camera, and not camera tied to view that the bug occurs with Display Options > Camera > Clipping > Homing Auto Adjusts > Neither Clip Plane set)
    image

This error is shown in the render logs.

00:22:39  1727MB ERROR   |  [curves] /sopcreate1/curve_0: invalid number of points (found 168, expected 484)

Reproducable in USDView

This can be harder to reproduce in USDView since there it doesn't occur on camera movements - but it does when you SWITCH cameras, e.g. switch from free cam to the camera in the USD file or vice-versa.

Since this is on camera updates it could be that #1854 resolves this already - however even if that were the bug there still appears to be a bug on "syncing updates" from the scene for Arnold USD to curves/hairs where Arnold thinks its getting the wrong point counts.

With some other drawn curves, e.g. the error is:

00:00:11  1754MB ERROR   |  [curves] /sopcreate1/curve_0: invalid number of points (found 272, expected 784)

What's interesting is the ratio of points that it expects to what it found:

784 / 272 = 2,882352941176471
484 / 168 = 2,880952380952381

seems the ratio it's wrong is quite similar.

When trying it with a very simple single curve:

00:00:02  1832MB WARNING |  [curves] /sopcreate1/curve_0: invalid number of points (found 7, expected 0 or 19)

Here maybe it's interesting that it's expecting either 0 or 19.

Anyway, 9 / 17 = 2,714285714285714 a bit further away, but still around 2.8.

Expected behavior

Curves/hairs should render fine, and not disappear.

Screenshots
If applicable, add screenshots to help explain your problem.

Used Software Versions

  • HtoA: 6.2.5.2
  • OS: Windows 10
  • Houdini: 20.0.590

Additional context

I've reported this issue on Arnold Support as well - with less information. The ticket there is: HTOA-2504
There I mostly reported it happening on "frame changes" over time.

@BigRoy BigRoy added the bug Something isn't working label Feb 15, 2024
@autodesk-oss-arnold-bot
Copy link

Issue synced internally to ARNOLD-14749

@BigRoy
Copy link
Contributor Author

BigRoy commented Feb 15, 2024

This doesn't necessarily seems camera related since even settings Render Geometry Settings on the prim in Houdini directly kills the curves with the same error.

@cpichard
Copy link
Collaborator

#1814 exhibits the same problem.

@BigRoy
Copy link
Contributor Author

BigRoy commented Feb 16, 2024

Thanks - didn't expect that to be the 'same issue' - didn't see the same error (log) being reported there.

Anyway, let me know if there's anything I can do to help pinpoint this better. It's a major pain in the... behind, for us - since you can hardly tweak hairs for the render in Solaris.

sebastienblor added a commit to sebastienblor/arnold-usd that referenced this issue Jun 3, 2024
sebastienblor added a commit that referenced this issue Jun 4, 2024
* Fix IPR update of linear curves in the render delegate #1861

* Add changelog
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: Done
Development

Successfully merging a pull request may close this issue.

2 participants