More on the combine issue....
COMBINING LIGHTS TUTORIAL
Combine is used primarily to combine lights to func_static. For example:
you have a brush textured with a light texture. Then you put a flickering light in front of it. This way it looks like you have a light box in the map with a flickering light. the problem is that the textured box doesn't change brightness with the flickering light.
- make your light box if you want one to stick out of the wall. texture the light side of it with caulk because you are going to overlap it with something else.
- copy that light box and turn it into a simple patch mesh (3x3). You may have to flip it on the Z axis because it's probably facing up and you want it to face down from the ceiling.
- apply a light texture to it. This is the light that you will see in the map.
- turn that patch mesh into a func_static
- deselect all and add a light entity. This is where the light will eminate from. The textured patch mesh is there for looks.
- apply a light texture to the light. Press J. Find and apply the light texture you want such as lights/round_strobe.
- select your light and then select your patch mesh. Combine them by pressing Shift+K
*note: if the light is in your way of selecting both, move the light. Combine the two then use Shift+Alt+click to select one of the combined group such as the light so you can move the light without the attached patch.
Now the light texture on the patch mesh will flicker brightness along with your light entity and it will look more natural.
editing to insert the map file:
Code:
Version 3
// entity 0
{
"classname" "worldspawn"
// primitive 0
{
brushDef3
{
( 0 0 -1 120 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 0 1 -128 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
( 0 -1 0 64 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
( 1 0 0 -8 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
( 0 1 0 -88 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
( -1 0 0 -16 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
}
}
// primitive 1
{
brushDef3
{
( 0 0 -1 0 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 0 1 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 -1 0 -120 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 1 0 -120 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( -1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 1 0 0 120 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
}
}
// primitive 2
{
brushDef3
{
( 0 0 -1 0 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 0 1 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 1 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( -1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 -1 0 120 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
}
}
// primitive 3
{
brushDef3
{
( 0 0 -1 0 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 0 1 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 -1 0 -120 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 1 0 -120 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( -1 0 0 120 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
}
}
// primitive 4
{
brushDef3
{
( 0 0 -1 0 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 0 1 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 -1 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( -1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 1 0 120 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
}
}
// primitive 5
{
brushDef3
{
( 0 0 1 -136 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 -1 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 1 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( -1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 0 -1 128 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
}
}
// primitive 6
{
brushDef3
{
( 0 0 -1 -8 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 -1 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 1 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( -1 0 0 -128 ) ( ( 0.03125 0 0 ) ( 0 0.03125 0 ) ) "textures/common/caulk"
( 0 0 1 0 ) ( ( 0.00390625 0 0 ) ( 0 0.00390625 0 ) ) "textures/common_misc/concrete_09_test"
}
}
}
// entity 1
{
"classname" "light"
"name" "light_1"
"origin" "-72 -72 112"
}
// entity 2
{
"classname" "info_player_start"
"name" "info_player_start_1"
"origin" "0 -80 0"
}
// entity 3
{
"classname" "light"
"name" "light_2"
"origin" "-8 72 120"
"detailLevel" "10"
"nodynamicshadows" "0"
"noshadows" "0"
"nospecular" "0"
"nodiffuse" "0"
"falloff" "0.000000"
"texture" "lights/round_strobe"
"_color" "1 1 1"
"light_radius" "320 320 320"
"light_origin" "-4 76 112"
"light_rotation" "1 0 0 0 1 0 0 0 1"
"model" "light_2"
// primitive 0
{
patchDef2
{
"textures/common_lights/small_light7_noshadows"
( 3 3 0 0 0 )
(
( ( -16 88 120 0 0 ) ( -16 76 120 0 0.5 ) ( -16 64 120 0 1 ) )
( ( -4 88 120 0.5 0 ) ( -4 76 120 0.5 0.5 ) ( -4 64 120 0.5 1 ) )
( ( 8 88 120 1 0 ) ( 8 76 120 1 0.5 ) ( 8 64 120 1 1 ) )
)
}
}
}
edited on Mar. 16, 2006 09:10 am by foyleman