Author Topic: Ice/Slippery Surfaces  (Read 6515 times)

Jacques

  • Posts: 67
  • Turrets: +0/-1
Ice/Slippery Surfaces
« on: August 24, 2008, 02:59:21 pm »
How do I make a slippery surface? So far I have built a simple brush, covered it with a snow texture, and then made and identical brush in the same space with the slick texture on it.

In game, the shader texture appears as a grey grid with white lines, and isn't slippery. I think (but I could be wrong) that this means that it's missing a valid .shader. But it was my understanding that the common set was included with tremulous. ( For example, I can use a trigger texture without adding any files to my .pk3)


Drakotsu

  • Posts: 110
  • Turrets: +2/-1
Re: Ice/Slippery Surfaces
« Reply #1 on: August 25, 2008, 11:15:47 pm »
Im really not sure how to.
Ive asked but still have no clue :P
My guess would be you make the texture you want to be slippery and select the surface and apply slick to it, please correct me if im wrong i want to learn how to also  :angel:

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #2 on: August 26, 2008, 12:03:37 am »
Doesn't work. It appears as gray with white lines, like it doesn't know what the slick shader is.

n.o.s.brain

  • Posts: 339
  • Turrets: +1337/-24
    • youtube page
Re: Ice/Slippery Surfaces
« Reply #3 on: August 26, 2008, 12:18:15 am »
you sure that common.shader is working?

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #4 on: August 26, 2008, 12:42:19 am »
I don't have to include it in my .pk3, do I?

I have a trigger texture in my map, which is from the common set, and it works fine.

Drakotsu

  • Posts: 110
  • Turrets: +2/-1
Re: Ice/Slippery Surfaces
« Reply #5 on: August 26, 2008, 01:49:48 am »
no you dont  ;D

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #6 on: August 26, 2008, 02:13:37 am »
It's really frusturating that this doesn't work, what am I doing wrong?

Does anyone have any idea?

Drakotsu

  • Posts: 110
  • Turrets: +2/-1
Re: Ice/Slippery Surfaces
« Reply #7 on: August 26, 2008, 02:14:41 am »
Im playing with GTK to try to get it to work, trying several things, but nothing.
Anyone got ideas? ???

Taiyo.uk

  • Posts: 2309
  • Turrets: +222/-191
    • Haos Redro
Re: Ice/Slippery Surfaces
« Reply #8 on: August 26, 2008, 11:50:28 am »
Write yourself a shader. It must include "surfaceparm slick" to make it slippery. The example shader below will appear as an ordinary texture in-game but will be slippery.
Code: [Select]
textures/mymap/mytexture_slick
{
  qer_editorimage textures/mymap/mytexture.jpg
  surfaceparm slick

  {
    map textures/mymap/mytexture.jpg
  }
  {
    map $lightmap
    blendfunc filter
  }
}

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #9 on: August 26, 2008, 01:43:57 pm »
So what do I name it, and where do I put it in my pk3?

seeeker

  • Posts: 122
  • Turrets: +19/-5
Re: Ice/Slippery Surfaces
« Reply #10 on: August 26, 2008, 06:03:48 pm »
make a new file, put the stuff theat Taiyo.uk gave you, replace the parts that say "mymap", "mytexture_slick", and "mytexture.jpg" so that it matches your case.
save the file as mymap.shader (of course replace mymap with your map name =P)
it should go in:
D:\program files\tremulous\base\scripts\ (that is the case if you are using windows, im going to guess you are using it since you didnt provide enough info =P)
You also need to modify the file shaderlist.txt so that it also includes your new shader. that file is located in the same directory.
About the pk3 part, you only do it at the very end, if you run into problems, delete your current map pk3 and devmap using:
/sv_pure 0
/devmap mymapname
Only pk3 it at the very end, it will save you from other problems.
« Last Edit: August 26, 2008, 06:06:13 pm by seeeker »

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #11 on: August 26, 2008, 08:21:22 pm »
Didn't work. My character walks through it in game. In the texture browser, it has a white line around it. My experience with white lines is that they make whatever they texture non-solid. Since I just walk through it, instead of in it, isn't slippery.

n.o.s.brain

  • Posts: 339
  • Turrets: +1337/-24
    • youtube page
Re: Ice/Slippery Surfaces
« Reply #12 on: August 26, 2008, 11:51:19 pm »
the only way that a player could walk through it would be if there was a surfaceparm nonsolid somewhere in the shader file...

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #13 on: August 27, 2008, 12:03:17 am »
Ok, I was wrong. My bad, I didn't have any lights in the area.

Moving past my stupidity, it doesn't work. The gray box with the white grid still appears. And it still isn't slippery.

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #14 on: August 27, 2008, 12:07:03 am »
Ok, I had forgotten to add the .jpg in the .shader. I did, and now the ice texture shows. But it isn't slippery.

Drakotsu

  • Posts: 110
  • Turrets: +2/-1
Re: Ice/Slippery Surfaces
« Reply #15 on: August 27, 2008, 04:38:10 am »
tried what you said and it didnt work @_@

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #16 on: August 27, 2008, 08:31:56 pm »
Yea, can someone please help us? I can see the ice, but it isn't slippery. I followed your instructions exactly.

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #17 on: August 28, 2008, 02:07:57 am »
Some one has to know why it isn't slippery?

Samurai.mac

  • Posts: 317
  • Turrets: +18/-17
Re: Ice/Slippery Surfaces
« Reply #18 on: August 31, 2008, 03:23:46 pm »
Did you recompile your map after changing the shader? Any alteration to a surfaceparm (or anything in a shader headed by "q3map") requires a recompile to take affect.

Jacques

  • Posts: 67
  • Turrets: +0/-1
Re: Ice/Slippery Surfaces
« Reply #19 on: September 01, 2008, 03:39:26 pm »
Yes, I have recompiled. I'm so frusturated, I can't figure out what I'm doing wrong.