Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VTK (Activiz) rendering differently on different hardware

Tags:

c#

vtk

I am using Activiz.NET to render some STLs in a C# tool. The renderwindow and renderer settings are as follows.

window.SetMultiSamples(0);
window.SetAlphaBitPlanes(1);
renderer.SetOcclusionRatio(0.1);
renderer.SetUseDepthPeeling(1);

Running the tool on an STL on my system results in the following image (which is as expected).

Expected image result on my system. (Click image for full size)

However, when two of my colleagues run the same tool on the exact same STL, they get the following image as output.

Rendering artefacts on two other systems. (Click image for full size)

Could these artefacts be related to different hardware of our three systems? Does anyone have a solution that would ensure that the render quality is always the same on all systems?

like image 886
Yurrit Avonds Avatar asked Aug 23 '16 15:08

Yurrit Avonds


1 Answers

After two years, I finally figured out the problem. The artefacts were only present on systems that had both onboard graphics and a dedicated GPU. On some of these systems, the the tool did not automatically make use of the GPU, but used the onboard graphics for rendering instead. Forcing the tool to use the GPU in the GPU settings resolved this.

like image 174
Yurrit Avonds Avatar answered Oct 04 '22 08:10

Yurrit Avonds