Jump to content

  • Log In with Google      Sign In   
  • Create Account


Texture2D from volumetrics effects, missing depth


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
No replies to this topic

#1 chrisendymion   Members   -  Reputation: 169

Like
0Likes
Like

Posted 03 January 2014 - 03:18 AM

Hello ;)
 
For my little graphical engine, I'm trying to add some volumetrics effects (like clouds). 
For that, I filled all the viewing frustum with a 3D Texture (with 128 slices at low res).
Noise is applied on every slice and a final pass is used for compute all the slices into one texture 2D.
The final texture is applied on top of the scene (full screen quad) with alpha blending.
 
Volumetric clouds are working very well ! I'm happy for that ;)
 
But now, I have an another problem. As the final texture 2d didn't have depth informations, my clouds are overlapping the world.
Don't know how to say (and my english is bad). Imagine far away clouds, but close mountains appear behind the clouds (must be inversed).
Some clouds need to be between mountains and camera, and some other, behind mountains, depending on their distances.
I tested with a depth map (from camera) of the world, used when the noise is applied, but cannot get it to works.. 
 
Any idea how to achieve this or the depth map is my only solution ?
 
I'm working with DirectX 11 (C++).
 
Thank you and a happy new year !
 
Chris
 


Sponsor:



Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS