Tremulous Forum

Media => Mapping Center => Topic started by: Plague Bringer on February 28, 2009, 09:37:49 pm

Title: What is wrong with this shader?
Post by: Plague Bringer on February 28, 2009, 09:37:49 pm
In game it displays the right texture, but bullets leave marks, it's solid, and it doesn't display the effects that water should when I noclip into it. Also, does deformVertexes work for Tremulous? I assume it doesn't, because you'd think that a lot more people would have egg transporting alien tubes.

Code: [Select]
textures/heatwave/lava.jpg
{
qer_editorimage textures/heatwave/lava.jpg
surfaceparm noimpact
surfaceparm nosolid
surfaceparm water
{
deformVertexes bulge <100> <100> <30>

}
}

Title: Re: What is wrong with this shader?
Post by: UniqPhoeniX on February 28, 2009, 10:54:57 pm
It's 'nonsolid'. For solid surfaces if you don't want marks, use surfaceparm nomarks. Also I'm pretty sure you don't need < and >.
Title: Re: What is wrong with this shader?
Post by: Archangel on February 28, 2009, 10:55:38 pm
deformVertexes works absolutely fine. Try removing the < and >s from your entry. You need to add the shader file's name to your shaderlist.txt (in your base/scripts/shaderlist.txt) i.e. you named it heatwave.shader, add 'heatwave' to the end of shaderlist.txt. You also don't need to specify file extensions on shader names. textures/heatwave/lava would be fine.
Title: Re: What is wrong with this shader?
Post by: Plague Bringer on February 28, 2009, 11:10:09 pm
Now I'm back to my first problem, the brush operates properly (no collision, no marks, water) but it has that gray and white texture, implying that it's missing.
Title: Re: What is wrong with this shader?
Post by: Archangel on February 28, 2009, 11:11:14 pm
Code: [Select]
map textures/heatwave/lava.jpg after qer_editorimage.
Title: Re: What is wrong with this shader?
Post by: Plague Bringer on February 28, 2009, 11:19:05 pm
In game, I meant.

Quote
textures/heatwave/lava
{
   qer_editorimage textures/heatwave/lava.jpg
   surfaceparm nomarks
   surfaceparm nonsolid
   surfaceparm water
   {
      deformVertexes bulge 100 100 30
   
   }
}
Will give me textureless brushes that have nomarks, nonsolid, and water (but don't bulge, as the texture is missing).

Whereas..

Quote
textures/heatwave/lava.jpg
{
   qer_editorimage textures/heatwave/lava.jpg
   surfaceparm nomarks
   surfaceparm nonsolid
   surfaceparm water
   {
      deformVertexes bulge 100 100 30
   
   }
}
Will give me textured brushes that don't do anything the shader tells them to.
Title: Re: What is wrong with this shader?
Post by: Archangel on February 28, 2009, 11:21:23 pm
no. You add
Code: [Select]
map textures/heatwave/lava.jpg to your shader.


Code: [Select]
textures/heatwave/lava
{
   qer_editorimage textures/heatwave/lava.jpg
   map textures/heatwave/lava.jpg
   surfaceparm nomarks
   surfaceparm nonsolid
   surfaceparm lava
   {
      deformVertexes bulge 100 100 30
   
   }
}
Title: Re: What is wrong with this shader?
Post by: Plague Bringer on February 28, 2009, 11:26:29 pm
Ah! Heh. I had thought you meant directly after qer_editorimage, which would do nothing.

Thanks for the help, and sorry for being thick.

Edit; AAAAAAAAND it does nothing.
Title: Re: What is wrong with this shader?
Post by: Archangel on February 28, 2009, 11:57:41 pm
Ah, my bad
Code: [Select]
textures/heatwave/lava
{
        qer_trans 0.4
        surfaceparm nonsolid
        surfaceparm trans
        surfaceparm lava
        surfaceparm nomarks
        deformVertexes wave 256 sin 0 5 6 0.5
        cull disable
        {
                map textures/heatwave/lava.jpg
                alphaGen const 0.2
                blendfunc blend
                tcMod scale 0.5 0.5
                tcMod scroll 0.5 0.5
        }
        {
                map textures/heatwave/lava.jpg
                blendfunc GL_SRC_ALPHA GL_ONE
                alphaGen const 0.8
                tcGen environment
        }
        {
                map $lightmap
                blendfunc filter
        }
}

Should be good. If it doesn't, I'm a moron. But, shaders are not my point of skill, so :P
Title: Re: What is wrong with this shader?
Post by: Plague Bringer on March 01, 2009, 12:22:42 am
Thanks.

I tweaked it a little to serve my purposes (those being pillars of magma, like in Hot Grounds for Nexuiz: http://www.youtube.com/watch?v=9zUcFi7VHZ0 (http://www.youtube.com/watch?v=9zUcFi7VHZ0))
Title: Re: What is wrong with this shader?
Post by: Archangel on March 01, 2009, 12:39:48 am
Ah, so it worked. You're welcome :)
Title: Re: What is wrong with this shader?
Post by: Zero Ame on March 01, 2009, 04:09:59 am
texture is very very repetitive
Title: Re: What is wrong with this shader?
Post by: Plague Bringer on March 01, 2009, 04:54:45 am
Yeah. That's one from filterforge under "molten lava" (or something). I came across it looking for Q3 textures earlier in the day.

Anyway, I like the effect the magma flowing out of those pipes has. Someone should make some pulsing tubes carrying clone embryos, or something. I know that there's a small hose that has a bulge moving through it. It's blue. I think it's in a default map.
Title: Re: What is wrong with this shader?
Post by: Bissig on March 01, 2009, 07:15:48 am
Yeah. That's one from filterforge under "molten lava" (or something). I came across it looking for Q3 textures earlier in the day.

Anyway, I like the effect the magma flowing out of those pipes has. Someone should make some pulsing tubes carrying clone embryos, or something. I know that there's a small hose that has a bulge moving through it. It's blue. I think it's in a default map.

Nexus6?
Title: Re: What is wrong with this shader?
Post by: Plague Bringer on March 01, 2009, 02:14:51 pm
I'll take a devmap run through it right now.

EDIT: I think it might be G2_B2 by Jex (http://tremulous.net/forum/index.php?topic=784.0), but I can't be arsed to download and test right now (working on a map/textures/HUD catalogue).