Query with respect to WebGPU Rendering Backend in VTK WASM

Hello,

I have been working with VTK WASM over the past few weeks and have been experimenting with the webgpu rendering backend.

It works great for my use case which basically most of the time is around is just for visualizing complex polydata geometries. I understand that webgpu is still under experimental stage but I have query regarding some features which I need a bit more clarification.

Gradient Renderer Background

In, webgpu backend I have observed it is currently not possible to setup a gradient rendering background. In native VTK and webgl it works by setting it up with the renderer using the SetBackground and SetBackground2 functions but these do not work with webgpu as rendering backend. It always shows the first background colour directly. Is it a feature limitation? Will the support for this be added in future for the WebGPU backend?

I have tried a workaround of setting the Background Alpha as 0 and making the background transparent and I thought once I have the transparent background I could make my own background using CSS but in this case The Background is always rendered opaque.

Is there any other workaround currently?

Camera Orientation Widget

The interactions for the Camera Orientation Widget does not work with the WebGPU rendering backend in VTK WASM, However, the work fine when my rendering backend is WebGL. How to support interactions of COW with webgpu backend in vtk-wasm?

Thank you,
Rammer

Hi @RaMmer,

I can look into supporting gradient backgrounds in the vtkWebGPURenderer.

As for the camera orientation widget, it sounds like a picking problem. I’ll investigate.

2 Likes

Thank you for the updates, Jaswant!