# glFog or depth cueing

**URL:** https://discourse.vtk.org/t/glfog-or-depth-cueing/1566
**Category:** Support
**Created:** [August 12, 2019, 11:21pm UTC](https://discourse.vtk.org/t/glfog-or-depth-cueing/1566 "2019-08-12T23:21:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![fcollman](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/f/edb3f5/32.png) [@fcollman](https://discourse.vtk.org/u/fcollman)
#### Post date: [August 12, 2019, 11:21pm UTC](https://discourse.vtk.org/t/glfog-or-depth-cueing/1566/1 "2019-08-12T23:21:44Z")

</div>

I couldn’t figure out how in vtk to get a rendering effect like ‘fog’ where things fade as they get farther away from the camera. This is sometimes called ‘depth cueing’ such as in this product…  
[http://docs.pixologic.com/reference-guide/render/depth-cue/](http://docs.pixologic.com/reference-guide/render/depth-cue/)

or this one

> **[To Set Fog / Depth Cueing | AutoCAD for Mac 2016 | Autodesk Knowledge Network](https://knowledge.autodesk.com/support/autocad-for-mac/learn-explore/caas/CloudHelp/cloudhelp/2016/ENU/AutoCAD-MAC-Core/files/GUID-16D2BE96-EFC6-4FB5-BB29-32A0AAED5F18-htm.html)**
>
> Select a camera and open its Property Inspector. Turn on its front or back clipping plane. Set the clipping plane offset value. Click View \> Render \> Render Environment. Turn on Enable Fog and set the color of the fog or depth cueing. Light colors...

Could someone point me to the api steps that would be used to reproduce this effect or access the glFog opengl extension that creates this via vtk?

---

<div class="post-metadata">

### Author: ![lassoan](https://discourse.vtk.org/user_avatar/discourse.vtk.org/lassoan/32/50_2.png) [@lassoan](https://discourse.vtk.org/u/lassoan)
#### Post date: [August 13, 2019, 1:15am UTC](https://discourse.vtk.org/t/glfog-or-depth-cueing/1566/2 "2019-08-13T01:15:31Z")

</div>

It may be an overkill, but you can actually render volumetric fog by adding a volume rendered actor to the renderer.
