Welcome to Fractal Forums

Fractal Software => Fragmentarium => Topic started by: Crist-JRoger on September 05, 2017, 03:31:58 PM




Title: SunSky with 3DKn-1.0.1.frag for advanced DoF
Post by: Crist-JRoger on September 05, 2017, 03:31:58 PM
SunSky is very realistic renderer, so i tried combine some things from GI, DE-Kn to SunSky. Advanced DoF really cool, that will be great if SunSky will have this option.
So, direct transfer of code not working. Need "enable brain" and thinking  O0
1st is original SunSky with 3D.frag
2nd is hacked-broren by me with 3DKn-1.0.1.frag

Attached zip. Is anybody could take a look?


Title: Re: SunSky with 3DKn-1.0.1.frag for advanced DoF
Post by: M Benesi on September 05, 2017, 05:49:34 PM
If I had the time... :  D

  Hi!


Title: Re: SunSky with 3DKn-1.0.1.frag for advanced DoF
Post by: Crist-JRoger on September 12, 2017, 03:59:05 PM
Okay, I'm glad for any help  ;D
For now I added simple fog  :joy: :pray2: thanks God!  :worm:


Title: Re: SunSky with 3DKn-1.0.1.frag for advanced DoF
Post by: Crist-JRoger on September 13, 2017, 06:31:19 AM
Here frags. Changes in SunSky:
- added WangHash;
- added MaxDepth slider;
- Env tab with background parameters;
- Simple fog with own color, dreadful  ;D but it gives some density of air;
- added SoftShadows slider;
- Material tab with Mat_ReflExp parameter;
- #define USE_TEXTURE for texturing, 3 types: texcube, two twxtures for different normals, equirectangularMap;
- added texturerepetition mode by IQ ;
- added floor with own color;
- fixed black/white dots when increase Detail or raysteps;
- 3D.frag with bloom.



Title: Re: SunSky with 3DKn-1.0.1.frag for advanced DoF
Post by: Crist-JRoger on September 13, 2017, 12:16:46 PM
Ops, I find bug with floor. Fixed  :embarrass:

Got this when replced pos.z+Slope*height(pos) to pos.z+Slope*pow(height(pos),var); in terrain shader:

(https://orig00.deviantart.net/5870/f/2017/256/d/f/mountain_and_river_by_c_jr-dbn9vw8.png)
fragments (https://sta.sh/023y0439t3gv)


Title: Re: SunSky with 3DKn-1.0.1.frag for advanced DoF
Post by: Tim Emit on September 19, 2017, 07:46:51 PM
very liking the look of the fog images and this.. will take a look : ) thanks as ever