# VRay Volumetric Fog

**URL:** <https://forums.chaos.com/t/vray-volumetric-fog/54229>\
**Category:** Issues\
**Tags:** vrayenvironmentfog\
**Created:** [June 16, 2015, 9:03pm UTC](https://forums.chaos.com/t/vray-volumetric-fog/54229 "2015-06-16T21:03:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![joelly3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joelly3d/32/49391_2.png) [@joelly3d](https://forums.chaos.com/u/joelly3d)\
**Post date:** [June 16, 2015, 9:03pm UTC](https://forums.chaos.com/t/vray-volumetric-fog/54229/1 "2015-06-16T21:03:09Z")

</div>

I have an object being used as a volumetric fog gizmo and I cannot get the fog color or density to be mapped to a gradient. Expected behavior would be that it would inherit the texture from the source object. I realize this may not be the case because fog has no UV’s and would need a procedural texture. Even when using something like a vraydistancetex or a falloff on object mode like the doc here states [Chaos Docs](http://docs.chaosgroup.com/display/VRAY3/VRayEnvironmentFog#)… it doesn’t seem to work. I want to be able to fade out the fog with a gradient ultimately, but I can’t control the location of a world XYZ gradient predictably. I figured an gizmo based fader makes the most sense, but it is not working. Any suggestions?

max 2015 3.10.03

---

<div class="post-metadata">

**Author:** ![davision](https://avatars.discourse-cdn.com/v4/letter/d/a8b319/32.png) [@davision](https://forums.chaos.com/u/davision)\
**Post date:** [June 17, 2015, 12:42am UTC](https://forums.chaos.com/t/vray-volumetric-fog/54229/2 "2015-06-17T00:42:15Z")

</div>

Maybe you should post a sample scene?

I just tried using DistanceTex to control the fog color and it worked fine. See screenshot attached. The DistanceTex is keying off the red sphere.

Using the DistanceTex with black/white colors in density also works.

 ![vray fog distance tex example.JPG](https://europe1.discourse-cdn.com/chaosprd/original/3X/5/b/5bfeb979bbb47a701058c56990004875c8c37db2.jpeg)

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 17, 2015, 7:00am UTC](https://forums.chaos.com/t/vray-volumetric-fog/54229/3 "2015-06-17T07:00:51Z")

</div>

The distance texture might be a bit of an overkill for that purpose, a Falloff map in distance blend mode could be faster.

Best regards,  
Vlado

---

<div class="post-metadata">

**Author:** ![joelly3d](https://dub1.discourse-cdn.com/chaosprd/user_avatar/forums.chaos.com/joelly3d/32/49391_2.png) [@joelly3d](https://forums.chaos.com/u/joelly3d)\
**Post date:** [June 18, 2015, 2:13pm UTC](https://forums.chaos.com/t/vray-volumetric-fog/54229/4 "2015-06-18T14:13:37Z")

</div>

Found my issue. It was a Cylider Gizmo, it doesn’t seem to work with that for some reason.

---

<div class="post-metadata">

**Author:** ![vlado](https://avatars.discourse-cdn.com/v4/letter/v/779978/32.png) [@vlado](https://forums.chaos.com/u/vlado)\
**Post date:** [June 18, 2015, 3:11pm UTC](https://forums.chaos.com/t/vray-volumetric-fog/54229/5 "2015-06-18T15:11:51Z")

</div>

Can you post a scene like this, just to check what may be wrong?

Best regards,  
Vlado
