Page 1 of 1

Custom textures

Posted: Tue Aug 19, 2003 2:42 am
by Jay41387
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?

Posted: Tue Aug 19, 2003 2:48 am
by Alcoholic
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.

Posted: Tue Aug 19, 2003 4:10 am
by Krane
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.

Posted: Tue Aug 19, 2003 10:52 am
by bdbodger
don't forget you need 6 images in the \env directory to go with the shader . for the above example

nordawn_bk.tga or jpg
nordawn_ft.tga
nordawn_rt.tga
nordawn_lf.tga
nordawn_up.tga
nordawn_dn.tga