Skip to content
Snippets Groups Projects
Commit 52b28c91 authored by Sankhesh Jhaveri's avatar Sankhesh Jhaveri :speech_balloon:
Browse files

Anari: Fix the smart volume mapper test

parent ec547593
No related merge requests found
......@@ -4,6 +4,8 @@
// This test volume renders a synthetic dataset with unsigned char values,
// with the composite method.
#include <vtkAnariPass.h>
#include <vtkAnariRendererNode.h>
#include <vtkCamera.h>
#include <vtkClipPolyData.h>
#include <vtkColorTransferFunction.h>
......@@ -99,9 +101,19 @@ int TestAnariSmartVolumeMapper(int argc, char* argv[])
volume->SetMapper(volumeMapper);
volume->SetProperty(volumeProperty);
vtkNew<vtkAnariPass> anariPass;
ren->SetPass(anariPass);
vtkAnariRendererNode::SetLibraryName("environment", ren);
vtkAnariRendererNode::SetSamplesPerPixel(6, ren);
vtkAnariRendererNode::SetLightFalloff(.5, ren);
vtkAnariRendererNode::SetUseDenoiser(1, ren);
vtkAnariRendererNode::SetCompositeOnGL(1, ren);
ren->AddViewProp(volume);
ren->AddActor(dssActor);
renWin->Render();
ren->ResetCamera();
ren->GetActiveCamera()->Pitch(-40);
ren->ResetCamera();
iren->Initialize();
......
fdb7f4250cff01b86e4a1cac8ed0ae02a771248c815b0b4d63ec598f46f7cb4c2d4a4af1647a76b0a4dd8694ea8686ad46f9012d932042277db1625cbcf0596a
9fcf074c4deb43a566006c26ab3e5d12cb1f4bc635da4f2921514e98e199ad12f7df4aa6ca3a623b71a184818da29e2d8c5ab3716b98fd3c7773976499d73a86
145c654b6c0855b298b3d1c14291bf58a5e570529ac9d32d2b86ff04909d52d4746dcd29dabf58b05505870dd0276e9b7a88a922d8c47d65741f8b4505d8f533
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment