# Volume rendering shows solid black cube only

**URL:** <https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272>\
**Category:** Support\
**Tags:** volume-rendering\
**Created:** [October 3, 2018, 2:10pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272 "2018-10-03T14:10:45Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthony\_Evlambiou](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Anthony\_Evlambiou](https://discourse.slicer.org/u/Anthony_Evlambiou)\
**Post date:** [October 3, 2018, 2:10pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/1 "2018-10-03T14:10:45Z")

</div>

Hello,

I have a quick question as I am new to slicer and it might just be a simple error.

I have created a stack of tiff files and managed to load them onto slicer and then adjust the image spacing so that there a full picture from each view.

The problem comes in when I want to create a volume rendering to show the bones of the specimens in the scan. When I click on the ‘eye’ button to view the volume rendering all I get is a solid black cube and nothing of what is in the scan.

I have tried adjusting the threshold and the shift but to no avail. It still only shows black. No bones. I also tried different presets to get the bones to show with no luck again.

I first tested myself on one of the samples that I could download (the chest cavity) and I managed to do that just fine. Everything worked perfectly.

Could you please advise on where I could be going wrong.

Thank you an much appreciated. 🙂

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 3, 2018, 2:25pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/2 "2018-10-03T14:25:57Z")

</div>

I’d try selecting different presets and then play with the shift slider.

What’s the scalar range of your images?

---

<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:** [October 3, 2018, 2:30pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/3 "2018-10-03T14:30:32Z")

</div>

