smeghammer Posted May 14, 2021 (edited) I was playing with line portals, translucency and mirrors and came up with a nice reflective one way glass construct. I thought it looked really cool so I thought I'd share how I did it. Disclaimer: I map in DiHF, so there may be another way to do this in UDMF... Anyway: Essentially, I use a one-way portal to simulate the translucent side and a mirrored linedef to simulate the reflective side. Translucent linedefs are used in front of these to make it look more realistic. Summary: So, you create linedefs as close together as possible, flagged like so: OUTERMOST (mirrored side) a--------------------- 156 (line_setportal), 0,1,0,0 b--------------------- 208 (translucentline) midtex for glass (e.g. COMPBLUE), 0,120,0,0 (the colour we want our mirrored glass to be) c--------------------- 182 (line_mirror) No args, hence the 208 line in front... VOID HERE VOID HERE Void here cos we are not actually using a transparent sector... VOID HERE d--------------------- [no special, tex not important] e--------------------- 156 (line_setportal), 1,2,0,0. This is a portal to the one above, line 'a'. f--------------------- 208 (translucentline) midtex for glass (e.g. COMPBLUE), 0,120,0,0 (the colour we want our see through glass to be)INNERMOST (translucent side) Steps (In Eureka editor): Reveal hidden contents Mirrored side: a: visual portal on the outside. We are looking out, not in, so we only need the self line ID: b: A translucent line, textured as you prefer (MIDTEX) to simulate the mirror colour, if wanted. c: Line against the void. Give this a mirrored linedef. There are no arguments, hence the need for the translucent line in front. Translucent side: d: Other side of void space. No specials needed. e: The other side of the line portal. We are looking though this one to the outside (a: above): f: And a translucent line so the simulated glass looks more 'glassy'... Demo video: Reveal hidden contents And a download for the demo WAD: https://github.com/smeghammer/snippets/blob/master/1wayglass/1wayglass.wad Edited April 3, 2023 by smeghammer fixed broken images 4 Quote Share this post Link to post
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.