Kitware / glance

Kitware Glance is an open-source web application developed at Kitware for visualizing volumetric images, molecular structures, geometric objects, and point clouds. It is part of the ParaView platform and can serve as a foundation for building custom web-based visualization applications involving ITK.js and VTK.js.
https://kitware.github.io/glance
BSD 3-Clause "New" or "Revised" License
245 stars 86 forks source link

If two geometry files are loaded, and they color by same scalars name, here is a problem? #358

Closed ziqiangxu closed 4 years ago

ziqiangxu commented 4 years ago

I have loaded two geometry files, they are like this.

  1. Vessel.vtk image
  2. Segmentation.vtk image

When I show them at the same time and all color by scalars. It will like this, they are rendering by one colormap. image

It seems that they are using the same ~representation~lookupColorTable(I have read the code), is it a deliberate design?

floryst commented 4 years ago

This is by design. Internally, arrays of the same name use the same lookup table. I believe this mimics the functionality of ParaView. (@jourdain please correct me if I'm wrong by any chance.)

ziqiangxu commented 4 years ago

This is by design. Internally, arrays of the same name use the same lookup table. I believe this mimics the functionality of ParaView. (@jourdain please correct me if I'm wrong by any chance.)

OK, thanks for your reply. BTW, now glance's painting has only one 3D mode, actually, the 2D mode may more useful, is it in the TODO list?

jourdain commented 4 years ago

Same field name should have a shared color scale otherwise you could not compare the temperature of 2 objects accurately. If you want to get independent coloring for meshes, you should not name your field scalars everywhere. You could use the name of your geometry assuming that one is unique.

jourdain commented 4 years ago

They are not using the same representation but the same LookupColorTable to allow user to compare Apple to Apple.

ziqiangxu commented 4 years ago

I see, thank you very much.