WoLD Archives Search About Contact

World of Level Design

Tutorials to Becoming the Best Level Designer and Game Environment Artist (since 2008)

L4D2: How to Attach Breakable Glass to a Door

Category: Source: L4D 1 & 2
February 03, 2010

L4D2 Tutorial covers:

Creating breakable glass
Attaching breakable glass to a rotating door
Building cubemaps

*compatible with L4D1

1. Creating Glass

Use simple brushes and position where your glass is going to be.

Assign nodraw texture on all of the glass surface faces. The entire brush needs to be in nodraw texture.

Depth of the glass is best at 2 units.

2. Assign Glass Material

Texture browser choose the glass you want for your window. I chose glass/urban_glass_03

Assign the glass texture only to one face.

3. Func_breakable_surf

Now that you have the glass positioned where you like it and have the texture applied to the single face with the rest of the faces as nodraw texture.

Select the glass brush and press Cntr+T.

Tie to Entity = func_breakable_surf

Do this for each of the brushes that are glass.

4. Attaching the glass to a moving object (door)

Open up the door's properties and under name, name your door.

Name: doorglass

Name can be anything you want.

Now open up the func_breakable_surf properties and where it says Parent, type in the door's name.

Parent: doorglass

Final step inside the editor is to insert an entity, env_cubemap in front of the door/window.

5. Buildcubemaps

Compile your map and when the game starts go into console and type buildcubemaps

Now you are done. The door rotates and the glass stays attached with it.

SUBSCRIBE & GET FREE UE5 PDF GUIDE

Subscribe to receive NEW/UPDATED and FREE "UE5 Beginner's Quick Start Guide" PDF (90 pages).

Subscribe and Get Free UE5 PDF Guide

Visit this page for more info about the guide...


Follow WoLD




UE5 FUNDAMENTALS VOL.1 COURSE


UE5: RETRO OFFICE PROJECT


MAYA FOUNDATION COURSE


SUBSTANCE PAINTER ESSENTIALS


LEARN THE PREPRODUCTION PROCESS


ABOUT WoLD & ALEXG

About World of Level Design

My name is AlexG. I am self-taught level designer, game environment artist and the creator of World of Level Design.com. I've learned everything I know from personal experimentation and decades of being around various online communities of fellow environment artist and level designers. On World of Level Design you will find tutorials to make you become the best level designer and game environment artist.

Read More »


Home Terms of Use/Trademarks/Disclaimers Privacy Policy Donate About Contact

All content on this website is copyrighted ©2008-2024 World of Level Design LLC. All rights reserved.
Duplication and distribution is illegal and strictly prohibited.

World of Level Design LLC is an independent company. World of Level Design website, its tutorials and products are not endorsed, sponsored or approved by any mentioned companies on this website in any way. All content is based on my own personal experimentation, experience and opinion. World of Level Design™ and 11 Day Level Design™ are trademarks of AlexG.

Template powered by w3.css