HomeКомпьютерные игрыRelated VideosMore From: 3kliksphilip

Source SDK - Glass Window tutorial

1630 ratings | 115706 views
Want to make glass windows which smash properly? In this tutorial I cover unbreakable, func_breakable and func_breakable_surf. Check out my channels: ● 3kliksphilip: https://www.youtube.com/3kliksphilip ● 2kliksphilip: https://www.youtube.com/2kliksphilip ● kliksphilip: https://www.youtube.com/kliksphilip Other information you might like: ● Website: http://3kliksphilip.com ● Twitter: https://twitter.com/3kliksphilip ● PC Specs: Intel 3770K, 16 GB RAM, Geforce 670 2 GB.
Html code for embedding videos on your blog
Text Comments (259)
dolly yadav (1 month ago)
How do you control freddy?
Angel P. (2 months ago)
rip freddy 2012-2011
LeafSalt (4 months ago)
uhh what do I do if it turns black?
NOVe (7 months ago)
Who else just came for freddy?
5lender (7 months ago)
I know it's a little late to ask, but is there a way to make breakable_surf one way glass?
0:14 How did he fly off?
Temmie (9 months ago)
if anyone watching this and have problem with surf glass 1- black after braking - render in full 2- glass dont appear - place texture only on one side
DanielDOESgaming (10 months ago)
but how do I add a glass which is already broken when you enter the map?
CastleCrashersMaster (11 months ago)
when I do func_breakable the window spawns in but when I do func_breakable_surf it doesn't spawn also the little ball you see in the camera in hammer is not there. i'm using the HL2 hammer btw
Hayden Lesperance (11 months ago)
ahhhhhh this was the first video i watched of you, or any hammer tutorial.
Nichita Barbut (1 year ago)
do these work in tf2 aswhell? i would like to add the third window in one of my tf maps
Adog312 (5 months ago)
I've never seen it in tf2 and i've played most of the maps. tf2 really doesn't use very many windows at all actually.
I dont know how to add color to the glass, is that even possible ??
exiitium (1 year ago)
works for csgo Sdk? :P
Jake B. (10 months ago)
yes
GttiqwT (1 year ago)
Do you want to know one thing that is sad. I used the EXACT same texture as you were using and got black textures. okay, so I used cubemaps and build then when I loaded up the game. still get a black window once I break them. BRUH
MarkP (1 year ago)
compile the map with HDR checked
Vallu Gamer (1 year ago)
#3kliksphilip For me u dont need to even put that nodraw there. Just create a block with window/glass texture and press ctrl+t and func_breakable works but not func_breakable_surf. (Btw ur tutorials have been realy helpfull keep doing these!)
Adrian LMD (1 year ago)
Nodraw is used, because you cant see the sides of the window anyway. Using nodraw reduces filesize and compiling time and, I guess, makes higher framerates!
Paperclippy (1 year ago)
I sometimes do that too, but with a random texture just so it doesn't redraw my box if I accidentally click.
THAT'S A SPICY DRINK (1 year ago)
What if I wanted to make it so that when I throw a prop at it the glass breaks?
GabeN (1 year ago)
Glass with _surf in it does make that. But i don't think without _surf.
Jonhydude (1 year ago)
Thank you. This really helped!
Krix (1 year ago)
1:48 is if you want to see the dude jump out of the office glass
Tucker (1 year ago)
func_breakable works fine for me but func_breakable_surf makes it indestructible glass for me. Help?
Bogdan Ilic (1 year ago)
Any Help anyone breakable_surf is not working for me. When I shot all just appears black ... and other sides wheres nodraw I can't see. Guess I will have to use breakable if no one knows . :(((
Fridersino18 (8 months ago)
Because there must be only 1 side of the block with the glass texture. I put nodraw in the other 5 sides and it worked.
Cykaraptor (1 year ago)
this may be late but if you are compiling in fast, it doesn't work. it should work fully when you full compile. i think
M.A (1 year ago)
How you do a jumping man
Ayy Lmao (1 year ago)
the other side of the window is invisible?
Rubaka Ordi (1 year ago)
How to make a Screamer?
Zouty (1 year ago)
Under that "Justify" section, could we use "fit" to save us time fiddling with the textures on doors?
ZONEcold YT (1 year ago)
Does this work the same way in GMod? I tried it earlier and it didn't work :/ maybe the texture was faulty? Idk
SonicHD (1 year ago)
Could you do some tutorials on how to make a zombie map?
john smith (1 year ago)
When i add the func_breakable it comes off once i deselect the glass. HELP PLEASE
Jared Tessen (1 year ago)
Am I the only one who noticed at 0:06 he said unbreakable when he meant breakable?
Sweet. Thank you.
Mystyc Cheez (2 years ago)
Hey Philip, are you ever gonna make anymore mapping related videos again?
Moose (1 year ago)
awesome, thanks for that bit of info
crabbyninja (1 year ago)
I believe he's re-doing the series to meet the current standards of his channel.
Andrej Dimovski (2 years ago)
After I shoot the window, it appears black. Help
MCcreed (2 years ago)
don't give up, look for the failures and learn from them ;) thats the best way
MCcreed (2 years ago)
just try the entity finder and make sure that you've activated the "toggle helpers" to lock where the rotation point is e.g func_door etc.
Andrej Dimovski (2 years ago)
+MCcreed Maybe that's the problem, but now I can't even compile my map because it says entity prop static (-180...) leaked I started over with a new map
MCcreed (2 years ago)
+AndRoleX maybe the glass texture you've chosen, don't support the breakable option
Andrej Dimovski (2 years ago)
It doesn't work :/ I think it's because of a prop static
Tickleshits (2 years ago)
my only takeaway from this video: i already knew about breakable_surf, but i had no idea about the "fit" button.
Bob Q Kazoo (2 years ago)
+yurtpoh XD same
RedHawk13 (2 years ago)
I made a window with the _surf but when I compile the map the windows don´t appear. This doesn´t happen with other breakable window that don´t have _surf
Ludvig SC Games (1 year ago)
(Just found out) This happens when you put the glass texture on more than 1 side of the glass(6 possible) If it is only put on 1 side it should work(Also has to be the correct testure)
Games On Quack (2 years ago)
All of my props are black and i don't know what to do... can someone please help????
Games On Quack (2 years ago)
+alexJ » Weekly CS:GO Edits Thanks a lot M8 :D
alexJ (2 years ago)
+Games On Quack Not all props can be animated, it will tell you in the model selection window on the right hand side whether it is or not :)
Games On Quack (2 years ago)
+alexJ » Weekly CS:GO Edits so what would an animation do to a regular box?...
alexJ (2 years ago)
+Games On Quack Dynamic props are props that may have animations on them, for example a clothing line. Whereas static props are props that stay idle. I honestly have no clue why it is being buggy like this and I assume it is absolutely crushing map makers due to dynamic props being more intensive on the PC. But, until valve fixes the problem this is a solution :)
Games On Quack (2 years ago)
Thanks, that helped :D... I would also just wanna know how to keep using static props. Well, really, whats the difference?
OnkarrSingh (2 years ago)
you sir,are a star!
crabbyninja (2 years ago)
TRY A DIFFERENT GLASS TEXTURE.
lonkchase (2 years ago)
The texture is only visible on one side. HELP
lonkchase (1 year ago)
Figured it out. Put the texture on the sides that are visible.
Corneel Lenaerts (2 years ago)
the window won't appear in the game
TheJuniorLive (2 years ago)
I try to make a bulletproof glass in CS:GO... the tool/blockbullets is not working! any idea?
Spotswood (2 years ago)
Just make a nodraw block and put a glass texture on it.
Gunslinger (2 years ago)
Freddy's jumps are beautiful.
Jonas E. (2 years ago)
Could you upload the map you used in the video, please. Thanks in advance! :D
Dark Rider (2 years ago)
The third type is the best . There is a lesson in a realistic grass ?
Skizzofonik (2 years ago)
how did you make freddy jump?
Gyro Zepelli (2 years ago)
this old school philip is actually pretty amusing in a weird way
Stroyed (2 years ago)
The func_breakble_surf isn't working for me. It doesn't seem to compile. Like at all. It's just nothing. PLz help. I'm using glass/offwndwb
Sean .Lyons (2 years ago)
+mod(2019) gaming Make sure you apply the texture to one side like 3klikphillip said(right click) or make sure you didn't accidentally apply nodraw to both faces(like I did) lol.
Hayden Lesperance (2 years ago)
lol freddy i think was funny, thanks though the guy i watched didnt say that putting the nodraw on one side would work for all sides
Pzyx Gaming - Official (2 years ago)
Hey! Im making a map and get the error material "" not found in the compile log? where is the texture missing, how do i locate it?
Half Way Lambda (1 year ago)
Use another texture because maybe some can not be located
Axel (2 years ago)
NOOOOES !!! FREEDDY !!! DON'T DO IT !!! NOOOOOOOOO !!!! FREEEEEEDDY !!!!
Collide (2 years ago)
Can you create a tutorial to create a see-through Vent that is breakable? like in de_cache
Plutonium2222 (3 years ago)
My "Freddie the 2nd" cried when I threw him :'(
Jack Findley (3 years ago)
This is a perfect tutorial. Short, simple, and easy to understand.
benoderpity (3 years ago)
Guckatronias (3 years ago)
How did you make Freddie, Philip?
TheM1n3rX (3 years ago)
func_breakable_surf doesn't work for me. It's unbreakable. Can somebody help me?
jack smith (3 years ago)
How do I make a vent cover. I use the 2nd glass but I want to change the sound and the debris when it breaks.
LukenSkyne (3 years ago)
I got a problem with some func_breakable_surf: In this picture - http://gyazo.com/00df2d3d2b96d13977b13b4fb65014ca you can some rounded window i want to have breakable, but it doesnt work because its an arch - i believe thats the reason - any idea? (i have done anything right, all other windows work like that aswell)
Mikey (3 years ago)
If you want to do the breakable surf glass, you probably have to make each part of the arch into a different entity by ungrouping the arch.
venomtail1 (3 years ago)
@3kliksphilip i chose the office type of glass, but when i shoot it, it goes black. pls help
Dolan Duk (2 years ago)
+venomtail1 Me too, only it's always black even if i've selected the right texture.
Tutwater (2 years ago)
+venomtail1 There's only a VERY SPECIFIC glass texture that works with func_breakable_surf, in my experience. It's glass/prodwndwa, and it will work exactly as presented in the video.
Bladeclone (3 years ago)
Did you make all the other faces nodraw?
Molossus (3 years ago)
Hi 3k. I followed your instruction to make Office windows style; however, when the "no draw" texture is not showing any glass at all one one side of the panel, while on the other side is fine. What did I do wrong?
games528 (1 year ago)
Thank you.
Tutwater (2 years ago)
+i742 There's only a VERY SPECIFIC glass texture that works with func_breakable_surf, in my experience. It's glass/prodwndwa, and it will work exactly as presented in the video
CeezyGamer (3 years ago)
you need to only put the glass texture on one side not both
Molossus (3 years ago)
+Jim Feenstra oh I see, i will try thanks. Have you had issues where the windows texture won't appear, but you can shoot at it?
Jim sqsqsq (3 years ago)
Even though every tutorial says to only texture one side of the window, I always do both sides.
Jason F (3 years ago)
I'm having a problem with the func_breakable_surf, it doesn't work and doesn't even load in the glass after compiling, and yes I have changed the glass texture. Screenshot >>> http://i.imgur.com/UzjrW1H.jpg (I'm running Hammer on Half Life 2: Episode 2, compiling it for Gmod.)
Bigboxofglowingants (3 years ago)
How did you place down that person? Also, How did you make him JUMP????? Jezuz chreest
William (3 years ago)
I cant get this to work. I'm using the office style breakable windows but when i do the things you say in this video it doesn't show the glass on the other side. Also, when I do damage the texture instantly turns to black.
Tecosaurus (3 years ago)
I need help. I did everything you said but when I go and test it the glass just isn't there?
CJ Burkey (4 months ago)
Same issue
prosuWANTED (3 years ago)
+gdkxx I did that multiple times. It didnt work!
gdkxx (3 years ago)
You have to apply the glass texture to the face of the block with nodraw on it.
SCLEWS (4 years ago)
Can you do a tutorial for surf maps?
CamoBunny (4 years ago)
do you think you could do a vent tutorial? cause I'm not sure on how to make vents.
3DM Gaming (2 years ago)
+3kliksphilip Personally I use the a Prop_door_rotating, select a vent model. Lock it using flags and tick break on pressure. But your way seems good as well I just believe Valves prebuilt entities are very good.
+Mart van der Lugt He stopped making Hammer tutorials... sadly.
Mart van der Lugt (2 years ago)
+3kliksphilip Could you please make a tutorial about that and more small stuff like that? It would be really helpfull! Thank you for this awesome tutorial!
3kliksphilip (4 years ago)
Actually, making a tutorial on things like that would make a lot of sense. You make the vent cover itselv by choosing the vent texture, placing it where you want it to be and by selecting it and pressing ctrl+t. Make it func_breakable and set its material to metal. For the vent itself, place 4 blocks separately- one for the floor, ceiling and walls of the vent, make it 64x64 in size, or if you're more ambitious, something different, like 48x48, though you may have to resize the texture scale to make the vent textures fit that.
Moved to New channel (4 years ago)
'And the good type of Unbreakable which looks like this' unbreakable?
CyclingDane (2 months ago)
yeah i thought the same thing too.. 3 years later..
Piemations (4 years ago)
Get your shit together Freddie
oh hey its you
Suomalaista Pelailua (4 years ago)
can you do l4d2 authoring tool tutorials :)?
Vladut Buhoci (3 years ago)
Give me your Steam name or profile adress.
Suomalaista Pelailua (3 years ago)
hi i deside to do litle campaing map in l4d2 :) so you can watch it Sunday or tomorrow :C
Suomalaista Pelailua (3 years ago)
+Vladut Buhoci :C map crashed some error when run :C
Suomalaista Pelailua (3 years ago)
maybe :C
Vladut Buhoci (3 years ago)
+sota veteraani Hey, I know it is a bit late but do you still have trouble spawning infected? I might help you.. Give me your Steam name.
Sneakyufo68 (4 years ago)
probally a stupid question but if you make a map and compile it and when you edit it again and save it do you have to compile it again?
3kliksphilip (4 years ago)
Every time you make a change, you have to re-compile for those changes to be seen in-game.
Dzaga Maga (4 years ago)
@3kliksphilip Hi... Please, I need help - I've been doing a map for the mod NMRiH (Great mod with it's own SDK, you should try it, even though you've probably already seen it on steam) I made a map with a huge building and made a huge ceiling window, it's 3 units thick and covers a huge space... I've made it brakeable_surf... It works perfectly, everything set and added skybox to it... BUT... When I actually do brake it or shoot at it, the whole glass changes the texture to the broken one, wich is ok.... Well, it would be, IF it didn't look like sheet - After being broken, the broken glass isn't transparent anymore and it doesn't look THAT bad, but it looks stupid... Any ideas what it could be ? Texture - glass/glasswindowbreak070a Yes, I've already built cubemaps. Material keyvaule has been set to glass. Thank you for your attention + Sorry for my english.
3kliksphilip (4 years ago)
Post me the video and I'll take a look at it. I'm available whenever.
Dzaga Maga (4 years ago)
+3kliksphilip Well, sorry for being inaccurate, I can't post a video at this moment either, but I meant it this way - When you shoot at the glass, it becomes fragile and it has thoose holes in it, I reffered to this state that it's "broken"... When the glass is damaged and it's "broken", it actually stops to be transparent. As I said before, it covers pretty huge are aswell, but it's not thick, and I've even checked out if there's a hole in my level - Everything's sealed and there's functioning skybox with 2 cubemaps... 1 of thoose is actually made specially for this glass that I'm having problem with... Even after I removed the cubemap/cubemaps... It still does this. Oh... And I almost forgot to mention there's the light_environment aswell. But aside from that, that is all the information I can share with you RIGHT now :-/... Well... I can certainly post a video tomorrow, but I don't want to annoy you either :-/....
3kliksphilip (4 years ago)
Have you tried making it a func_breakable instead? Give it a bit of health so when you shoot it, several holes appear before it all shatters. It would help if you had a video showing the problem since then I'd know what looked so bad about it.
Adrian W (4 years ago)
@3kliksphilip,how to make glass window breakeable when you walk into it? I mean, you don't need to shot?
3kliksphilip (4 years ago)
Make a block around the window, select it, press ctrl+t and choose trigger_once, then in the outputs tab for that block there should be 4 boxes. In the first put onstarttouch in the second put the name of the window, and in the 3rd put 'break'
Aarone2004 (4 years ago)
how do you make the ragdoll jump
Aarone2004 (4 years ago)
+3kliksphilip still dont understand, im almost a newb at hammer
3kliksphilip (4 years ago)
Attach him to a string and throw it around using something moving.
Lancelot (4 years ago)
This is very helpful for me making my own TF2 map
niceone124 (4 years ago)
This is a bit old, but the glass just disappears for me when I run the map, any ideas?
illusdidi2 (4 years ago)
+niceone124 I think I found the solution. Try to replace Nodraw by Nodraw_roof
niceone124 (4 years ago)
Yes I did.
3kliksphilip (4 years ago)
Did you try saving your map under a different filename?
niceone124 (4 years ago)
+3kliksphilip Well it always starts as func_detail I think, since that's the default type. I've tried that but I'll try it again. Do you think it could be something that happens when using the "Fit" function to make the glass fit properly? I tried one without doing the "Fit" thing but that didn't change anything. Still the same problem when I remade it from scratch. Are you sure you can't see the screenshots? It's a bit hidden but right above them you can click for the second and third image.
niceone124 (4 years ago)
Nope, still having the same problem.
blodyclan96 (4 years ago)
That dosen't seem to work either, damn youtube, i'l send a private message!
blodyclan96 (4 years ago)
It was a bit ago since i worked on this so it's some stuff left on it, try this link instead: steamcommunity.LOL/profiles/76561197986341563/screenshots/ The "LOL" i supposed to be replaced with com but youtube dosen't let me type that, lol.
marcwho13 (4 years ago)
How did u get Freddie to jump?
3kliksphilip (4 years ago)
I'm sorry, I've tried your link again and it still doesn't work, you got any newer pictures?
Mark Joseph (4 years ago)
can i have that vmf file please :D
blodyclan96 (4 years ago)
Sorry for spamming with comments but im so happy that i actually managed to make a decent map, (that's what i think atleast) i would love if you could take a look at it, tell me if it's good or bad for first map, if you got time for that ofc! :) It's all created because of you pretty much, it's not completly done yet either but please check it out: steamcommunity.DOT/profiles/76561197986341563/screenshots/
blodyclan96 (4 years ago)
Anwser to you're "question" also xD , Im making a unbreakable one, i got it to work now! :)
blodyclan96 (4 years ago)
Wow, so fast at anwsering hehe, just so you know, im creating my first ever map in Source SDK or "Cs-Go SDK", i started because of you're vids, a while back i tryed, like 5 years ago or even more xD didn't understand anything, but now im in my secound year in school, trying to make my self to an engineer, and it's alot of stuff that has to do with xyz and so on, so this is great training and alot of fun, thank you alot for teaching me so much, you're tutorials are fast and good!
3kliksphilip (4 years ago)
Depends which sort you're making
blodyclan96 (4 years ago)
This comment isn't really necessary but i think i did wrong again, i got the window and everything but, you really don't need to add the "Nodraw" thingy, right? :P
blodyclan96 (4 years ago)
Lol, im so retarded! I was like: "When the f*ck is he going to show how to make the non-breakable glass" when that's actually done by just adding a glas texture to the nodraw! xD Thank's alot for the Tutorial 3kliksphilip, Great as usal! :D Big thank's!
3kliksphilip (4 years ago)
No, you only texture one side.
3kliksphilip (4 years ago)
Tell me, step-by-step, how you made it. Alternatively start again and simply do what I say in this tutorial. Which one are you trying to make?
Jared Lund (4 years ago)
I was getting the Purple and black checkers in L4D2 even with cubemaps, I will try a different glass texture.
3kliksphilip (4 years ago)
Look in the description of this video for a list of tutorials
Jarmahent (4 years ago)
can you make the video for doors? and if there is already one can you give me the link?
JACKHAMMERMC (4 years ago)
XD i love how you threw Freddy here 0:22
RIMP (4 years ago)
How did Freddy fly away?
Jack Bosworth (4 years ago)
yes you can. You can also change how much damage it takes for that wall to take before it breaks
RandomUser (4 years ago)
Would I be able to make things like walls breakable to?
3kliksphilip (4 years ago)
Yes but the original is still up. It's not similar in style to this, other than that I still teach 3 window types.
poopy farts haehaE (4 years ago)
Are you redoing old videos :o
3kliksphilip (4 years ago)
Dunno
poopy farts haehaE (4 years ago)
Why do I feel like I watched these videos a looong time ago, before Sep 25th
Florian Krüger (4 years ago)
No, I textured all the sides because I couldn't texture one side. I can't select one side only all the sides
3kliksphilip (4 years ago)
Did you only texture one side?
Florian Krüger (4 years ago)
Func_breakable_surf

Would you like to comment?

Join YouTube for a free account, or sign in if you are already a member.