Mirror Mire v1.1

Mirror Mire v1.1

Postby Pixel Eater » Wed Jan 03, 2018 6:15 pm

MirrorMireLite1.1.pk3
(179.83 KiB) Downloaded 160 times
V1.1 fixes a bug where looking down made the liquid brighter, rewords the Angle setting and sets it to On as default (existing users will need to manually enable it though).

Reflective water for GZDoom:
Preview.jpg
Preview2.jpg
Created with help from GiveOneMoreChance :cheers: Check out their mod's screenshots!
Last edited by Pixel Eater on Mon Jan 08, 2018 7:43 am, edited 3 times in total.
User avatar
Pixel Eater
In my thoughts I have seen rings of smoke through the trees.
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire

Postby Gutawer » Wed Jan 03, 2018 7:46 pm

Not meaning to be rude, but this really doesn't look right. You can't just flip the screen upside down and sample from that point, on the flipped screen, light doesn't work that way, as can be seen in your second screenshot where the non-reflected cobble wall is way taller than the reflected one - with actual light, both would appear the same height to the player. I think the way screen-space reflection is traditionally done is to raycast based on the point on screen that's being rendered (you need the inverse projection matrix for this) and reflect along the surface normal, stepping the resultant vec3 until it intersects the depth buffer (this is the resultant point). Then, you take the color value based off the depth buffer, and use that as the reflected point. Needless to say, that's vastly more complex than a simple flip down the middle - and even this method has issues when the reflected ray hits off the screen, so to speak, making it impossible to actually sample a value. If you're interested, this looks like a good resource from a quick glance - http://roar11.com/2015/07/screen-space-glossy-reflections/

And, regardless, none of this data is even available currently with the shader system. I think it's a nice idea, but this certainly isn't a particularly great way to do it, not that I can really blame you - more engine support would be needed to fully achieve this.
User avatar
Gutawer
User Accounts Assistant
 
Joined: 16 Apr 2016
Discord: Gutawer#3431

Re: Mirror Mire

Postby Pixel Eater » Wed Jan 03, 2018 8:11 pm

I'm aware it isn't an accurate effect and I have a CPU hungry version in the pipeline that addresses some of that (that's why this one's called Mirror Mire 'Lite'). Consider this an atmospheric effect which you ignore while you play.
And I agree a shader most likely can't be as effective as a hard-coded attempt but people were asking if it could be done this way and I grew curious too :wink:
One thing that could help it look right is if there were a way to remove the bobbing?

Oh here's a preview of the progress for Mirror Mire (Deluxe? :glare: ):
Preview3.jpg
And well, it's not true 3D but it's something.
User avatar
Pixel Eater
In my thoughts I have seen rings of smoke through the trees.
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Postby doomfiend » Sun Jun 17, 2018 1:45 am

I love the look of this especially that image with the lava but unfortunately with the latest GZDoom svn it crashes on any map with liquids
User avatar
doomfiend
 
Joined: 27 Aug 2006
Location: some where

Re: Mirror Mire v1.1

Postby Pixel Eater » Sun Jun 17, 2018 3:18 am

Sorry Doomfiend, I've toggled around a bunch of graphics settings and I still can't get it to crash. Are they vanilla maps you're trying?
User avatar
Pixel Eater
In my thoughts I have seen rings of smoke through the trees.
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Postby doomfiend » Sun Jun 17, 2018 10:30 pm

Vanilla maps indeed, it must have been that particular build of GZDoom i was using as prior to updating it had a hom effect, and updating caused it to crash. what I might do is Go in my ini file and delete the settings I had adjusted,

Spoiler:


Currently the issue I am having
Edit:
Rolled back to the June 07 (x64) and it seems to work again, but theres this odd Blue line on the edges of the walls when I get close, Setting active effect to No / Off will make the entire texture a solid blue / Green? Not sure what thats about lol
User avatar
doomfiend
 
Joined: 27 Aug 2006
Location: some where

Re: Mirror Mire v1.1

Postby Pixel Eater » Sun Jun 17, 2018 11:13 pm

Thanks for the bug report, if I understand correctly I was using an integer instead of a floating point number. See if the attached file fixes it?

The bright green when you disable it is normal, it's just the chroma-keying texture. The ability to toggle it was really only for my own testing.
Attachments
MirrorMireLite1.1_fixA.pk3
(179.83 KiB) Downloaded 41 times
User avatar
Pixel Eater
In my thoughts I have seen rings of smoke through the trees.
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Postby doomfiend » Mon Jun 18, 2018 9:52 pm

ah okay, when I meant like the Green texture it would bleed out a bit on the edges, your images do not show this defect. also at the time the liquids would blink especially acid, I'll give this a go on the latest svn and see if it works as intended, thanks for the effort bud
User avatar
doomfiend
 
Joined: 27 Aug 2006
Location: some where

Re: Mirror Mire v1.1

Postby Pixel Eater » Mon Jun 18, 2018 10:29 pm

doomfiend wrote:ah okay, when I meant like the Green texture it would bleed out a bit on the edges, your images do not show this defect. also at the time the liquids would blink especially acid, I'll give this a go on the latest svn and see if it works as intended, thanks for the effort bud

The edges bleeding is most likely from having Multisample on, FXAA on low should work better hopefully. I'd like to know more about this blinking if you can though! :?
User avatar
Pixel Eater
In my thoughts I have seen rings of smoke through the trees.
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Postby doomfiend » Tue Jun 19, 2018 4:25 am

the blinking was due to a specific build i was using. I used the june 18 build and all issues were resolved with the fix you released.
User avatar
doomfiend
 
Joined: 27 Aug 2006
Location: some where

Re: Mirror Mire v1.1

Postby Pixel Eater » Tue Jun 19, 2018 5:06 am

Oh nice! Thanks for the info Doomfiend :)
User avatar
Pixel Eater
In my thoughts I have seen rings of smoke through the trees.
 
 
 
Joined: 02 Aug 2017
Location: In between the Moon and you, between the buried and me.


Return to Shaders

Who is online

Users browsing this forum: No registered users and 1 guest