|
|
real Depth of Field Shader for A6 Com/Pro
#123322
04/12/07 13:10
04/12/07 13:10
|
Joined: Jun 2004
Posts: 655 to your left
BoH_Havoc
OP
User
|
OP
User
Joined: Jun 2004
Posts: 655
to your left
|
Alright here it is (finally ^^): A real Depth of Field shader for A6 Com/Pro First some screens to show what it does:    ---------> get it HERE <--------- This shader needs shader model 2. There also is a shader model 3 version included with 4 more taps resulting in a smoother look. Check test.wdl for more information and a step-by-step tutorial on how to use this shader. Specials thanks to: ello: for writing somewhere on the forums how to get the depth of a model through a vertex shader! xXxGuitar511: for helping me out with my view-dependent-material-change-script-thingy! Hope you like it! 
|
|
|
Re: real Depth of Field Shader for A6 Com/Pro
[Re: Drew]
#123324
04/12/07 15:29
04/12/07 15:29
|
Joined: Mar 2006
Posts: 2,758 Antwerp,Belgium
frazzle
Expert
|
Expert
Joined: Mar 2006
Posts: 2,758
Antwerp,Belgium
|
This is indeed a nice contribution !! I always liked DOF but to get a good result out of it, I have searched for quite a long time... untill today  Cheers Frazzle
Antec® Case Intel® X58 Chipset Intel® i7 975 Quad Core 8 GB RAM DDR3 SSD OCZ®-VERTEX2 3.5 x4 ; HD 600 GB NVIDIA® GeForce GTX 295 Memory 1795GB
|
|
|
Re: real Depth of Field Shader for A6 Com/Pro
[Re: frazzle]
#123325
04/12/07 16:18
04/12/07 16:18
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
I'll check it out later, but I already download it! I've got to check it out and see how you did it 
xXxGuitar511 - Programmer
|
|
|
Re: real Depth of Field Shader for A6 Com/Pro
[Re: TWO]
#123327
04/12/07 16:50
04/12/07 16:50
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
I was thinking of that as well, but I have no idea how to realize such a concept...
xXxGuitar511 - Programmer
|
|
|
Re: real Depth of Field Shader for A6 Com/Pro
[Re: xXxGuitar511]
#123328
04/12/07 17:43
04/12/07 17:43
|
Joined: Jun 2004
Posts: 655 to your left
BoH_Havoc
OP
User
|
OP
User
Joined: Jun 2004
Posts: 655
to your left
|
i don't think that this will work. Have a look at the depth output: nothing here to archive softshadows, as far as i can tell. However while creating the DoF shader i thought about another method to create softshadows. The idea is to change the shadow color to a color never used in game. An extreme green, blue or pink and then read this color out in a shader, blur it, blacken it and render it on top of the scene. Not really a clean method, but might work...well we'll see ^^
|
|
|
Re: real Depth of Field Shader for A6 Com/Pro
[Re: BoH_Havoc]
#123329
04/12/07 18:44
04/12/07 18:44
|
Joined: Mar 2006
Posts: 2,503 SC, United States
xXxGuitar511
Expert
|
Expert
Joined: Mar 2006
Posts: 2,503
SC, United States
|
Is there any way to apply a shader to the shadow material?
mat_shadow.alpha = 50;
Could you not use this same pointer to apply a shader? The answer is yes, but could you do anythign with a shader from there?
xXxGuitar511 - Programmer
|
|
|
Re: real Depth of Field Shader for A6 Com/Pro
[Re: Excessus]
#123331
04/13/07 03:59
04/13/07 03:59
|
Joined: Jan 2002
Posts: 1,276 trapped in a paper bag
Drew
Serious User
|
Serious User
Joined: Jan 2002
Posts: 1,276
trapped in a paper bag
|
This shader officially kicks *ss! I love it, took me sometime to realize that you had to set an object to action e diff...maybe because I was so psyched to have it I missed it  THANK YOU SO MUCH!
|
|
|
|