Kitware / vtk-js

Visualization Toolkit for the Web
https://kitware.github.io/vtk-js/
BSD 3-Clause "New" or "Revised" License
1.23k stars 371 forks source link

Is there any connection between 2D multi-planar reconstruction and computer graphics card? #2033

Closed itsRaul closed 3 years ago

itsRaul commented 3 years ago

High-level description

Hello, Use vtkjs to develop two-dimensional multi-planar reconstruction. There are image blurring and stuck in individual computer equipment. Is the final effect of vtkjs related to the computer's graphics card?

Environment

finetjul commented 3 years ago

It depends of the VTK.js class you are using, can you please describe what are all the VTK.js classes you are using in your code ?

itsRaul commented 3 years ago

It depends of the VTK.js class you are using, can you please describe what are all the VTK.js classes you are using in your code ?

finetjul commented 3 years ago

vtk.js/Sources/Rendering/Core/VolumeMapper is relying on GPU.

For the same setup, do you have different output rendering ? Can you share screenshots ?

itsRaul commented 3 years ago

vtk.js/Sources/Rendering/Core/VolumeMapper is relying on GPU.

For the same setup, do you have different output rendering ? Can you share screenshots ?

1628494306368 16284942776448

finetjul commented 3 years ago

It looks like the issue is more due to the "resolution". Do you have different values for window.devicePixelRatio in each case ?

(btw, please do not "Close" the issue if it is not resolved.)

itsRaul commented 3 years ago

It looks like the issue is more due to the "resolution". Do you have different values for window.devicePixelRatio in each case ?

(btw, please do not "Close" the issue if it is not resolved.)

I have found the answer. Chrome browser settings use the hardware acceleration mode setting, and the computer equipment appears fuzzy only because this setting is turned off

itsRaul commented 3 years ago

Thank you very much for letting me find a solution to the GPU. Open Chrome to use the hardware acceleration mode setting, some computers still have the problem of image lines. Turn off Chrome to use the hardware acceleration mode setting, the image lines, blur, and will definitely appear. Is there any API for optimizing hardware acceleration?