f3d icon indicating copy to clipboard operation
f3d copied to clipboard

Volume Rendering require coloring array to be set to work correctly

Open mwestphal opened this issue 1 year ago • 1 comments

Describe the bug F3D recently decoupled --scalars into --scalar-coloring and --coloring-array option, however this is an unepexted effect on --volume behavior when not using --scalar-coloring

To Reproduce Steps to reproduce the behavior:

  1. Open the file using f3d --dry-run ../src/testing/data/waveletArrays.vti -v --coloring-array=Result -b
  2. Incorrect array is used

a

Expected behavior Correct array is used for rendering

F3D Information Paste the content of f3d --version: master

Additional context

A workaround is to have -s in the command line.

Should not be fixed before https://github.com/f3d-app/f3d/pull/1609 is merged

This is caused by the vtkF3DRendererWithColoring::SetColoring with enable set to false which in turn ignore the array name.

mwestphal avatar Oct 06 '24 09:10 mwestphal

Fixing this is more work than I expected due to design choices in the vtkF3DRenderer. I think creating a new class for handling the coloring cycle logic would be beneficial to both the vtkF3DMetaImporter and vtkF3DRenderer.

mwestphal avatar Oct 11 '24 06:10 mwestphal