# Volume representation as categories

**URL:** https://discourse.paraview.org/t/volume-representation-as-categories/7262
**Category:** ParaView Support
**Created:** [May 20, 2021, 1:52pm UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262 "2021-05-20T13:52:14Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![schupin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@schupin](https://discourse.paraview.org/u/schupin)
#### Post date: [May 20, 2021, 1:52pm UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262/1 "2021-05-20T13:52:14Z")

</div>

Hi,

I’m trying to view an image file (.vti) in wich each areas are identified by a unsigned int value (between 1 and 500 for instance). Unidentified areas have 0 as value.  
When I use a volume representation of the data, i can’t clearly see areas identified by number 1 or 2 since I put opacity of 0 to 0.

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/20343bd24382372f598005d3fd5d382dd080fd9c.jpeg)

At the contrary, if I put opacities of areas from 1 to 500 at 1, and interpolation is done between void area (0) and others → almost everything look the same :

 ![image](https://discourse.paraview.org/uploads/default/original/2X/f/ff0398eeceece35e3a5860808e4c9e2349aa115d.jpeg)

I tried to use the “interpert values as categories” button but it seems to do nothing while using a volume representation.

Anyone knows how to get rid of the interpolation of how to look at these kind of data ?

Thanks by advance,

PS: a sample data can be downloaded here ftp://ftp.cea.fr/incoming/y2k01/chupin-sylvain-1621518551/32bits\_labels\_0.vti

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 20, 2021, 3:27pm UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262/2 "2021-05-20T15:27:02Z")

</div>

I’m afraid this is a limitation of the Volume rendering representation.

Your dataset is perfectly adapted to the DigitalRocksPhysics plugin tools though. Using ExplodeMaterialCluster filter with a factor of 0 you can get this rendering:

 ![image](https://discourse.paraview.org/uploads/default/original/2X/2/2e85e5ae03a0892cbef1a3aff2adf960ecb89fe0.jpeg)

---

<div class="post-metadata">

### Author: ![schupin](https://discourse.paraview.org/letter_avatar_proxy/v4/letter/s/9e8a1a/32.png) [@schupin](https://discourse.paraview.org/u/schupin)
#### Post date: [May 20, 2021, 7:24pm UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262/3 "2021-05-20T19:24:26Z")

</div>

Thanks a lot for your quick answer.  
I didn’t know this plugin and it work very well for this kind of vizualisation.  
Playing with ambient occlusion and tone mapping gave me something great !

 ![image](https://discourse.paraview.org/uploads/default/original/2X/7/72cb73c8b58116bf26239083083e54de395e30c9.jpeg)

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [May 21, 2021, 8:17am UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262/4 "2021-05-21T08:17:19Z")

</div>

@LfxPaul🙂

---

<div class="post-metadata">

### Author: ![LfxPaul](https://discourse.paraview.org/user_avatar/discourse.paraview.org/lfxpaul/32/3703_2.png) [@LfxPaul](https://discourse.paraview.org/u/LfxPaul)
#### Post date: [May 21, 2021, 8:41am UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262/5 "2021-05-21T08:41:51Z")

</div>

Woow nice visualization @schupin ! Love the way occlusion makes the data almost real

---

<div class="post-metadata">

### Author: ![steve\_r](https://discourse.paraview.org/user_avatar/discourse.paraview.org/steve_r/32/8305_2.png) [@steve\_r](https://discourse.paraview.org/u/steve_r)
#### Post date: [May 26, 2021, 1:38pm UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262/6 "2021-05-26T13:38:17Z")

</div>

Looks really cool!  
Still, I would love to see “values as categories” being supported for volume data.

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [November 22, 2022, 8:09am UTC](https://discourse.paraview.org/t/volume-representation-as-categories/7262/7 "2022-11-22T08:09:34Z")

</div>

A post was split to a new topic: [ExplodeMaterialCluster issue](https://discourse.paraview.org/t/explodematerialcluster-issue/10830)
