Custom textures

If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here

Moderator: Moderators

Post Reply
Jay41387
Private
Posts: 3
Joined: Sun Aug 17, 2003 6:20 pm

Custom textures

Post 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?
oy, i have a pic, h/o
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Post 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.
Krane
Lieutenant General
Posts: 782
Joined: Sat May 31, 2003 4:18 pm
Location: California, USA
Contact:

Post 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.
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post 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
Post Reply