This is the tutorial to teach you how to create Breaking Glass. To view this map in Shadow Warrior download glass.zip
![]() Fig 1. 2D view of area A and B. |
1. As shown in Fig 1. I created two sector areas, A and B. With area A we will use a masking wall effect for the glass, and with area B we will use a sprite for the glass. Let's do the sprite version first.
![]() Fig 2. 3D view of area B with sprite added. |
2. Insert a sprite in the center of area B by pressing the S key while in 2D mode. Go to 3D mode and place the cursor on your sprite and press the R key. This keeps the sprite from following you as you move from side to side. You may need to change the angle of the sprite if your opening is not running in east/west directions as this tutorial is doing. In 3D mode, place the cursor on this sprite and press the V key twice, and go to picnum 282 for the glass texture and press the Enter key. Now, using the numeric arrow keys, resize the glass sprite until it fills your opening, and your done. Of course, this sprite has to be a blocking sprite (purple in color). To make it a blocking sprite, just press the B key with the cursor on it in 2D mode.
![]() Fig 3. 3D view showing shaded area of area A. |
3. For area A I inserted 4 vertices and connected them using two lines. This gives us three sectors in area A. Shade the middle one as shown in Fig 3. In 3D mode, place the cursor in the sector in front of the shaded one and press the M key. A grayish wall should appear, or the last masking wall you made in your map. Place the cursor on this texture and press the V key twice. Again, use picnum 282 for the glass texture. You will have to check out both sides to see if the texture is sized correctly. If not, use the Shift + numeric pad arrow keys to correct this. Now, you lighten up the shaded area. I just do the shading to help see where the sectors are.
![]() Fig 4. 3D view showing shaded area of area A. |
4. In 2D mode, place the cursor on the masking wall and press the B key to make the wall a blocking wall. In 3D mode, place the cursor on the glass texture and press the H for hitscan type wall.
![]() Fig 5. 3D view showing both glass windows. |
I prefer to use the masking wall version when I make windows.