Documentation for ParaView 6.1.1 shows a slightly different interface than mine . The presence of the ANARI Library box which I don’t have (only ANARI Renderers and ANARI Renderer Parameters) ?
My ANARI Renderers box is greyed out (disabled). I had a previous built (last april) which was
displaying an ANARIRenderers menu with five entries (interactive, fast, quality, …, default which by the way I didn’t find in ParaView nor VTK what these were refering to … variable options linked to selected library I guess ? I didn’t find any reference in the cpp code … maybe in the .json configs ?? ) an was able to render an even more large unstructured mesh.
I export ANARI_LIBRARY=barney in the environment. I know barney is able to render this unstructured mesh (from usage with another frontend). So I’m wondering if I’m missing something in the use of the GUI … I played a little bit with UnitDistance and AmbientRadiance
but with no results.
I understand this is all pretty recent stuff and bound to evolve quickly.
And, BTW, I’m even surprised that visrtx can render an unstructured mesh.
It is not supported as far as I am concerned. My ANARI visrtx library is at a commit
from last april 20 and visrtx has been evolving quickly these past few months but
I don’t see any code for unstructured ?
Indeed these information is only informative, is it possible to share your data?
And, BTW, I’m even surprised that visrtx can render an unstructured mesh.
It is not supported as far as I am concerned. My ANARI visrtx library is at a commit
from last april 20 and visrtx has been evolving quickly these past few months but
I don’t see any code for unstructured ?
Indeed it doesn’t support unstructured grid directly but in paraview, when you display an UnstructuredGrid it will internally extract the surface by using the vtkGeometryFilter so what we push to VisRTX is a surface/PolyData.
It’s not new, you can already have such display by enabling it in the settings:
Weird but hey, sometimes I’m thinking it’s even weirder that it works !
And I have
ANARI 0.15 : commit 1c82885762ee1fe031c368dc756f15d5fa83be11 (april 27th)
VisRTX: commit 1c82885762ee1fe031c368dc756f15d5fa83be11 (april 30th)
OptiX8.0.0/denoiser ON
my ParaView is recent too: Version: 6.1.1-733-geea2fc2dc9
I’ve checked on VisRTX and at least I see that the list of renderer names have been changed (
Commit 8026c52, feb 17th) and that explains why you have dpt, …,etc and I have another
list (fast, interactive, quality (which I suppose corresponds to dpt pathtracer), debug, default (helide probably)
… That’s that .
This visrtx is a mystery right now … but I was more concerned with barney which is able to deal with unstructured mesh. Maybe the issues are linked.
even if you are able to have something in ParaView with Barney, it would be a surface/polydata because your unstructured grid would be converted internally as I said in this prior post.
Good news is that it will be supported in the future
Ok, nice to see there’s already an MR in the oven !
I am curious. Would it be possible for you to pinpoint in the code where this surface extraction happens in the anari/visrtx code path even when an unstructured volume is selected in the gui ?
It doesn’t happen in anari/visrtx, it happens way earlier in the ParaView itself, not in VTK.
When you load a data in ParaView, a representation will be created for this dataset, in most case it will be a vtkGeometryRepresentation or a subclass of this one.
This representation holds an actor, a mapper and a vtkGeometryFilter, this filter will compute from your unstructured grid a polydata. Then it will associate this polydata to the mapper (see vtkGeometryRepresentation::ProcessViewRequest) and forward the related actor to the view vtkGeometryRepresentation::AddToView. The View holds the vtkRenderWindow and we finally are in the realm on Anari !
tl&dr : currently the view will never know that the dataset was an unstructured grid at the beginning so there is nothing in the Anari about unstructured grid (for now).
Side note : any mapper (like vtkOpenGLPolyDataMapper) is associated to the correct anari node by a factory : vtkAnariViewNodeFactory::vtkAnariViewNodeFactory .
Thanks for the explanation.
I will also have a look at Stefan’s MR to add an ANARI unstructured volume mapper and try
to understand a little bit better.