Please, help me! (2)

A place to chat about anything you like, within reason
Post Reply
mateusak
Posts: 2
Joined: Wed Apr 25, 2012 12:25 am

Please, help me! (2)

Post 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

User avatar
GanjaGuy
Posts: 29
Joined: Thu Mar 29, 2012 9:25 am

Re: Please, help me! (2)

Post 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

User avatar
xandaxs
Posts: 959
Joined: Wed Aug 17, 2011 5:22 pm
Location: Oeiras, Portugal

Re: Please, help me! (2)

Post by xandaxs »

[12:25] <JohnnyEnglish> morning Nounou
[12:25] <JohnnyEnglish> wotcha doing?
[12:25] <Nounou> hello
[12:26] <Nounou> nothing much, i've nothing to do at work so
[12:26] <Nounou> modeling woman
[12:26] <JohnnyEnglish> woo
[12:26] <JohnnyEnglish> real women?
[12:26] <Nounou> realistic yes, on maya

Image

Post Reply