Tremulous Forum

Media => Mapping Center => Topic started by: Flower on May 28, 2007, 07:58:05 pm

Title: Can't use shaders...
Post by: Flower on May 28, 2007, 07:58:05 pm
Hello.

I'm trying to do light coming out from my textures, but it's obviously not working.

My map is located here [.map] :

C:\Program Files\Tremulous\base\maps

My shader file is here [.shader] :

C:\Program Files\Tremulous\base\maps\scripts\vertigo.shader

and it's content ...

Code: [Select]
textures/atcs/eq2lt_baselt03b_blue
{
surfaceparm nomarks
q3map_surfacelight 3000
q3map_lightimage textures/atcs/eq2_baselt03b_blue.blend.tga
qer_editorimage textures/atcs/eq2_baselt03b_blue.tga
{
map $lightmap
rgbGen identity
}
{
map textures/atcs/eq2_baselt03b_blue.tga
blendFunc GL_DST_COLOR GL_ZERO
rgbGen identity
}
{
map textures/atcs/eq2_baselt03b_blue.blend.tga
blendfunc GL_ONE GL_ONE
}
}


Some textures here :

C:\Program Files\Tremulous\base\maps\textures\atcs

Can somebody explain me what I'm doing wrong? I don't use Q3Map2Toolz for compiling because I get thousand of Run-time errors (even if I have all the VB dll and ocx).
Title: Can't use shaders...
Post by: Survivor on May 28, 2007, 08:08:45 pm
Did you add your shaderfilename to the shaderlist? It's in the scripts directory as well.
Title: Can't use shaders...
Post by: Flower on May 28, 2007, 09:37:21 pm
Quote from: "Survivor"
Did you add your shaderfilename to the shaderlist? It's in the scripts directory as well.


Do I need to write the complete path like c:\... or what? I dont understand how its getting the files. It's searching in every dir?
Title: Can't use shaders...
Post by: Survivor on May 28, 2007, 10:11:50 pm
You have a shaderlist.txt in the scripts directory.
Just open it with wordpad and add the name of the shaderfile you are using at the bottom.
So if you have a shaderfile named 'mymap.shader' add mymap at the bottom of the shaderlist. Just save as shaderlist.txt after that and try again.

Example for using pulse's shaderfile should you have it's .map.
Code: [Select]
arachnid2
atcs
karith
nexus6
niveus
transit
tremor
uncreation
common
common-trem
ix
moria
tim
titan
trem2
stone
displays
misc
plant_life
water
fcp
q3map
pulse
Title: Can't use shaders...
Post by: Flower on May 29, 2007, 12:05:10 am
I still have a black room => no lights...
Title: Can't use shaders...
Post by: Ingar on May 29, 2007, 07:03:48 pm
try changing textures/atcs/eq2lt_baselt03b_blue to
textures/vertigo/eq2lt_baselt03b_blue
Title: Re: Can't use shaders...
Post by: doomagent13 on May 29, 2007, 11:02:21 pm
Quote from: "Flower"
My shader file is here [.shader] :

C:\Program Files\Tremulous\base\maps\scripts\vertigo.shader
I am pretty sure this is completely wrong, compare it to other maps .shader files.
Title: Re: Can't use shaders...
Post by: Survivor on May 30, 2007, 07:20:41 am
Quote from: "doomagent13"
Quote from: "Flower"
My shader file is here [.shader] :

C:\Program Files\Tremulous\base\maps\scripts\vertigo.shader
I am pretty sure this is completely wrong, compare it to other maps .shader files.


And of course the obvious solution. Script is a seperate directory besides maps. It's not in maps. So
C:\Program Files\Tremulous\base\scripts\vertigo.shader
Title: Can't use shaders...
Post by: Flower on June 14, 2007, 06:34:09 pm
Here's my explanation on IRC

Code: [Select]
<Flower`> hey guys
<Flower`> I have a serious question about mapping
<nja> and girls you jerk
<Flower`> here it goes
<Flower`> and sexy girls :)
<Flower`> cause I love girls more than boys
<Flower`> but whateva
<Flower`> so
<Flower`> here it goes
<Flower`> I have a map : C:\Program Files\Tremulous\base\maps\rpg.bsp
<Flower`> and a shader : C:\Program Files\Tremulous\base\scripts\rpg.shader
<Flower`> containing info about a texture
<Flower`> to make light
<Flower`> when I compile with light fast
<Flower`> I only see darkness
<Flower`> is there something missing?


Here's my .shader file content :

http://cpp.sourceforge.net/?show=37217

or

Code: [Select]
// Light  //

textures/rpg/e6v_light_h_sm_s_5k
{
    qer_editorimage textures/rpg/e6v_light_h_sm.tga
    surfaceparm nomarks
    q3map_surfacelight 5000
    q3map_lightRGB .5 .75 1
    {
        map textures/rpg/e6v_light_h_sm.tga
    }
    {
        map $lightmap
        blendfunc filter
        tcGen lightmap
    }
    {
        map textures/rpg/e6v_light_h_sm_blend.tga
        blendfunc add
    }
}

textures/rpg/e6v_light_h_sm_blue_s_10k
{
    qer_editorimage textures/rpg/e6v_light_h_sm.tga
    surfaceparm nomarks
    q3map_surfacelight 10000
    q3map_lightRGB .5 .75 1
    {
        map textures/rpg/e6v_light_h_sm.tga
    }
    {
        map $lightmap
        blendfunc filter
        tcGen lightmap
    }
    {
        map textures/rpg/e6v_light_h_sm_blend.tga
        blendfunc add
    }
}

textures/rpg/e6v_light_h_sm_blue_s_15k
{
    qer_editorimage textures/rpg/e6v_light_h_sm.tga
    surfaceparm nomarks
    q3map_surfacelight 15000
    q3map_lightRGB .5 .75 1
    {
        map textures/rpg/e6v_light_h_sm.tga
    }
    {
        map $lightmap
        blendfunc filter
        tcGen lightmap
    }
    {
        map textures/rpg/e6v_light_h_sm_blend.tga
        blendfunc add
    }
}
Title: Can't use shaders...
Post by: Midicow on June 14, 2007, 07:09:22 pm
http://www.richdiesal.map-craft.com/darthg/Shaders_365/lesson2/sh365lsn2.htm
Title: Can't use shaders...
Post by: Taiyo.uk on June 14, 2007, 07:12:09 pm
I had to put the name of my map in ~/games/tremulous/scripts/shaderlist.txt before radiant would find them. I guess in windows this would be C:/Program Files/tremulous/scripts/shaderlist.txt
Title: Can't use shaders...
Post by: Flower on June 14, 2007, 09:36:46 pm
Here's my map file...

http://rm3d.free.fr/map-flower.zip