[patch] new fog shader

Everything about development and the OpenMW source code.
User avatar
nnayo
Posts: 72
Joined: 25 Feb 2013, 15:05
Location: Cannes, France

Re: [patch] new fog shader

Post by nnayo »

:shock: yes, that's really beautiful!
please merge it to main branch
User avatar
PeterBitt
Posts: 144
Joined: 25 Mar 2013, 18:49
Location: Berlin
Contact:

Re: [patch] new fog shader

Post by PeterBitt »

Wow! This is absolutely amazing!
How does one install this .patch file?
User avatar
sjek
Posts: 442
Joined: 22 Nov 2014, 10:51

Re: [patch] new fog shader

Post by sjek »

well..... bleeding edge way

viewtopic.php?f=8&t=2720

recommend clean install and following guide kinda exactly...
(still don't know how somebody can do that but it's possible)

with tortoisegit opening that patch and file --> apply patch. to pulled / downloaded source directory
User avatar
scrawl
Posts: 2152
Joined: 18 Feb 2012, 11:51

Re: [patch] new fog shader

Post by scrawl »

If someone were to move all of the calculations to the shader, which shouldn't be too difficult, then you could just drop it into your resource folder and have it work without recompiling the game, just like a normal mod.

I don't see a point in merging this to master now. We are unlikely to have another release before the OSG branch gets merged, at which point this work would become obsoleted. As for porting the fog shader to the OSG branch, way too early for that because we don't have any shaders yet.
visvaldas
Posts: 35
Joined: 24 May 2015, 20:31

Re: [patch] new fog shader

Post by visvaldas »

scrawl wrote:If someone were to move all of the calculations to the shader, which shouldn't be too difficult, then you could just drop it into your resource folder and have it work without recompiling the game, just like a normal mod.
Done. :mrgreen:
Since this version takes no density parameter from the engine you have to manually edit the parameters at the beginning of fog.h to change the density etc.
You also may need to empty your openmw cache directory (~/.cache/openmw on my system) for the changes to take effect.
User avatar
jirka642
Posts: 117
Joined: 23 Aug 2014, 11:39
Location: Czech Republic
Contact:

Re: [patch] new fog shader

Post by jirka642 »

Wow, thanks it seriously looks awesome.

http://a.pomf.se/yggajb.png
http://a.pomf.se/fbozxq.png

Also, for people like me that didn't know:
- You need to extract the shaders not to datafiles folder but to resource folder!
- On my Linux PC is correct folder located in /usr/share/games/openmw/resources/materials/ , but it can be at the same place as your openmw executable depending on how you installed openmw.
- You also need to set "distant land = true" and make "viewing distance" bigger in settings.cfg. (I set it to 460000)
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: [patch] new fog shader

Post by psi29a »

Talk about atmosphere, love it!
User avatar
dEnigma
Posts: 248
Joined: 24 Nov 2013, 21:24
Location: Hla Oad

Re: [patch] new fog shader

Post by dEnigma »

This looks amazing, maybe it's time for me to test OpenMW again ;)
User avatar
lgromanowski
Site Admin
Posts: 1193
Joined: 05 Aug 2011, 22:21
Location: Wroclaw, Poland
Contact:

Re: [patch] new fog shader

Post by lgromanowski »

Wow, it's amazing! :D
User avatar
psi29a
Posts: 5361
Joined: 29 Sep 2011, 10:13
Location: Belgium
Gitlab profile: https://gitlab.com/psi29a/
Contact:

Re: [patch] new fog shader

Post by psi29a »

This gets my vote to automatic inclusion into default OpenMW...

(even though it is perfectly fine as a drop-in mod as well.)
Post Reply