Page 1 of 1

Short Question

Posted: Tue Mar 18, 2003 9:35 pm
by MillesManson
Hi,
i want to make a shader for my uploadscreen with this code(my map name is Manson,my loadingscreenpicname is loadingscreen.tga,which of the both are correct?

loadingscreen //this one???
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
rgbgen global
//alphagen global
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
clampMap textures/mohmenu/dmloading/loadingscreen.tga
}
}

Manson //or this one???
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
rgbgen global
//alphagen global
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
clampMap textures/mohmenu/dmloading/loadingscreen.tga
}
}

I found both in this forum one said first line must be the name of the map,
other said there must be the name of the map,both without endings *.tga or *.bsp

Posted: Tue Mar 18, 2003 11:44 pm
by Bjarne BZR
I dont think the name matters ( but I use the map name, because its easier for me to associate it with the map )... the important thing is that you refer to the shader whaterver name U choose in the .urc file...

Posted: Wed Mar 19, 2003 7:44 am
by Gizzy (nl)
this is the loading screen shader from my first map UTAH.


utah.shader

Code: Select all


utah
{
nomipmaps
nopicmip
cull none
force32bit
surfaceparm nolightmap
{
map $whiteimage
}
{
clampMap textures/mohmenu/dmloading/utah.tga
blendfunc gl_one_minus_src_alpha gl_src_alpha
}
}

My map name is utah and my loading screens has the same name...make sure the loading screen comes in the right directory. Hope this helps.

Posted: Wed Mar 19, 2003 8:18 am
by TheStorm
The name of the shader does not matter in terms of getting it to work. But the name you use for it must also be the name you use in the loading.urc file. (ofcourse you can't use a name that is used by some other shader)

Some important things are that

the loading urc should be named loading_thenameofyourbsp.urc

In the row in the the beging of the urc it should say
menu "dm/thenameofyourbsp" xxx xxx xxxx x (not xxx, values from other urc or your own stuff. dm=deathmatch/TDM map)