1. Forums
  2. Discord
  3. About Mapcore
  4. Patreon Supporters
  • Login
  • Register
  • Search
This Thread
  • Everywhere
  • This Thread
  • This Forum
  • Articles
  • Pages
  • Forum
  • More Options
  1. Mapcore
  2. Discussions
  3. Level Design

CS:GO SDK - Reflective Textures/Brushes

  • El_Exodus
  • August 6, 2014 at 5:02 PM
  • El_Exodus
    • August 6, 2014 at 5:02 PM
    • #1

    I'm trying to create a clean, black floor which should act like a mirror. I'd like to see brushes, lights and props mirrored in it.

    I searched on the interwebzz how to do that and i tried a few things. But nothing worked as supposed.


    -I tried using a selfmade texture with some water refraction lines in it i found somewhere.

    -After that i used the cubemaps to add reflections to the surface using:

    Quote

    "$envmap" "env_cubemap"
    "$envmaptint" "[.6 .6 .6]"
    "$envmapcontrast" ".5"

    I then had reflections, but they were unaccurate as hell. So this won't work for me.


    -Then i found this function "func_reflective_glass" but i think this one wasn't made for CS:GO since the needed textures are missing.

    So it doesn't work with CS:GO. And if it does, i have no idea which settings i have to use. And because the textures don't exist here, i'm not able to create them on my own, too.


    So here i am. I have absolutely no idea, how i'm able to create such accurate reflections. Is it even possible to create them using the CS:GO SDK? And if yes, how?


    BTW: Where the heck shall i post these small questions in the future? The 3D Forum seems not to be the right place for them..

  • cashed
    • August 6, 2014 at 6:22 PM
    • #2

    I don't know if reflections is in the video options anymore. But it was None, Cubemap, World i believe. Making it not show at all on low end machines.


    But, take a look at the water shader. Maybe there's some reflective QC commands there

  • crashz
    • August 6, 2014 at 8:10 PM
    • #3

    You mean reflection like this, right?

    Well I think its only possible with water

    [Blocked Image: http://cloud-4.steampowered.com/ugc/774932114945352476/87B20E6D6F7EE894B51B8321395D4751719A268C/]

  • TheGuma
    • August 6, 2014 at 9:06 PM
    • #4

    Just like crashz said, try add a static water texture brush and 1 unit clip brush above it, however, note that CS:GO water does not reflect props, only the world brushes.


    Cubemaps would look ugly as they are not parallax corrected.

  • El_Exodus
    • August 6, 2014 at 9:22 PM
    • #5

    Yep, i meant those reflections like in water. I'm trying to understand the .vmt of those textures, but it's not that easy for me, because i'm still a noob. I found this site on the Source-Wiki, but i still didn't manage it to make it work on non-water-textures.

    https://developer.valvesoftware.com/wiki/Water_%28…on.2FRefraction


    @:Guma: Water is able to reflect props. It's just a matter of settings


    €: In this video, TopHATTwaffle describes how to create mirrors. Does anybody know where i can find these reflectiveglass textures?

    External Content www.youtube.com
    Content embedded from external sources will not be displayed without your consent.
    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

  • cashed
    • August 6, 2014 at 11:55 PM
    • #6

    I hunted my installed games gcf, and could not find. It looks like he plays from Gary's Mod. Did you check there?

  • El_Exodus
    • August 7, 2014 at 12:45 AM
    • #7

    Found in a .vpk of Garrys Mod. I'm now triying to get it work in CS:GO.


    €: Would've been too easy. Doesn't work as supposed. I guess i'm just doing it wrong.

  • leplubodeslapin
    • August 7, 2014 at 1:25 AM
    • #8

    You do need this ?

    [Blocked Image: http://img110.xooimage.com/files/9/7/3/2014-08-07_00002-47055c5.jpg]

    it's not a water texture, it's a custom texture used with the func_reflective_glass as you mentioned

  • El_Exodus
    • August 7, 2014 at 1:30 AM
    • #9

    Yeah, but everthing i tried, didn't work as i wanted to. Can you teach me how to do it right?

  • leplubodeslapin
    • August 7, 2014 at 1:42 AM
    • #10
    Quote from El_Exodus

    Yeah, but everthing i tried, didn't work as i wanted to. Can you teach me how to do it right?


    Alright so your problem is just because of the texture. You can find the one from HL2 here :

    SteamAppscommonHalf-Life 2hl2

    Open with GCFScape hl2_textures_dir.vpk


    In the glass folder, you should be able to find the textures you need ("reflectiveglass002" & "...003"). I made one from those HL2 textures with this VMT :

    Code
    "lightmappedreflective"
    { 
    "$basetexture" "cs_opera/miroir" 
    "$translucent" 1 
    "$refracttexture" "_rt_WaterRefraction" 
    "$refractamount" "-0.1" 
    "$refracttint" "[1 1 1]" 
    "$reflecttexture" "_rt_WaterReflection" 
    "$reflectamount" "0.1" 
    "$reflecttint" "[1 1 1]" 
    "$fresnelpower" "1" 
    "$minreflectivity" "1.0" 
    "$maxreflectivity" "1.0" 
    "$normalmap" "cs_opera/miroir_normal" 
    "$surfaceprop" "glass" 
    "$bumpframe" "0" 
    }
    Display More

    miroir.vtf is a copy/paste from reflectiveglass003.vtf

    miroir_normal.vtf is a copy/paste from reflectiveglass003_normal.vtf


    I simply modified the default refract values and few things to get a flat render, a clean mirror. I don't really know much more about this kind of texture, you should try to change some values on this vmt to see how it works.


    Tell me if you need any more help

    (the map with the mirror i made : http://steamcommunity.com/sharedfiles/fi…s/?id=262196646 )

  • El_Exodus
    • August 7, 2014 at 2:40 AM
    • #11

    I'm going to try this tomorrow or sometime in the next days. Time for bed now Thank you for helping!

  • Pancakesandsyrup123
    • September 6, 2017 at 3:02 PM
    • #12

    leplubodeslapin wold you mind if I copied the values from your vmt? Thanks a lot for your comment, I think you saved some people a lot of work :)

  • Mamorex
    • September 6, 2017 at 9:02 PM
    • #13

    https://gamebanana.com/textures/4175

    Add "$reflectance" "1" into mirror.vmt file, if you want fully reclectance mirror (brighter reflections). Stock value is 0.25.

    Files are still working, I compiled map for testing few minutes ago.

  • Pancakesandsyrup123
    • September 9, 2017 at 7:13 PM
    • #14

    Mamorex Thanks a lot, I think that will come in handy :)

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!

Register Yourself Login
Discord

The Mapcore Discord is our lively IRC channel of the 2000s reborn. Chat about level design, gaming, and more.

Latest Posts

  1. Why is data science needed

    shilpa
    July 17, 2026 at 12:39 PM
  2. Any of the old guard still around? D:

    Warby
    July 12, 2026 at 8:23 PM
  3. About our archived forums

    Thrik
    June 30, 2026 at 2:12 PM
  4. Mapcore Discord

    mason_fan123
    June 24, 2026 at 8:52 PM
  5. [CS2] Valley

    Serialmapper
    June 22, 2026 at 11:56 AM
  6. Free Music / SFX Resource - Over 2500 Tracks

    Eric Matyas
    June 18, 2026 at 12:32 PM
  7. Pango [WIP]

    Elowen
    June 11, 2026 at 10:13 AM
  8. [CS2] Dvina

    Jeremy Rivera
    June 11, 2026 at 10:03 AM
  9. Bridges 2.0 by NEXSIDE, MAP SHOWCASE. ( Steam Workshop )

    MrTrane18
    June 1, 2026 at 7:46 PM
  10. Classic Maps Reborn For CS2

    SillySpaceCat
    May 31, 2026 at 10:33 PM

Users Viewing This Thread

  • 2 Guests
  1. Privacy Policy
  2. Contact
Powered by WoltLab Suite™