# Texturize 3D model (ray tracing)

**URL:** https://discourse.slicer.org/t/texturize-3d-model-ray-tracing/7340
**Category:** Development
**Tags:** visualization
**Created:** [June 27, 2019, 12:44pm UTC](https://discourse.slicer.org/t/texturize-3d-model-ray-tracing/7340 "2019-06-27T12:44:54Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [June 30, 2019, 5:25pm UTC](https://discourse.slicer.org/t/texturize-3d-model-ray-tracing/7340/2 "2019-06-30T17:25:20Z")

</div>

You can visualize a 3D color volume using ray casting as described in this post:

> [@Merge colored images and show them as 1 volume](https://discourse.slicer.org/t/merge-colored-images-and-show-them-as-1-volume/6472/6):
>
> If you have a full-color image then you can show a direct volume rendering of it by turning off “independent component” option in the volume renderer (it makes image components interpreted as RGBA). Type this in the Python console after enabling volume rendering: getNode('VolumeProperty').GetVolumeProperty().SetIndependentComponents(0) Note that you need an RGBA image (not just RGB). The fourth (alpha) component controls opacity. If you only have an RGB image then you can create the “alpha” v…

---

_[View the full topic](https://discourse.slicer.org/t/texturize-3d-model-ray-tracing/7340)._
