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

Displacement not working with RPR #433

Closed
matiascodesal opened this issue Jan 10, 2021 · 2 comments
Closed

Displacement not working with RPR #433

matiascodesal opened this issue Jan 10, 2021 · 2 comments

Comments

@matiascodesal
Copy link

Here's a simple repro that I tested in usdview. It's a plane with a uniform 2 unit displacement. If I render it in usdview with hdStorm, the plane is offset 2 units above the origin. When I switch to RPR, the plane drops down to the origin.

Repro:
displacement_repro.zip

  1. Exctract displacement_repro.zip
  2. Make sure grid_scene_repro.usda and grid.usdc are in the same directory.
  3. usdview grid_scene_repro.usda
@matiascodesal matiascodesal changed the title Displacement not work with RPR Displacement not working with RPR Jan 10, 2021
@hshakula
Copy link
Contributor

#434 fixes this issue. But your exact scene would crash with the Full quality (RPR 2.0) because the material does not define texture coordinate primvar and hence quad mesh created without them. In the current RPR SDK, such setup (mesh with displacement without texture coordinates) leads to a crash. It's already fixed internally, waiting for the next RPR SDK release.

btw, if you need displacement asap my advice would be to bake displacement and use UsdUvTexture as displacement input.

@matiascodesal
Copy link
Author

Thanks for the fix!

hshakula added a commit to hshakula/RadeonProRenderUSD that referenced this issue Jan 22, 2021
…ibrariesAndSDKs#434)

PURPOSE
To fix GPUOpen-LibrariesAndSDKs#433

EFFECT OF CHANGE
Fixed UsdPreviewSurface displacement defined with a constant
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

2 participants