Creating a wall light: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 19: Line 19:




 
==Steps==
==Step 1==
===Step 1===
Create a room for the light to be in, in this tutorial I used a 384*384*256 room with 16 walls. Ensure the roof is touching the walls only by its edges.
Create a room for the light to be in, in this tutorial I used a 384*384*256 room with 16 walls. Ensure the roof is touching the walls only by its edges.


Line 31: Line 31:




==Step 2==
===Step 2===
Texture the edges of the roof with the same texture you used for your roof.[[Image:Lighttutorial1.jpg|right|thumb|Step 2]]
Texture the edges of the roof with the same texture you used for your roof.[[Image:Lighttutorial1.jpg|right|thumb|Step 2]]


Line 43: Line 43:




==Step 3==
===Step 3===
Shrink the roof by four on each end, so in this case, from 384*384 -> 376*376[[Image:Lighttutorial2.jpg|right|thumb|Step 3]]
Shrink the roof by four on each end, so in this case, from 384*384 -> 376*376[[Image:Lighttutorial2.jpg|right|thumb|Step 3]]


Line 55: Line 55:




==Step 4==
===Step 4===
Create a 4*16 block with the invisible texture and put it right beside your newly shrunk roof. They should fit so there are no leaks.[[Image:Lighttutorial3.jpg|right|thumb|Step 4]]
Create a 4*16 block with the invisible texture and put it right beside your newly shrunk roof. They should fit so there are no leaks.[[Image:Lighttutorial3.jpg|right|thumb|Step 4]]


Line 67: Line 67:




==Step 5==
===Step 5===
Copy the invisible blocks and re-texture them to have nodraw. Move them higher above the invisible blocks so you can easily preform step 6[[Image:Lighttutorial4.jpg|right|thumb|Step 5]]
Copy the invisible blocks and re-texture them to have nodraw. Move them higher above the invisible blocks so you can easily preform step 6[[Image:Lighttutorial4.jpg|right|thumb|Step 5]]


Line 79: Line 79:




==Step 6==
===Step 6===
Texture the bottom of the nodraw 4*16 blocks to light_recessedcool?? Rotate them to be parallel with the block.[[Image:Lighttutorial5.jpg|right|thumb|Step 6]]
Texture the bottom of the nodraw 4*16 blocks to light_recessedcool?? Rotate them to be parallel with the block.[[Image:Lighttutorial5.jpg|right|thumb|Step 6]]


Line 91: Line 91:




==Step 7==
===Step 7===
Move the nodraw blocks to sit on top of the invisible blocks.[[Image:Lighttutorial6.jpg|right|thumb|Step 7]]
Move the nodraw blocks to sit on top of the invisible blocks.[[Image:Lighttutorial6.jpg|right|thumb|Step 7]]


Line 103: Line 103:




==Step 8==
===Step 8===
Select all the top walls, and pull them up so they enclose the invisible blocks.[[Image:Lighttutorial7.jpg|right|thumb|Step 8]]
Select all the top walls, and pull them up so they enclose the invisible blocks.[[Image:Lighttutorial7.jpg|right|thumb|Step 8]]


Line 115: Line 115:




==Step 9==
===Step 9===
Add an overlay with info_light_gradient, and change the vstart/end to .99 instead of 1.[[Image:Lighttutorial8.jpg|right|thumb|Step 9]]
Add an overlay with info_light_gradient, and change the vstart/end to .99 instead of 1.[[Image:Lighttutorial8.jpg|right|thumb|Step 9]]


Line 127: Line 127:




==Step 10==
===Step 10===
Resize to fit, and move inside of the hole.[[Image:Lighttutorial9.jpg|right|thumb|Step 10]]
Resize to fit, and move inside of the hole.[[Image:Lighttutorial9.jpg|right|thumb|Step 10]]


Line 139: Line 139:




==Step 11==
===Step 11===
Repeat for every wall[[Image:Lighttutorial10.jpg|right|thumb|Step 11]]
Repeat for every wall[[Image:Lighttutorial10.jpg|right|thumb|Step 11]]


Line 151: Line 151:




==Step 12==
===Step 12===
Compile your map, and ensure there are no leaks. If the light looks like the picture, then you have a leak.[[Image:Lighttutorial12.jpg|right|thumb|Step 12]]
Compile your map, and ensure there are no leaks. If the light looks like the picture, then you have a leak.[[Image:Lighttutorial12.jpg|right|thumb|Step 12]]

Revision as of 20:35, 16 May 2008

Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

~(A work in progress Feel free to improve)~

Todo: Add proper texture names, and make look nicer.

Introduction

In this tutorial I will show you how to make a wall light that is seen in the Portal test chambers.

comment






Steps

Step 1

Create a room for the light to be in, in this tutorial I used a 384*384*256 room with 16 walls. Ensure the roof is touching the walls only by its edges.





Step 2

Texture the edges of the roof with the same texture you used for your roof.

Step 2






Step 3

Shrink the roof by four on each end, so in this case, from 384*384 -> 376*376

Step 3






Step 4

Create a 4*16 block with the invisible texture and put it right beside your newly shrunk roof. They should fit so there are no leaks.

Step 4






Step 5

Copy the invisible blocks and re-texture them to have nodraw. Move them higher above the invisible blocks so you can easily preform step 6

Step 5






Step 6

Texture the bottom of the nodraw 4*16 blocks to light_recessedcool?? Rotate them to be parallel with the block.

Step 6






Step 7

Move the nodraw blocks to sit on top of the invisible blocks.

Step 7






Step 8

Select all the top walls, and pull them up so they enclose the invisible blocks.

Step 8






Step 9

Add an overlay with info_light_gradient, and change the vstart/end to .99 instead of 1.

Step 9






Step 10

Resize to fit, and move inside of the hole.

Step 10






Step 11

Repeat for every wall

Step 11






Step 12

Compile your map, and ensure there are no leaks. If the light looks like the picture, then you have a leak.

Step 12