Tiff files might contain vector (RGB color) images that you need to convert to grayscale (single-component scalar) volume. See details here: [https://www.slicer.org/wiki/Documentation/Nightly/Modules/VolumeRendering#Module\_Description](https://www.slicer.org/wiki/Documentation/Nightly/Modules/VolumeRendering#Module_Description)

---

<div class="post-metadata">

**Author:** ![Anthony\_Evlambiou](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Anthony\_Evlambiou](https://discourse.slicer.org/u/Anthony_Evlambiou)\
**Post date:** [October 3, 2018, 3:50pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/4 "2018-10-03T15:50:56Z")

</div>

Thanks. So I tried the different presets and the shift slider. Still no luck.

I am not sure where to check the scalar ranges. Sorry, like I said I am very new to all of this.

---

<div class="post-metadata">

**Author:** ![Anthony\_Evlambiou](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Anthony\_Evlambiou](https://discourse.slicer.org/u/Anthony_Evlambiou)\
**Post date:** [October 3, 2018, 3:53pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/5 "2018-10-03T15:53:47Z")

</div>

Thanks. I had a look and it says my files are scalar and grey scale.

The one thing I did notice between the sample and my files when looking at the three different views…for the sample when I move the slider it cuts through the sample like it shows one slice at a time. When I move the slider on my files it rotates the whole image and does not cut through. I hope that makes sense.

Not sure if that means anything but thought I would mention it.

---

<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:** [October 3, 2018, 4:22pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/6 "2018-10-03T16:22:35Z")

</div>

If you can share example images or screenshots it might help.

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 3, 2018, 5:42pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/7 "2018-10-03T17:42:54Z")

</div>

You can check volume properties like scalar range and number of components in the Volumes module. When you make the screenshot if you make sure the Volumes module is open and the content of the Volume Information panel is visible, that would be great.

---

<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:** [October 3, 2018, 10:40pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/8 "2018-10-03T22:40:57Z")

</div>

You can also check in Volumes module that you have loaded a 3D volume and not just a single image slice.

---

<div class="post-metadata">

**Author:** ![Anthony\_Evlambiou](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Anthony\_Evlambiou](https://discourse.slicer.org/u/Anthony_Evlambiou)\
**Post date:** [October 4, 2018, 7:02am UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/9 "2018-10-04T07:02:17Z")

</div>

Thanks Everyone,

I really appreciate the effort you guys are going through to help.

Below is a screen shot of what I get

 ![screenshot](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/b/e/befa4ed9282ba0d9998a52e297c251afc83fa458.png)

---

<div class="post-metadata">

**Author:** ![rkikinis](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rkikinis/32/791_2.png) [@rkikinis](https://discourse.slicer.org/u/rkikinis)\
**Post date:** [October 4, 2018, 7:55am UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/10 "2018-10-04T07:55:35Z")

</div>

Hi,

the picture shows a dark structure embedded in a white structure. You will need to modify the transfer function in the volume rendering module to have low values opaque and high values transparent. The default transfer function has low opacity in low signal intensity and high opacity in high signal intensity. You might also want to assign different colors to low and high signal intensity as opposed to black and white.

The crop function in the volume renderer might allow you to peek into the current cube where you might be able to see your snakes as dark tunnels.

Best

Ron

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 4, 2018, 12:53pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/11 "2018-10-04T12:53:16Z")

</div>

Also what I see in the slice views seems to be off, like when the images are loaded from raw data with the wrong height/width values. Are your original tiff files different from what you get in the axial view?

---

<div class="post-metadata">

**Author:** ![Anthony\_Evlambiou](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Anthony\_Evlambiou](https://discourse.slicer.org/u/Anthony_Evlambiou)\
**Post date:** [October 4, 2018, 1:25pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/12 "2018-10-04T13:25:09Z")

</div>

The scans were done with a microCT scanner. The raw data files seem to be the same as the axial view. There were about 2800 files of which I built the stack using every fifth image. As I move the axial slider it rotates the image around and does not show the slices through.

The screenshot below is what I get after I load the data and click on the volume module so you can see the details there.

 ![Straight%20after%20loading](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/4/2/42ae8a9d116a5bfe33f5907f5a9c36e5fa4523fa.png)

---

<div class="post-metadata">

**Author:** ![cpinter](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/cpinter/32/7995_2.png) [@cpinter](https://discourse.slicer.org/u/cpinter)\
**Post date:** [October 4, 2018, 1:29pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/13 "2018-10-04T13:29:46Z")

</div>

I really don’t understand the rotation part. Are you sure the projections have been reconstructed into a volume?

---

<div class="post-metadata">

**Author:** ![Anthony\_Evlambiou](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Anthony\_Evlambiou](https://discourse.slicer.org/u/Anthony_Evlambiou)\
**Post date:** [October 4, 2018, 1:34pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/14 "2018-10-04T13:34:04Z")

</div>

I tried fiddling with the shift and the scaler opacity mapping with no luck.  
I am not actually sure how to change the transfer function as I do not see its heading anywhere.

Is there a link to a step process I could follow perhaps?

Thank you again.

---

<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:** [October 4, 2018, 1:35pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/15 "2018-10-04T13:35:08Z")

</div>

It looks like the image is not a Cartesian 3D volume but a [sinogram](https://en.wikipedia.org/wiki/Tomographic_reconstruction). You need to run these images through filtered backprojection or similar reconstruction method to get a 3D volume that you can load into Slicer.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 4, 2018, 1:53pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/16 "2018-10-04T13:53:44Z")

</div>

The Z image spacing here is only 1mm - is that correct? Looks like it should be 25mm like X and Y?

---

<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:** [October 4, 2018, 2:02pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/17 "2018-10-04T14:02:16Z")

</div>

> [@hherhold](#):
>
> The Z image spacing here is only 1mm - is that correct?

The data set is just a series of 560 projection images, from different angles as the gantry rotates around the object. There is no Z image spacing, because it is not a Cartesian volume.

If the scanner is a commercial product then it must have 3D reconstruction feature built in. @Anthony_Evlambiou should simply load the correct data set - the 3D reconstructed volume - into Slicer instead of loading a series of projections.

---

<div class="post-metadata">

**Author:** ![Anthony\_Evlambiou](https://avatars.discourse-cdn.com/v4/letter/a/db5fbb/32.png) [@Anthony\_Evlambiou](https://discourse.slicer.org/u/Anthony_Evlambiou)\
**Post date:** [October 4, 2018, 2:17pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/18 "2018-10-04T14:17:24Z")

</div>

These were the steps I followed to load my tiff files:

1. Choose from the menu: _File_ / _Add Data_
2. Click _Choose File(s) to Add_ button and select any of the files in the sequence in the displayed dialog
3. Click on _Show Options_ and uncheck the _Single File_ option
4. Click _OK_ to load the volume
5. Go to the _Volumes_ module
6. Choose the loaded image as _Active Volume_
7. In the _Volume Information_ section set the correct _Image Spacing_ and _Image Origin_ values

Thanks again to everyone for all the help.  
I will keep at it and keep trying the advice you are giving.

---

<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:** [October 4, 2018, 2:30pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/19 "2018-10-04T14:30:10Z")

</div>

Hi @Anthony_Evlambiou, just to reiterate @lassoan’s point, you are doing everything correctly in Slicer but need to reconstruct the volume from the projections before you can proceed. Probably easiest to do this on the scanner that produced the images.

---

<div class="post-metadata">

**Author:** ![hherhold](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/hherhold/32/12199_2.png) [@hherhold](https://discourse.slicer.org/u/hherhold)\
**Post date:** [October 4, 2018, 2:31pm UTC](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272/20 "2018-10-04T14:31:02Z")

</div>

I thought it looked pretty characteristic of a sinogram, but I wondered if it just looked strange from having incorrect spacing.

Just out of curiosity, does anyone use itk/vtk-based open-source based reconstruction software?

[Next page](https://discourse.slicer.org/t/volume-rendering-shows-solid-black-cube-only/4272.md?page=2)
