Author Topic: Can't use shaders...  (Read 5317 times)

Flower

  • Posts: 94
  • Turrets: +3/-0
Can't use shaders...
« 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).
img]http://rm3d.free.fr/flower.jpg[/img]
I'm a Flower, wanna smell my pistil?

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Can't use shaders...
« Reply #1 on: May 28, 2007, 08:08:45 pm »
Did you add your shaderfilename to the shaderlist? It's in the scripts directory as well.
I’m busy. I’ll ignore you later.

Flower

  • Posts: 94
  • Turrets: +3/-0
Can't use shaders...
« Reply #2 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?
img]http://rm3d.free.fr/flower.jpg[/img]
I'm a Flower, wanna smell my pistil?

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Can't use shaders...
« Reply #3 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
I’m busy. I’ll ignore you later.

Flower

  • Posts: 94
  • Turrets: +3/-0
Can't use shaders...
« Reply #4 on: May 29, 2007, 12:05:10 am »
I still have a black room => no lights...
img]http://rm3d.free.fr/flower.jpg[/img]
I'm a Flower, wanna smell my pistil?

Ingar

  • Tremulous Developers
  • *
  • Posts: 554
  • Turrets: +302/-7
    • Ingar's projects on the Web
Can't use shaders...
« Reply #5 on: May 29, 2007, 07:03:48 pm »
try changing textures/atcs/eq2lt_baselt03b_blue to
textures/vertigo/eq2lt_baselt03b_blue

doomagent13

  • Posts: 506
  • Turrets: +18/-18
Re: Can't use shaders...
« Reply #6 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.

Survivor

  • Posts: 1660
  • Turrets: +164/-159
Re: Can't use shaders...
« Reply #7 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
I’m busy. I’ll ignore you later.

Flower

  • Posts: 94
  • Turrets: +3/-0
Can't use shaders...
« Reply #8 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
    }
}
img]http://rm3d.free.fr/flower.jpg[/img]
I'm a Flower, wanna smell my pistil?

Midicow

  • Posts: 14
  • Turrets: +0/-0
 Midicow ++ Bajoran

Taiyo.uk

  • Posts: 2309
  • Turrets: +222/-191
    • Haos Redro
Can't use shaders...
« Reply #10 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

Flower

  • Posts: 94
  • Turrets: +3/-0
Can't use shaders...
« Reply #11 on: June 14, 2007, 09:36:46 pm »
img]http://rm3d.free.fr/flower.jpg[/img]
I'm a Flower, wanna smell my pistil?