# Zbuffer with Volume Rendering

**URL:** https://discourse.vtk.org/t/zbuffer-with-volume-rendering/2772
**Category:** Support
**Created:** [March 7, 2020, 2:20pm UTC](https://discourse.vtk.org/t/zbuffer-with-volume-rendering/2772 "2020-03-07T14:20:37Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sankhesh](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sankhesh/32/73_2.png) [@sankhesh](https://discourse.vtk.org/u/sankhesh)
#### Post date: [March 9, 2020, 4:08pm UTC](https://discourse.vtk.org/t/zbuffer-with-volume-rendering/2772/2 "2020-03-09T16:08:35Z")

</div>

The volume mapper just writes the bounding polygon to the Z buffer. To access true depth data of raycasting, enable `RenderToImage` and once rendering is complete, access the color and depth data using `GetColorImage` / `GetDepthImage` methods.

---

_[View the full topic](https://discourse.vtk.org/t/zbuffer-with-volume-rendering/2772)._
