# is there any way to output the depthTexture of the volumeMapper while rendering the volume but not renderToImageOn?

**URL:** https://discourse.vtk.org/t/is-there-any-way-to-output-the-depthtexture-of-the-volumemapper-while-rendering-the-volume-but-not-rendertoimageon/12178
**Category:** Support
**Created:** [August 22, 2023, 10:14am UTC](https://discourse.vtk.org/t/is-there-any-way-to-output-the-depthtexture-of-the-volumemapper-while-rendering-the-volume-but-not-rendertoimageon/12178 "2023-08-22T10:14:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![gpu](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/g/e47c2d/32.png) [@gpu](https://discourse.vtk.org/u/gpu)
#### Post date: [August 22, 2023, 10:14am UTC](https://discourse.vtk.org/t/is-there-any-way-to-output-the-depthtexture-of-the-volumemapper-while-rendering-the-volume-but-not-rendertoimageon/12178/1 "2023-08-22T10:14:56Z")

</div>

is there any way to output the depthTexture of the volumeMapper while rendering the volume but not renderToImageOn?  
Thanks

---

<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: [August 22, 2023, 11:57am UTC](https://discourse.vtk.org/t/is-there-any-way-to-output-the-depthtexture-of-the-volumemapper-while-rendering-the-volume-but-not-rendertoimageon/12178/2 "2023-08-22T11:57:13Z")

</div>

You could attach a frame buffer object to the window and render to it similar to what `RenderToImage` does.
