# any way to just render a vtkTextureObject in a viewport?

**URL:** <https://discourse.vtk.org/t/any-way-to-just-render-a-vtktextureobject-in-a-viewport/12191>\
**Category:** Support\
**Created:** [August 24, 2023, 2:06am UTC](https://discourse.vtk.org/t/any-way-to-just-render-a-vtktextureobject-in-a-viewport/12191 "2023-08-24T02:06:44Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jaswantp](https://discourse.vtk.org/user_avatar/discourse.vtk.org/jaswantp/32/10046_2.png) [@jaswantp](https://discourse.vtk.org/u/jaswantp)\
**Post date:** [August 26, 2023, 3:49pm UTC](https://discourse.vtk.org/t/any-way-to-just-render-a-vtktextureobject-in-a-viewport/12191/2 "2023-08-26T15:49:57Z")

</div>

Hello @gpu

The [vtkOpenGLRenderUtilities](https://vtk.org/doc/nightly/html/classvtkOpenGLRenderUtilities.html) class might offer assistance in this context. However, as I pointed out in your [other question](https://discourse.vtk.org/t/is-there-any-way-to-visualize-float-depthbuffer-in-vtk-copytoframebuffer-seems-cannot-work/12192), it’s significantly more straightforward to debug the depth buffer using developer tools like [Renderdoc](https://renderdoc.org/) rather than attempting to manage it within your code. Debugging depth buffer-related issues can be complex due to the need to handle diverse depth attachment formats, accessing the texture, configuring a sampler for the shader program to render the depth texture, and more.

---

_[View the full topic](https://discourse.vtk.org/t/any-way-to-just-render-a-vtktextureobject-in-a-viewport/12191)._
