Damn, I really love this fog:
http://imgur.com/a/iiSCm
I think I should try it with some mods next
[patch] new fog shader
Re: [patch] new fog shader
Is that anti-aliasing I see? <3 <3 <3
Re: [patch] new fog shader
Of courseraevol wrote:Is that anti-aliasing I see? <3 <3 <3
I can't play at those settings though, just for screenshots
Re: [patch] new fog shader
distand land 20-30k works kinda good and with vurt trees and texture mods + some others
and speak of the devil posted on this to bethsoft background fog discussion.
http://forums.bethsoft.com/topic/151336 ... placement/
sorry for ahead
and speak of the devil posted on this to bethsoft background fog discussion.
http://forums.bethsoft.com/topic/151336 ... placement/
sorry for ahead
Re: [patch] new fog shader
I've ported it to the current version.
Unfortunately the performance impact seems to be bigger than on the ogre version - on my system at least (intel haswell igp).
Bugs: The height based fog looks wrong in water reflections because the scene is rendered upside down.
Also the sky might look odd because the fog isn't applied to it.
My whishlist:
Defines that indicate whether reflection or refraction are being rendered.
Enable shaders for sky and horizon.
For the water shader to work this also needs
Unfortunately the performance impact seems to be bigger than on the ogre version - on my system at least (intel haswell igp).
Bugs: The height based fog looks wrong in water reflections because the scene is rendered upside down.
Also the sky might look odd because the fog isn't applied to it.
My whishlist:
Defines that indicate whether reflection or refraction are being rendered.
Enable shaders for sky and horizon.
For the water shader to work this also needs
- Attachments
-
- fog-shader-osg.zip
- (8.3 KiB) Downloaded 484 times
-
- fog-shader-osg.patch
- (12.01 KiB) Downloaded 414 times
Last edited by visvaldas on 15 Mar 2016, 11:04, edited 1 time in total.
- lgromanowski
- Site Admin
- Posts: 1193
- Joined: 05 Aug 2011, 22:21
- Location: Wroclaw, Poland
- Contact:
Re: [patch] new fog shader
Hi,
could you please post a few screenshots of new shader ported to OSG?
could you please post a few screenshots of new shader ported to OSG?
- psi29a
- Posts: 5361
- Joined: 29 Sep 2011, 10:13
- Location: Belgium
- Gitlab profile: https://gitlab.com/psi29a/
- Contact:
Re: [patch] new fog shader
@visvaldas: make a pull request on github instead of posting patches here. it is easier to review and give comments there.
Re: [patch] new fog shader
There you golgromanowski wrote:Hi,
could you please post a few screenshots of new shader ported to OSG?
Will do, I just need to setup an account first.psi29a wrote:@visvaldas: make a pull request on github instead of posting patches here. it is easier to review and give comments there.
Currently there are a number of hardcoded values - my idea for making them dynamic without requiring custom c++:
Make variables like fog/atmosphere color visible to scripts (if they aren't already).
Add a script command for setting arbitrary shader variables.
Run a script on every weather change which computes and sets the shader variables.
Edit: Hmm, it seems that vanilla mw script doesn't support structures/arrays so that might a bit cumbersome.
Re: [patch] new fog shader
It looks so amazing! I want this!