Page 1 of 1

Please, help me! (2)

Posted: Fri Apr 27, 2012 10:03 pm
by mateusak
Well, when I try to texture in the water that I do in GtkRadiant, when I test the game it does not get water (do not cross and no sound of water and other aspects that have water). And when I put no texture! help please

Re: Please, help me! (2)

Posted: Sat Apr 28, 2012 2:26 am
by GanjaGuy
you cant use just any texture on water... well.. you can but you need to have a shader telling the engine that its actually water.

for example, the first shader here gives you clear non textured water in game with no movement. now for a more realistic look/feel you want a textured, moving (to simulate non stagnant water) water.. for that check the second one out.

Code: Select all

textures/squidrena/whawa
{
   surfaceparm water
   surfaceparm nomarks
   surfaceparm nolightmap
   surfaceparm nodraw
}


this shader takes your water texture (or a few water textures if youd like, i used the same image as that was my preference) and creates movement and transparency to simulate a more natural water..

Code: Select all

textures/squidrena/sqgrwtalter
   {
      qer_editorimage textures/squidrena/sqgrwtalter.tga
      qer_trans .3
      q3map_globaltexture
      surfaceparm trans
      surfaceparm nonsolid
      surfaceparm water
      cull disable   
      {
         map textures/squidrena/sqgrwtalter.tga
         blendFunc GL_dst_color GL_one
         rgbgen identity
         tcmod scale .5 .5
         tcmod transform 1.5 0 1.5 1 1 2
         tcmod scroll -.05 .001
      }

      {
         map textures/squidrena/sqgrwtalter.tga
         blendFunc GL_dst_color GL_one
         rgbgen identity
         tcmod scale .5 .5
         tcmod transform 0 1.5 1 1.5 2 1
         tcmod scroll .025 -.001
      }

      {
         map textures/squidrena/sqgrwtalt.tga
         blendFunc GL_dst_color GL_one
         rgbgen identity
         tcmod scale .25 .5
         tcmod scroll .001 .025
      }

      {
         map $lightmap
         blendFunc GL_dst_color GL_zero
         rgbgen identity     
      }
}


for more info and some other shaders ppl commonly have troubles with check this thread.
http://www.urbanterror.info/forums/topi ... y-of-sorts

Re: Please, help me! (2)

Posted: Sat Apr 28, 2012 12:31 pm
by xandaxs