El_Exodus Posted August 6, 2014 Report Share Posted August 6, 2014 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: "$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.. Quote Link to comment Share on other sites More sharing options...
cashed Posted August 6, 2014 Report Share Posted August 6, 2014 (edited) 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 Edited August 6, 2014 by cashed Quote Link to comment Share on other sites More sharing options...
crashz Posted August 6, 2014 Report Share Posted August 6, 2014 (edited) You mean reflection like this, right? Well I think its only possible with water Edited August 6, 2014 by crashz Quote Link to comment Share on other sites More sharing options...
TheGuma Posted August 6, 2014 Report Share Posted August 6, 2014 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. Quote Link to comment Share on other sites More sharing options...
El_Exodus Posted August 6, 2014 Author Report Share Posted August 6, 2014 (edited) 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_%28shader%29#Reflection.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? Edited August 6, 2014 by El_Exodus Quote Link to comment Share on other sites More sharing options...
cashed Posted August 6, 2014 Report Share Posted August 6, 2014 I hunted my installed games gcf, and could not find. It looks like he plays from Gary's Mod. Did you check there? Quote Link to comment Share on other sites More sharing options...
El_Exodus Posted August 6, 2014 Author Report Share Posted August 6, 2014 (edited) 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. Edited August 7, 2014 by El_Exodus Quote Link to comment Share on other sites More sharing options...
leplubodeslapin Posted August 7, 2014 Report Share Posted August 7, 2014 You do need this ? it's not a water texture, it's a custom texture used with the func_reflective_glass as you mentioned Quote Link to comment Share on other sites More sharing options...
El_Exodus Posted August 7, 2014 Author Report Share Posted August 7, 2014 (edited) Yeah, but everthing i tried, didn't work as i wanted to. Can you teach me how to do it right? Edited August 7, 2014 by El_Exodus Quote Link to comment Share on other sites More sharing options...
leplubodeslapin Posted August 7, 2014 Report Share Posted August 7, 2014 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 : "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" } 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/filedetails/?id=262196646 ) El_Exodus and Pancakesandsyrup123 1 1 Quote Link to comment Share on other sites More sharing options...
El_Exodus Posted August 7, 2014 Author Report Share Posted August 7, 2014 (edited) I'm going to try this tomorrow or sometime in the next days. Time for bed now Thank you for helping! Edited August 7, 2014 by El_Exodus Quote Link to comment Share on other sites More sharing options...
Pancakesandsyrup123 Posted September 6, 2017 Report Share Posted September 6, 2017 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 El_Exodus 1 Quote Link to comment Share on other sites More sharing options...
Mamorex Posted September 6, 2017 Report Share Posted September 6, 2017 (edited) 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. Edited September 6, 2017 by Mamorex El_Exodus 1 Quote Link to comment Share on other sites More sharing options...
Pancakesandsyrup123 Posted September 9, 2017 Report Share Posted September 9, 2017 (edited) Mamorex Thanks a lot, I think that will come in handy Edited September 9, 2017 by Pancakesandsyrup123 Quote Link to comment Share on other sites More sharing options...
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.
Note: Your post will require moderator approval before it will be visible.