Skip to content

Conversation

@musicinmybrain
Copy link
Contributor

Description of Change(s)

Adjusts CMake scripts and #include paths to properly find version 4.x of Embree.

Adjusts for renaming of RTCIntersectContext to RTCRayQueryContext and modified rtcIntersect1/rtcOccluded signatures.

See Embree 4.0.0 changelog and upgrade notes.

Fixes Issue(s)

  • No issue filed.
  • I have verified that all unit tests pass with the proposed changes
  • I have submitted a signed Contributor License Agreement

I am not currently able to easily run the tests.

This PR, applied as a patch to USD 22.05b for the upcoming Fedora 38 and 39 releases, seems to make it compatible with Embree 4.x. At least, the library compiles.

@tallytalwar
Copy link
Contributor

Filed as internal issue #USD-8002

@nyabinary
Copy link

Filed as internal issue #USD-8002

Need this so we can drop this patch in nixpkgs :3

@jesschimein
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Pull request contains merge conflicts.

@musicinmybrain
Copy link
Contributor Author

Rebased on v24.11.

@jesschimein
Copy link
Collaborator

/AzurePipelines run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@yzx9
Copy link

yzx9 commented May 6, 2025

Hi, any updates on this patch?

@musicinmybrain
Copy link
Contributor Author

Hi, any updates on this patch?

Well, I’ve been using this PR as a patch for the usd package in Fedora. I just rebased this on dev in order to keep using the patch for the 25.05 release.

There’s another PR at #2313 that might be a bit more thorough. Among other things, it only allows Embree 4 rather than requiring it, and the author of that PR seems to be putting more effort into freshening and updating it than I am putting into this one. I haven’t reviewed the differences between the two PR’s in great detail, though.

I haven’t seen any feedback from the OpenUSD team on either PR, nor do I have any idea whether there is a concrete plan or timeline for supporting Embree 4.

@musicinmybrain
Copy link
Contributor Author

I haven’t seen any feedback from the OpenUSD team on either PR, nor do I have any idea whether there is a concrete plan or timeline for supporting Embree 4.

I’ll clarify that #2266 (comment) does indicate this is planned in some form, but obviously I can’t see internal issue trackers.

@jesschimein
Copy link
Collaborator

/AzurePipelines run

@mattyjams mattyjams mentioned this pull request May 16, 2025
5 tasks
@musicinmybrain
Copy link
Contributor Author

Closing in favor of #2313, which was merged (#2313 (comment)).

pixar-oss pushed a commit that referenced this pull request Aug 6, 2025
These changes allow building USD and the `hdEmbree` plugin against the [4.0.0 version of Embree](https://github.com/embree/embree/releases/tag/v4.0.0). The upgrade from 3.x to 4.x of Embree involves a filename change of headers and libraries (`embree3` -> `embree4`), the renaming of the header file that contains the version information from `rtcore_version.h` to `rtcore_config.h`, and for the usage in `hdEmbree`, no longer providing an (unused) context to the `rtcIntersect1()` and `rtcOccluded1()` functions. See the notes for more detail on upgrading from Embree 4 to Embree 4 here:
https://github.com/RenderKit/embree/tree/v4.0.0?tab=readme-ov-file#upgrading-from-embree-3-to-embree-4

Closes #2266
Closes #2313

(Internal change: 2373054)
meshula pushed a commit to meshula/USD that referenced this pull request Sep 11, 2025
These changes allow building USD and the `hdEmbree` plugin against the [4.0.0 version of Embree](https://github.com/embree/embree/releases/tag/v4.0.0). The upgrade from 3.x to 4.x of Embree involves a filename change of headers and libraries (`embree3` -> `embree4`), the renaming of the header file that contains the version information from `rtcore_version.h` to `rtcore_config.h`, and for the usage in `hdEmbree`, no longer providing an (unused) context to the `rtcIntersect1()` and `rtcOccluded1()` functions. See the notes for more detail on upgrading from Embree 4 to Embree 4 here:
https://github.com/RenderKit/embree/tree/v4.0.0?tab=readme-ov-file#upgrading-from-embree-3-to-embree-4

Closes PixarAnimationStudios#2266
Closes PixarAnimationStudios#2313

(Internal change: 2373054)
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

Successfully merging this pull request may close these issues.

5 participants