» Fog from Depthbuffer dx11
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Fog from Depthbuffer dx11

Credits: http://ploobs.com.br/


A TextureFX Fog that uses the Depthbuffer. Two techniques: Exponential and Exponential Squered

Happy Fogging!


Fog Depthbuffer dx11 V2.zip
04.03.16 [22:32 UTC] by tonfilm | 1337 downloads
v2 now respects alpha channel of input texture and fog color
Show 1 older revisions

Older Revisions

Fog Depthbuffer dx11.zip
17.07.14 [18:44 UTC] by tekcor | 861 downloads

lecloneur 17/07/2014 - 19:33

yes cool one :)

StiX 19/07/2014 - 16:49


robe 04/03/2016 - 21:46

Hello VVVVers,
I'm here trying to render with the Writer DX11 NRT...

I need .png with alpha channel
..Is there a way to avoid the Fog writing to the whole alpha of the texture?

tonfilm 04/03/2016 - 23:20

@robe its texture based, so it will output a fullscreen image as opposed to layers. so you need a texture with the correct alpha channel and overwrite the alpha after the fog... or you rewrite the shader to respect the alpha from the input texture if it has any alpha...

tonfilm 04/03/2016 - 23:33

@robe i've uploaded a new version that should work for you...

robe 05/03/2016 - 00:18

Thanks a ton, but the trick of the ColorChannel mapper doesn't really work in my case.

I need to write the Fog only on my meshes and not on the background of the renderer..
.. If you remember in DX9.. It was so easy when the FOG was a Renderstate..

tonfilm 05/03/2016 - 03:31

ok, in that case you need another fog method. but it should be somewhere around. writing a fog on geometry level is not so hard...

robe 05/03/2016 - 10:12

Ok tonfilm, I'm not so skilled in dx11, so for me it's even harder...

Could you or someone point me in the right direction? I searched everywhere in the forum, tryed another fog, but I really can't do this.

Thanks in advance.

tonfilm 05/03/2016 - 16:19

@robe have you checked this? https://vvvv.org/contribution/rastertek-dx11-v4-tutorials

robe 05/03/2016 - 19:05

Yes of course. Yesterday wasn't work at all, now IT'S WORKING...
How could it be possible!!??!??!

I'm using MrWiggle DX11, I suppose I need a Fog in post processing.
Or maybe I need the right skill to merge those shader.

Anyway Thanks a lot!
I think I'm the only one that use Fog in this forum... ajahahha

robe 08/03/2016 - 13:46

I decided to create a Forum Thread on this:

anonymous user login


~4d ago

joreg: Workshop on 20 06: All about Raymarching with FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-all-about-raymarching-with-fuse/

~8d ago

joreg: vvvv gamma 6.5 is out, see changelog: https://thegraybook.vvvv.org/changelog/6.x.html

~12d ago

joreg: Workshop on 13 06: All about signed distance fields in FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-all-about-signed-distance-fields-with-fuse/

~19d ago

joreg: Workshop on 06 06: All about noise Functions with FUSE, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-all-about-noise-functions-with-fuse/

~25d ago

joreg: Workshop on 29 05: Introduction to the core FUSE principles, signup here: https://thenodeinstitute.org/courses/ss24-vvvv-introduction-to-core-fuse-principles/

~1mth ago

joreg: Workshop on 23 05: Integrating Rhino 3D with vvvv, Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-integrating-rhino-3d-with-vvvv/

~1mth ago

joreg: Workshop on 16 05: Introduction to Shaders. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-introduction-to-shaders-in-vvvv/

~1mth ago

bjoern: hello, I am looking for a job / project starting june. get in touch via vvvv specialists available for hire

~2mth ago

joreg: Workshop on 09 05: Deepdive into the Stride 3D Engine. Signup here: https://thenodeinstitute.org/courses/ss24-vvvv-advanced-3d-rendering-in-vvvv-with-stride/