Custom textures
Moderator: Moderators
Custom textures
Im trying to make a ncie skybox, but i cannot find a nice sky textures, so I had to create one. I made the texture, but where do I put it? also, my map has no light! I can add multiple light entities but that is just not practical, how do I add ambiant lighting?
oy, i have a pic, h/o
what you really want is suncolor select any world brush, push N, then for the key dialog, type in "suncolor" and for the value dialog, "type in 90 90 90 for full daylight. the first number is red, then green, then blue. for ambientlight, do the samething, but for the key, type in "ambientlight" and then for the value type 3 numbers, but don't necesarily make it as bright as your suncolor.
you also need sundirection (for suncolor). do the key dialog the same, but for the value, you will type in world x y and z values (pitch yaw roll). x is the pitch of the sun. higher - values make the sun point down more, and 0 pretty much makes the sun shoot completely horizontal. -90 makes the sun point straight down (noon time). the 2nd value is the direction the sun points. 0 would be east in the editor, 90 would be north, and so on.z does nothing, because no matter what way the light is "rolled", it still shoots the same direction, so make it 0.
you also need sundirection (for suncolor). do the key dialog the same, but for the value, you will type in world x y and z values (pitch yaw roll). x is the pitch of the sun. higher - values make the sun point down more, and 0 pretty much makes the sun shoot completely horizontal. -90 makes the sun point straight down (noon time). the 2nd value is the direction the sun points. 0 would be east in the editor, 90 would be north, and so on.z does nothing, because no matter what way the light is "rolled", it still shoots the same direction, so make it 0.
-
Krane
- Lieutenant General
- Posts: 782
- Joined: Sat May 31, 2003 4:18 pm
- Location: California, USA
- Contact:
for the custom texture, create a folder "mymaptextures" (ex.) in main/textures. Put your custom sky there.
NOw you'll need a shader so Radiant can read the texture. Open Notepad and paste this:
textures/mymaptextures/mysky
{
qer_editorimage textures/mymaptextures/mysky.tga
qer_keyword sky
surfaceparm nolightmap
surfaceparm noimpact
surfaceparm sky
skyParms env/nordawn 512 -
}
Replace "mysky" w/ your jpg or tga file name. Even if your texture is a jpg, use "mysky.tga" .
Save it as mymaptextures.shader and put this in main/scripts folder.
Open Radiant and select Textures. mymaptextures should appear.
NOw you'll need a shader so Radiant can read the texture. Open Notepad and paste this:
textures/mymaptextures/mysky
{
qer_editorimage textures/mymaptextures/mysky.tga
qer_keyword sky
surfaceparm nolightmap
surfaceparm noimpact
surfaceparm sky
skyParms env/nordawn 512 -
}
Replace "mysky" w/ your jpg or tga file name. Even if your texture is a jpg, use "mysky.tga" .
Save it as mymaptextures.shader and put this in main/scripts folder.
Open Radiant and select Textures. mymaptextures should appear.