# Volume rendering from color slices

**URL:** <https://discourse.slicer.org/t/volume-rendering-from-color-slices/6688>\
**Category:** Support\
**Created:** [May 3, 2019, 7:17pm UTC](https://discourse.slicer.org/t/volume-rendering-from-color-slices/6688 "2019-05-03T19:17:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sreyankar](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sreyankar](https://discourse.slicer.org/u/sreyankar)\
**Post date:** [May 3, 2019, 7:17pm UTC](https://discourse.slicer.org/t/volume-rendering-from-color-slices/6688/1 "2019-05-03T19:17:52Z")

</div>

Hi, I have a stack of color images with predefined colormap in matlab. Is it possible to get volume rendering while preserving the colormap? The only options I am getting are the pre set volume color maps.

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 3, 2019, 7:19pm UTC](https://discourse.slicer.org/t/volume-rendering-from-color-slices/6688/2 "2019-05-03T19:19:36Z")

</div>

Direct volume rendering of RGBA volumes is very uncommon, so we did not expose it on the GUI. You can [enable it by typing a single line of code in the console](https://discourse.slicer.org/t/merge-colored-images-and-show-them-as-1-volume/6472/6).

---

<div class="post-metadata">

**Author:** ![sreyankar](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@sreyankar](https://discourse.slicer.org/u/sreyankar)\
**Post date:** [May 3, 2019, 8:41pm UTC](https://discourse.slicer.org/t/volume-rendering-from-color-slices/6688/3 "2019-05-03T20:41:27Z")

</div>

Thank so much for the quick reply. I tried your suggestion and created an alpha stack and merged with the RGB stack. For the volume rendering I turned off the independent components. However, when I do the volume rendering it is still rendering it only on the scalar volume. Am I doing something wrong?  
Thanks

---

<div class="post-metadata">

**Author:** ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)\
**Post date:** [May 3, 2019, 8:52pm UTC](https://discourse.slicer.org/t/volume-rendering-from-color-slices/6688/4 "2019-05-03T20:52:33Z")

</div>

Use GPU volume rendering and latest stable version. If does not work then maybe you could share your scene so that we can test it, too.
