# color volume without volumeproperty.setColor

**URL:** https://discourse.vtk.org/t/color-volume-without-volumeproperty-setcolor/1877
**Category:** Support
**Created:** [October 6, 2019, 11:15am UTC](https://discourse.vtk.org/t/color-volume-without-volumeproperty-setcolor/1877 "2019-10-06T11:15:52Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![svabhishek29](https://discourse.vtk.org/user_avatar/discourse.vtk.org/svabhishek29/32/479_2.png) [@svabhishek29](https://discourse.vtk.org/u/svabhishek29)
#### Post date: [October 6, 2019, 11:15am UTC](https://discourse.vtk.org/t/color-volume-without-volumeproperty-setcolor/1877/1 "2019-10-06T11:15:52Z")

</div>

Hi,

I have a MRI scan that i have applied lut with proper windowing, when i try to volume render this colored MRI i still get grayscale volume.

i have tried using volumeProperty.SetIndependentComponents(False) but then i get error that

“If IndependentComponents is Off in the volume property, then the data must have either 2 or 4 component scalars. The input data has 3 component(s).”

is there a way to color the volume from the color that the data has and with out setting volumeproperty.setColor

Thanks

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [October 7, 2019, 5:59pm UTC](https://discourse.vtk.org/t/color-volume-without-volumeproperty-setcolor/1877/2 "2019-10-07T17:59:14Z")

</div>

Image display pipeline and volume rendering pipelines are indepdendent. Setting a LUT for image display does not affect volume rendering in any way. You need to set the color transfer function in the volume rendering mapper if you want to see colored volueme rendering.
