f3d-app / f3d

Fast and minimalist 3D viewer.
https://f3d.app
BSD 3-Clause "New" or "Revised" License
2.93k stars 215 forks source link

Add an option to control the discretization of colormap #228

Open xyont opened 2 years ago

xyont commented 2 years ago

Context F3D is able to display data using a color map. By default, the discretization of the colormap is 256. It would be nice to add a way to control that discretization.

Suggested Solution

Original Issue

dear Developers,

i did not know is this feature available yet or not, several times i read the documentation but i can not find for such purpose.

Paraview has capability to setting number of color discretization, hopefully is not complex things and F3D also capable to do the same. it's a common in engineering representation.

best regards, SN

F3d_256discrettation Paravie_Number_Color_Discrtization_12

mwestphal commented 2 years ago

What about using Step color space ?

Meakk commented 2 years ago

I think it's unrelated to step color space, just the number of computed colors in the lookup table.
We could use vtkDiscretizableColorTransferFunction and add a new option to set the number of colors.

mwestphal commented 2 years ago

Indeed, but being able to choose the step color space resolve the usecase in a different way and open the door to other color spaces.

mwestphal commented 2 years ago

That being said, adding the number of colors should be quite an easy feature to add. Feel free to contribute if you can @xyont

xyont commented 2 years ago

i'm new to graphics especially in VTK, not a really programmer also. however, it's interesting subject in which lead me to start learn something.

mwestphal commented 10 months ago

Added context and suggested solution.

MarcosDanielTorres commented 10 months ago

Hi! Maybe I can take this?

mwestphal commented 10 months ago

Sure!

gapry commented 1 month ago

@mwestphal I'd like to work on this issue. Could you please assign it to me?

mwestphal commented 1 month ago

Of course! Feel free to join our discord if you want :)

https://discord.f3d.app