# Compile ParaView with NVIDIA OptiX

**URL:** https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795
**Category:** ParaView Support
**Created:** [September 1, 2023, 10:07am UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795 "2023-09-01T10:07:22Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![JanGart](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@JanGart](https://discourse.paraview.org/u/JanGart)
#### Post date: [September 1, 2023, 10:07am UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795/1 "2023-09-01T10:07:22Z")

</div>

Dear all,

I want to compile ParaView with OptiX backend for ray tracing. I have been so far successful in installing it with the CPU based ospray, but I am unhappy with the denoiser and want to try out Nvidias optix.

So far, I have successfully compiled and installed the newest NVIDIA driver, CUDA, and OptiX libraries. But I am not sure how to link this during compilation with ParaView. For OSPRay a CMAKE flag existed,

```auto
Dospray_DIR

```

but it seems that there is no such flag for OptiX. I also tried to add the OptiX library to the LD\_LIBRARY\_PATH but that did not help either.

How can compile and build ParaView with OptiX?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 1, 2023, 12:20pm UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795/2 "2023-09-01T12:20:53Z")

</div>

Looking at how the superbuild does it, OptiX seems to be used through VisRTX rather than directly. `VTK_USE_VISRTX` seems to be the option you’re looking for.

---

<div class="post-metadata">

### Author: ![JanGart](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@JanGart](https://discourse.paraview.org/u/JanGart)
#### Post date: [September 1, 2023, 12:48pm UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795/3 "2023-09-01T12:48:17Z")

</div>

Thank you, I tried that but then it could not find the VisRTX external dependencies.  
Do I need to compile and install VisRTX or is it included in the paraview build but it cannot find missing dependencies to e.g., OptiX?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.paraview.org/u/ben.boeckel)
#### Post date: [September 1, 2023, 2:35pm UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795/4 "2023-09-01T14:35:22Z")

</div>

VisRTX lives [here](https://github.com/NVIDIA/VisRTX) and is not vendored into ParaView itself.

---

<div class="post-metadata">

### Author: ![steve\_r](https://discourse.paraview.org/user_avatar/discourse.paraview.org/steve_r/32/8305_2.png) [@steve\_r](https://discourse.paraview.org/u/steve_r)
#### Post date: [September 26, 2023, 1:04pm UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795/5 "2023-09-26T13:04:27Z")

</div>

I think it’s worth to mention, that NVIDIA’s VisRTX backend is under heavy development at the moment to become part of the upcoming ANARI backend, which is going to unify access to third-party render engines in VTK, and ParaView later on.

[ANARI 1.0 has just been announced by the Khronos Group.](https://www.khronos.org/anari)

---

<div class="post-metadata">

### Author: ![JanGart](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/j/c37758/32.png) [@JanGart](https://discourse.paraview.org/u/JanGart)
#### Post date: [February 10, 2024, 8:19am UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795/6 "2024-02-10T08:19:42Z")

</div>

As an FYI for anyone reading this, you need to install the old version of VisRTX before the refactoring with Paraview 5.11.  
I tried it with the Anari SDK package, but it needs the version v0.1.6 with the MDL SDK library.

Are there any updates on when the new VisRTX backend will be introduced to ParaView?

---

<div class="post-metadata">

### Author: ![steve\_r](https://discourse.paraview.org/user_avatar/discourse.paraview.org/steve_r/32/8305_2.png) [@steve\_r](https://discourse.paraview.org/u/steve_r)
#### Post date: [February 19, 2024, 1:56pm UTC](https://discourse.paraview.org/t/compile-paraview-with-nvidia-optix/12795/7 "2024-02-19T13:56:07Z")

</div>

> [@JanGart](#):
>
> Are there any updates on when the new VisRTX backend will be introduced to ParaView?

The new and revised VisRTX as an ANARI backend has been brought into VTK already end of last year [https://www.khronos.org/blog/kitware-adds-anari-support-to-vtk-to-simplify-access-to-accelerated-3d-rendering-engines](https://www.khronos.org/blog/kitware-adds-anari-support-to-vtk-to-simplify-access-to-accelerated-3d-rendering-engines), which is a prerequesite for exposure in ParaView. I presume we are going see a first integration in the coming months.
