Skip to content
Snippets Groups Projects
Commit 7a2312f5 authored by Ali Can Demiralp's avatar Ali Can Demiralp
Browse files

Only camera animation to go.

parent c28f08fa
No related branches found
No related tags found
No related merge requests found
#include <algorithm>
#include <cstdint>
#include <iostream>
#include <vtkActor.h>
#include <vtkAVIWriter.h>
#include <vtkOSPRayPass.h>
#include <vtkPolyDataMapper.h>
......@@ -8,7 +10,7 @@
#include <vtkRenderWindow.h>
#include <vtkRenderWindowInteractor.h>
#include <vtkSmartPointer.h>
#include <vtkOSPRayVolumeMapper.h>
#include <vtkUnstructuredGridVolumeRayCastMapper.h>
#include <vtkVolume.h>
#include <vtkWindowToImageFilter.h>
......@@ -33,13 +35,13 @@ std::int32_t main(std::int32_t argc, char** argv)
std::cout << "Setting up mappers, actors and volumes.\n";
auto pd_mapper = vtkSmartPointer<vtkPolyDataMapper> ::New();
auto ug_mapper = vtkSmartPointer<vtkOSPRayVolumeMapper>::New();
auto ug_mapper = vtkSmartPointer<vtkUnstructuredGridVolumeRayCastMapper>::New();
auto pd_actor = vtkSmartPointer<vtkActor> ::New();
auto ug_volume = vtkSmartPointer<vtkVolume> ::New();
pd_actor ->SetMapper(pd_mapper);
ug_volume->SetMapper(ug_mapper);
renderer ->AddActor (pd_actor );
renderer ->AddVolume(ug_volume);
//renderer ->AddVolume(ug_volume);
std::cout << "Setting up image and video writers.\n";
auto window_to_image = vtkSmartPointer<vtkWindowToImageFilter>::New();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment