# How to render the model by an image

**URL:** https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675
**Category:** Support
**Tags:** segmentation
**Created:** [March 21, 2021, 3:16pm UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675 "2021-03-21T15:16:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)
#### Post date: [March 21, 2021, 3:16pm UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675/1 "2021-03-21T15:16:44Z")

</div>

Dear Professors  
I Always fail when using image rendering model! as is shown in this picture.How to solve the problem，After clicking apply, the model becomes white.win 20210226

 ![捕获](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/8/b8c01d53d5eb3b4097614827585363d2c8502464.jpeg)

---

<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: [March 22, 2021, 5:03am UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675/3 "2021-03-22T05:03:23Z")

</div>

You need to choose the texture image (in your case: “Heart\_B”) as “Texture”.

---

<div class="post-metadata">

### Author: ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)
#### Post date: [March 22, 2021, 5:08am UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675/4 "2021-03-22T05:08:20Z")

</div>

Thank you very much for the reply from Professor Andras Lasso. Yes, I chose Heart\_B as the texture. I named it 1.jpg, but as you can see, the model changed from the original color to white.

---

<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: [March 22, 2021, 5:20am UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675/5 "2021-03-22T05:20:17Z")

</div>

If the model is all white after applying the texture then most likely no texture coordinates are found. VTK (the visualization toolkit that Slicer uses) can most reliably load textures from .obj files.

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [March 22, 2021, 2:05pm UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675/7 "2021-03-22T14:05:00Z")

</div>

If you are using SlicerDMRI to generate and save the tracts then you probably need to change from RAS to LPS (just negate the first two coordinates). Tractography .vtk files are always in RAS (as are any tensors stored with them) while models now default to LPS.

> <https://github.com/SlicerDMRI/SlicerDMRI/commit/ecbb45593c276f5e0f501b8284521d84cb314215>

---

<div class="post-metadata">

### Author: ![slicer365](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/slicer365/32/67549_2.png) [@slicer365](https://discourse.slicer.org/u/slicer365)
#### Post date: [March 22, 2021, 3:13pm UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675/8 "2021-03-22T15:13:00Z")

</div>

Thank you Professor Steve Pieper,you are right！I solved the problem with your help！

---

<div class="post-metadata">

### Author: ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)
#### Post date: [March 22, 2021, 3:57pm UTC](https://discourse.slicer.org/t/how-to-render-the-model-by-an-image/16675/9 "2021-03-22T15:57:56Z")

</div>

Excellent, best of luck!
