Making Real-Time "Surface Reflections" in Half-Life 1

Поділитися
Вставка
  • Опубліковано 18 лют 2024
  • #halflife #modding #goldsrc
    A fun little trick that I figured out in Goldsrc. Although they aren't real reflections though, I'm not competent enough to do that.
    My file sizes are about to skyrocket.
    download link: gamebanana.com/mods/499456
  • Ігри

КОМЕНТАРІ • 235

  • @brinys
    @brinys 3 місяці тому +290

    how it works?

    • @riv472
      @riv472  3 місяці тому +333

      In hammer, you can set brushes to render as transparent, I made the floor transparent , and then copy/pasted and mirrored the room upside down underneath the floor. The same thing has been done for the windows as well.

    • @hobocket1570
      @hobocket1570 3 місяці тому

      So basically, just like that one tram scene shown in Blue Shift, right?@@riv472

    • @yuriydemchuk1325
      @yuriydemchuk1325 3 місяці тому +43

      ​@@riv472 but how u make the reflective windows that if u break theres no mirrored room?

    • @shingleonmydingles
      @shingleonmydingles 3 місяці тому +4

      idk

    • @Se8099
      @Se8099 3 місяці тому +63

      @@yuriydemchuk1325you can add a brush which is invisible until the window is broken, so when the glass breaks it triggers the brush to turn visible.
      Its really fun doing such stuff but its really not suitable for actually including it in hl1 story maps

  • @riv472
    @riv472  3 місяці тому +365

    Dammit I just realized I forgot to make the windows smash in the reflections

    • @icycactus88
      @icycactus88 3 місяці тому +24

      you broke the matrix

    • @TheTdw2000
      @TheTdw2000 3 місяці тому +13

      Hope somebody got fired for that blunder.

    • @ApertureAce
      @ApertureAce 3 місяці тому +1

      It would be cool if you could push around the wet floor sign, and the reflection wet floor brush moves mirrors the motion

    • @Taco98189
      @Taco98189 3 місяці тому +1

      Because its an n64 style reflection

    • @QueueWithACapitalQ
      @QueueWithACapitalQ 3 місяці тому +1

      You also dont have shadow, for exambple at 1:25 the door is recessed but we can see its full reflection as if it were flush against the wall. We shouldnt be able to see the door parts that are obscured by the concrete pad.

  • @WeldonWen
    @WeldonWen 3 місяці тому +327

    Reflection aside, with that texture work you could totally see how Goldsrc eventually became Source.

    • @notraeon
      @notraeon 3 місяці тому +58

      i mean the main upgrade to source was the physics. its a very similar engine. the main reason games in goldsrc didnt look as good was because of hardware limitations rather than engine limitations

  • @lorenzrosenthal119
    @lorenzrosenthal119 3 місяці тому +67

    *destroys window with crowbar*
    window's reflection: 🗿

  • @morphious86.
    @morphious86. 3 місяці тому +135

    i love the trickery of having white walls appear wherever you break a window, blocking the view to the reflected room behind
    such a neat detail

  • @WalterUndergo
    @WalterUndergo 3 місяці тому +62

    Imagine if you are playing a HL mod and found yourself in an uncannyingly realistic room that resemblance an URE 5 project.

  • @Sierra19204
    @Sierra19204 3 місяці тому +17

    Finally, there's a "Surface Reflections", so Freeman can reflect and survive "Surface Tension".

  • @Code_OrangeRR
    @Code_OrangeRR 3 місяці тому +80

    Is it just me but does that room give ominous vibes

  • @Kingmaxthe2
    @Kingmaxthe2 3 місяці тому +38

    had me fooled when you broke the windows, then you noclipped and proved what i initially thought you did

  • @favor8264
    @favor8264 3 місяці тому +11

    This is the best floor wipe ad ever

  • @nabilthecartoonist
    @nabilthecartoonist 3 місяці тому +29

    The map looks so cool! For a second I thought it was the Source engine. Good job!

  • @dv_dream
    @dv_dream 3 місяці тому +11

    they should give the janitor a raise

  • @Taking2354
    @Taking2354 3 місяці тому +27

    The trick used has been used in other games too.

    • @ernestke1392
      @ernestke1392 3 місяці тому +5

      It was used in one of gta sa restaurants

    • @Kong20012
      @Kong20012 3 місяці тому +1

      There was a recently made indie game called Zortch which parodied this effect by having one of the levels use this trick for "reflective" floors only for you to end up in the upside down room at the end of the level.

    • @Baratako0
      @Baratako0 3 місяці тому +1

      There are games from the 90's that actually don't fake this and actually show a mirrored image. A good example is SWAT 3 from 1999

  • @robotdude_1259
    @robotdude_1259 3 місяці тому +5

    props to the janitor

  • @laszlohrabovszky2489
    @laszlohrabovszky2489 3 місяці тому +3

    Gordon made it into Big Smoke's crack fortress

  • @TinyDeskEngineer
    @TinyDeskEngineer 3 місяці тому +1

    I completely failed to realize this was Half-Life _1_ until I noticed the door sounds.

  • @xweert711
    @xweert711 3 місяці тому +2

    I already knew what was going on with the floor, but the windows genuinely blew my mind with how creative and intuitive that was. Great job dude

  • @senyaiv
    @senyaiv 3 місяці тому +5

    I am more concerned about the prebaked shadows they look way to good for default compiler

    • @thaDOG
      @thaDOG 3 місяці тому

      it's half life source

  • @lukabrasi001
    @lukabrasi001 3 місяці тому +2

    to make the effect fare better, overlay two textures for the floor. you'd have the transparent layer that serves as the reflective tiles, and one that's the grout between the tiles, and you'd make them less transparent, if any at all. also reduce the transparency a little bit and you really have a nice depth effect

  • @Tentabrobpy
    @Tentabrobpy 3 місяці тому +1

    This trick never gets old :') As another commenter said, fantastic texture work

  • @mechafetus8082
    @mechafetus8082 3 місяці тому +1

    Love this. Metal Gear Solid 1 does the same thing for puddles and whiteboards (with the models behind the whiteboards being given transparency)

  • @Povilaz
    @Povilaz 3 місяці тому +4

    The trick is simple but it looks so good, awesome job!

  • @Wheagg
    @Wheagg 3 місяці тому

    I was expecting the "duplicate world" trick, but the windows smashing and removing the reflection is 👌

  • @ChefPrownlos
    @ChefPrownlos 3 місяці тому +9

    Very uncanny, still can't believe you made this in GoldSrc. Nice work!

  • @FUBBA
    @FUBBA 3 місяці тому +2

    Yeah that's a super old trick to make a "mirror" effect is just model it behind the reflecting space.

  • @StanislawNiemyjski
    @StanislawNiemyjski 3 місяці тому +1

    This is basicly Source's water reflections, except instead of rendering the thing from an another angle you just render a whole 2nd room

  • @6IGNITION9
    @6IGNITION9 3 місяці тому

    Amazing what a difference it makes! Well done.

  • @milfhunter7210
    @milfhunter7210 3 місяці тому

    Are you really expecting me to believe anyone cleans floors this well at black mesa?

  • @giberic
    @giberic 3 місяці тому +1

    this is revolutionary for skibidi toilet origins

  • @sgas
    @sgas 3 місяці тому

    the most polished and waxed room ever

  • @FatherMcKenzie66
    @FatherMcKenzie66 3 місяці тому +1

    Windows be like “not today lil bro 🤓”

  • @VibriJoyful
    @VibriJoyful 3 місяці тому

    incredibly cool!! very neat to see people discover how to do new cool stuff with these engines after so long

  • @GANONdork123
    @GANONdork123 3 місяці тому

    Ah, the flipped room trick. Simple yet highly effective.

  • @rabbitdrink
    @rabbitdrink 3 місяці тому

    definitely needed that wet floor sign. would be a safety hazard if you didnt have it, and workplace safety is number one at black mesa

  • @kylefinn5301
    @kylefinn5301 3 місяці тому

    Holy crap this is amazing looking.

  • @thedudely1
    @thedudely1 3 місяці тому

    I believe this technique is called planar reflections. Very cool to see in HL1!

  • @ImAPersonHehehehaw
    @ImAPersonHehehehaw 3 місяці тому

    Seems like the janitor worked very hard last night

  • @vadiks20032
    @vadiks20032 3 місяці тому

    0:27 good job on not reflecting broken windows. well. considering its goldsource, its still impressive you did it

  • @anuninterestingname6293
    @anuninterestingname6293 3 місяці тому

    It's like that minecraft trick with stained glass

  • @B.M.Skyforest
    @B.M.Skyforest 3 місяці тому +1

    Ahh, good old fake room trick!

  • @Clazzette
    @Clazzette 3 місяці тому

    The moment I saw the title, as a mapper myself, I already knew how it was done. This is nicely done, not gonna lie.
    I know you're aware regarding the windows, but either you unorthodoxly extend the windows, clipping on the bottom; or tie it to an scripted entity. Two ways.

  • @CturiX.IREALLY
    @CturiX.IREALLY 3 місяці тому

    I love this approach. Hoping there's some goldsrc/quake game out there that would utilize this

  • @DeliciousCake_
    @DeliciousCake_ 3 місяці тому

    when i saw this i immediately knew it was the same technique used in the opening of half life blue shift , still really cool though !

  • @christopherlmoo
    @christopherlmoo 3 місяці тому

    “Are you a ghost?” - megamind

  • @MrLyosea
    @MrLyosea 3 місяці тому

    I've done this before once in my gmod rp map. And in gta 3 and gta vc this was done on certain buildings to make "reflections" possible.

  • @pvc988
    @pvc988 3 місяці тому

    Mirrors in Duke Nukem 3D worked this way. Except you couldn't place them on the floor or ceiling and almost everything was flipped and copied automatically be the engine, including objects.

  • @Puxi
    @Puxi 3 місяці тому

    This is like the hotel tiles in vice city.

  • @thewindbreaker34
    @thewindbreaker34 3 місяці тому

    if i remember a lot of old games did this exact trickery. especially in Star War's Battlefront 2 (2005)

  • @EN4myX
    @EN4myX 3 місяці тому

    thank you this is awesome

  • @muggrootbeer
    @muggrootbeer 3 місяці тому +1

    All honestly I kind of want to recreate this in Source (Gmod specifically) and upload it to the workshop as a set piece but with Source enhancements.

  • @w1ngs2016
    @w1ngs2016 3 місяці тому

    oot 3d did the same thing with the temple of time, they just mirrored the whole thing underneath and made the floor transparent

  • @amydoesart3724
    @amydoesart3724 3 місяці тому

    It reminds me a lot of how reflections work on GZdoom, you theorically can use a camera and project it but its Really resource itensive if you are going to use it a lot, so with things like reflective floors a similar technic is used

  • @VickiVampiressYT
    @VickiVampiressYT 3 місяці тому

    So glad that these days SSR and ray/path tracing are a thing. Stuff like this is hilariously archaic, but effective for its time. It's like the whole two scrolling normal maps for realistic water or old school 3D Skyboxes. It's nostalgic, but I sure am glad we don't have to resort to this anymore in modern engines.

  • @ipherial2929
    @ipherial2929 3 місяці тому

    I remember using this trick so much with glass in minecraft. Unfortunately most of my friends never had optifine so they never saw it properly since it always had the border around every block.

  • @zero-ej6rt
    @zero-ej6rt 3 місяці тому

    One way to fix the windows in the reflection would be to just extend them from the top to the bottom fake reflection

  • @iO-Sci
    @iO-Sci 2 місяці тому

    Wow ! that is serene and direct realistic reflections
    우와 ! 그것은 고요하고 직접적인 사실적 반영이다.

  • @ZetaPrime77
    @ZetaPrime77 3 місяці тому

    I'm a big fan of people pushing old engines to their graphical limits

  • @pixelateddoctor3274
    @pixelateddoctor3274 3 місяці тому

    I feel as if the interloper entity is going to come out of the walls towards the camera

  • @ItsGman
    @ItsGman 3 місяці тому +1

    i like it

  • @claudiogarciasarmiento7487
    @claudiogarciasarmiento7487 3 місяці тому

    gold source at the 105% its perfect.

  • @hansonkerman7286
    @hansonkerman7286 3 місяці тому

    oh thats... really interesting actually

  • @michaelfixedsys7463
    @michaelfixedsys7463 3 місяці тому

    If you wanted to build even more off of this, you could have an inverted Gordon model underneath mirroring the player actions

  • @onlyslightlybent
    @onlyslightlybent 3 місяці тому +1

    The future year of 1998

  • @DiabolicalSituation
    @DiabolicalSituation 3 місяці тому

    Now just add a bump map to the floor to distort the reflection and give it dep- oh wait, this is goldsrc.

  • @juniorsilvabroadcast
    @juniorsilvabroadcast 3 місяці тому

    I know this was done on GTA San Andreas. Groove street CJ house makes extensive use of this reflection

  • @RelKier_is_jdude
    @RelKier_is_jdude 3 місяці тому

    Blue shift had it even with npcs if you want make windows better, just stretch them to reflected room

  • @punishedkid
    @punishedkid 3 місяці тому +1

    raytracers hate him

  • @alface935
    @alface935 3 місяці тому

    Ah yes the good old reliable
    "Makes a Mirrored Upside version of a place to make it look like it is a real reflection"
    This is also How people would make Water Reflections too
    They would make the exact same map upside down and that would make look like a water reflection specially in water bodys outside the playable area where players can't enter the water to "break the Magic"

  • @pannomic1818
    @pannomic1818 3 місяці тому

    Amazing, I saw this trick before but this time it really felt natural!! You nailed it!!
    also, Did you use the null texture on the upside down rooms? I saw some fps drops D:

    • @riv472
      @riv472  3 місяці тому +1

      I could have used more null on the faces that were turned away but I put the map together kind of hastily. Same reason I forgot to make the reflected windows break as well.

    • @pannomic1818
      @pannomic1818 3 місяці тому

      @@riv472 keep going, for a second I though this was RTX lol, you did amazing job!!

  • @ethosaur
    @ethosaur 3 місяці тому

    I bet you could tie the wet floor sign under to the top one as a single entity and make it pushable, to really sell the effect.

  • @comrad_mihail
    @comrad_mihail 3 місяці тому +1

    i get it. Alr, thats cool, sadly "reflection" windows didn't break

  • @Cxltyy
    @Cxltyy 3 місяці тому +1

    when you open half-life 1 instead of half-life 2

  • @tim1341
    @tim1341 3 місяці тому

    For a while i actually thoght you acutally made a reflection system in gold source

  • @beanmchocolate3900
    @beanmchocolate3900 3 місяці тому

    Oh yeah, this is sorta how it was done in Spyro 3 on the Playstation.

  • @gigabytemmx
    @gigabytemmx 3 місяці тому

    I may want to steal this idea and use it in my maps. It's so simple too XD

  • @midlowreborn
    @midlowreborn 3 місяці тому

    i remember trying to do this the exact same way, both the walls and the floor being reflective. it was such an fps drop lol

  • @theabarguy
    @theabarguy 3 місяці тому

    My PC started overheating just by watching this video alone.

  • @Alex1.6
    @Alex1.6 3 місяці тому

    Esta increíble!

  • @b1rderino
    @b1rderino 3 місяці тому

    very cool

  • @hillybankok
    @hillybankok 3 місяці тому

    office complex in half life source

  • @Nafri4166
    @Nafri4166 3 місяці тому

    casually makes source engine map in goldsrc

  • @wyguysecondary
    @wyguysecondary 3 місяці тому

    bro is actually taking the gold out of goldsource

  • @biggiecheese5255
    @biggiecheese5255 3 місяці тому

    I remember seeing this technique used in an old ps2 game I decompiled. Very cool
    Btw the game In question was ultimate board game collection

  • @captainpelmenientertainment
    @captainpelmenientertainment 3 місяці тому +2

    The fake surface reflection trick is older than dirt and im suprised that has been aplied in other games and hl not

  • @pivot44
    @pivot44 3 місяці тому

    this is look like voices of the void

  • @MrKillJoy200
    @MrKillJoy200 3 місяці тому

    As a source mapper, working with the source engine can be hard, (im amateur at best)
    content like this reminds me if this can be done in Goldsource, then who knows what can be done in Source alone? Its stuff like this makes me keep going.
    incredible work you’ve done here, much better than mine.

    • @riv472
      @riv472  3 місяці тому

      Thank you for your comment. I’ve been working with source and goldsrc for about five years now, and it definitely takes practice. Hang in there and you are sure to improve.

    • @MrKillJoy200
      @MrKillJoy200 3 місяці тому

      @@riv472 Thanks! The map im working on is still in the works, but theres way too many func_detail and t-junctions problems to count. So hopefully I’ll have it finished soon. Heh

  • @Web720
    @Web720 3 місяці тому

    Half-Life if it had ENB support:

  • @JungleShutterbug
    @JungleShutterbug 3 місяці тому

    Wow, that actually looks like a shader for ReShade. I know this wasn't done by using ReShade, though.

  • @RomanFromProvinces
    @RomanFromProvinces 3 місяці тому

    Выглядит великолепно!

  • @Hers_owners_record
    @Hers_owners_record 3 місяці тому +1

    Take my money half life source

  • @de_dan
    @de_dan 3 місяці тому

    This gotta be the same thing in blueshift

  • @kraig800i
    @kraig800i 3 місяці тому

    I was wondering if it did the Silent hill 2 trick.... lol nice results.

  • @bettafish541
    @bettafish541 3 місяці тому +2

    is there a way to make the window break on the mirrored side too, maybe with a long window extending through the building model into the mirrored version?

    • @riv472
      @riv472  3 місяці тому +2

      You can use multiple func breakables with the same name that target eachother

  • @Michal4008
    @Michal4008 3 місяці тому

    This is room where Jim Carrey and Morgan Freeman met.

  • @justmyxa4889
    @justmyxa4889 3 місяці тому

    That's an old trick. But still quite working.

  • @pistolmoth4198
    @pistolmoth4198 3 місяці тому

    I legit thought this was half life 2 until you swung the crowbar ( I now realize the title says hl1, I may be blind)

  • @agostonpahi3816
    @agostonpahi3816 3 місяці тому

    ACHIEVED WITH GOLD SOURCE

  • @XPERIVERSE
    @XPERIVERSE 3 місяці тому

    I saw this trick in Blue Shift

  • @I_Hate_YouTube.
    @I_Hate_YouTube. 3 місяці тому +4

    Try making goldsrc look lile scource 2.

  • @lazyxeno9404
    @lazyxeno9404 3 місяці тому

    Anyone thought this was the pick up that can scene?