How to keep original color even after VTP conversion?

Dear VTK-developer,

How to visualize VTP file with its original color? We are using geometry viewer to visualize .VTP file however we did not find any option to keep the original color.

We would like to keep the original color intact as shown below.
bundle

Could you please guide us how to accomplish this.

I would highly appreciate your help.

Best regards,
Sunita

Dear Sebastien,

Could you please help on how we can retain the original color even after VTP conversion.
You are genius in this field. Your guidance means a lot.
Please help.

Thank you so much.
Best regards,
Sunita

Hi Sunita!
That’s a great picture, what does it show, and how was it produced?

To get some help, you need to provide some more details about what you have tried, and what you are trying to do.

First, can you share your data? If it is too large to attach here, use another file sharing website.

Second, what tool are you trying to use? Which geometry viewer? Please provide the steps that you have taken, and share a picture of what you have achieved so far.

If you are trying to use one of the web-based apps, it might be helpful to try to get the visualization you want in ParaView, and share the settings you changed to achieve it, so the web experts like Seb can comment on whether those settings are available in the web app. In your case, they probably are.

Hi Aron,

We are trying to generate fiber tracts following DIPY notebook (DIPY — dipy 1.8.0 documentation).

The generated image represents a fiber bundle.


We saved this bundle as .vtp file and loaded in the geometry viewer of VTK (vtk.js).
But in the viewer, it is not showing the original color and also not in paraview.

The file is shared here.
VTP file: tractogram_EuDX.vtp - Google Drive

Thank you so much for your help.

Best regards,
Sunita

I played with it a bit, and in the tool bar at the top, where your screenshot says “Magnitude”, you want to change that to “Use direct mapping”

Thank you so much Aron.
Its working.

Best regards,
Sunita