Mirror Mire

Forum rules
The Projects forums are only for projects. If you are asking questions about a project, either find that project's thread, or start a thread in the General section instead.

Got a cool project idea but nothing else? Put it in the project ideas thread instead!

Projects for any Doom-based engine (especially 3DGE) are perfectly acceptable here too.

Please read the full rules for more details.
User avatar
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Mirror Mire

Post by Pixel Eater »

MirrorMireLite1.2.pk3
(179.83 KiB) Downloaded 1014 times
Reflective water for GZDoom:

Created with help from GiveOneMoreChance :cheers: Check out their mod's screenshots!
Spoiler: Previous version
Last edited by Pixel Eater on Sat Sep 01, 2018 3:27 am, edited 4 times in total.
User avatar
Gutawer
Posts: 469
Joined: Sat Apr 16, 2016 6:01 am
Preferred Pronouns: She/Her

Re: Mirror Mire

Post by Gutawer »

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- ... flections/

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
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire

Post by Pixel Eater »

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
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

Re: Mirror Mire v1.1

Post by doomfiend »

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
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Post by Pixel Eater »

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
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

Re: Mirror Mire v1.1

Post by doomfiend »

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
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Post by Pixel Eater »

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 274 times
User avatar
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

Re: Mirror Mire v1.1

Post by doomfiend »

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
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Post by Pixel Eater »

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
doomfiend
Posts: 526
Joined: Sun Aug 27, 2006 6:10 am
Location: some where

Re: Mirror Mire v1.1

Post by doomfiend »

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
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Post by Pixel Eater »

Oh nice! Thanks for the info Doomfiend :)
Xtor98
Posts: 36
Joined: Tue Aug 02, 2016 12:41 am
Graphics Processor: ATI/AMD with Vulkan/Metal Support
Location: UAC

Re: Mirror Mire v1.1

Post by Xtor98 »

Doesn't work with GZDoom 3.5.1.
Spoiler:
User avatar
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire v1.1

Post by Pixel Eater »

Ah, I never put the fixed version in the OP, sorry about that. Unless that's the one you're using?
User avatar
Enjay
 
 
Posts: 26508
Joined: Tue Jul 15, 2003 4:58 pm
Location: Scotland
Contact:

Re: Mirror Mire

Post by Enjay »

doomfiend wrote:ah okay, when I meant like the Green texture it would bleed out a bit on the edges
You mean this?


That's it with AA on. If I switch it off, I get a very thin green border (1 pixel wide as screen resolution values, not game-world 1 unit) but it's still there.



Sorry that they are jpgs (which blurs the effect a bit too much in the second pic) I couldn't get imgur to accept the full size png screenshots.

Ver 1.1 on 3.5.1 with GTX1080, up to date drivers. [edit] same with 1.2 [/edit]
User avatar
Pixel Eater
 
 
Posts: 667
Joined: Wed Aug 02, 2017 12:31 am
Location: In between the Moon and you, between the buried and me.

Re: Mirror Mire

Post by Pixel Eater »

The green border can't be fixed so long as this mod uses chroma keying unfortunately. Turning off some of the advanced graphics settings is the only way to make it work. Unless something like this gets integrated.
Post Reply

Return to “Shaders”