Author Topic: how to install shaders  (Read 4673 times)

rankok

  • Posts: 30
  • Turrets: +2/-6
how to install shaders
« on: May 03, 2010, 04:52:01 am »
i have 2 shaders i want to install a water and a water_caulk one
Code: [Select]
textures/liquids/clrip3

    {

        qer_editorimage textures/liquids/clear_ripple3.tga

        qer_trans .5

        q3map_globaltexture

        surfaceparm trans

        surfaceparm nonsolid

        surfaceparm water

   

        cull disable

        deformVertexes wave 64 sin .5 .5 0 .5   

       

        {

            map textures/liquids/pool3d_5.jpg

            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/liquids/pool3d_6.jpg

            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/liquids/pool3d_3.jpg

            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       

        }

   



}

textures/liquids/watercaulk
{
    qer_trans 0.40
    qer_editorimage textures/liquids/watercaulk.tga
    surfaceparm nodraw
    surfaceparm nolightmap
    surfaceparm nonsolid
    surfaceparm trans
    surfaceparm nomarks
    surfaceparm water
}

so how do i install these so they will work with netradiant on mac

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: how to install shaders
« Reply #1 on: May 03, 2010, 07:05:01 pm »
In tremulous/base make a folder named 'scripts' if it doesn't already exist, in which you make a text file named 'mymap.shader' in which you put the shaders. Then you add 'mymap' on an empty line in the shaderlist.txt in the same folder.

rankok

  • Posts: 30
  • Turrets: +2/-6
Re: how to install shaders
« Reply #2 on: May 07, 2010, 10:23:55 am »
okay ive done that but its not showing up in my texture list on netradiant i called it watercaulk.shader and added watercaulk to the textures.txt what could be going wrong?

path is tremulous/base/scripts

this is the code i used
Code: [Select]
textures/liquids/watercaulk
{
    qer_trans 0.40
    qer_editorimage textures/liquids/watercaulk.tga
    surfaceparm nodraw
    surfaceparm nolightmap
    surfaceparm nonsolid
    surfaceparm trans
    surfaceparm nomarks
    surfaceparm water
}



A Spork

  • Spam Killer
  • *
  • Posts: 1010
  • Turrets: +37/-230
    • Spork - Unvanquished.net
Re: how to install shaders
« Reply #3 on: May 07, 2010, 06:46:41 pm »
no you need to put the name of the file that the code is in into shaderlist.txt
aka in a file called rankok, put that code in, and add rankok to the shaderlist file.
Don't shoot friend :basilisk:! Friend :basilisk: only wants to give you hugz and to be your hat

Proud Member of the S.O.B.F.O.B.S.A.D: The Society Of Basilisks For Other Basilisks Safety and Dominance
:basilisk:    :basilisk:    :basilisk:

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: how to install shaders
« Reply #4 on: May 07, 2010, 08:39:22 pm »
textures.txt ??? Should be in shaderlist.txt. Anyway, the shader should show up under 'liquids' in NetRadiant.

rankok

  • Posts: 30
  • Turrets: +2/-6
Re: how to install shaders
« Reply #5 on: May 08, 2010, 08:51:15 am »
sorry i meant shadelist.txt but here is a screenshot of what ive done http://i783.photobucket.com/albums/yy115/obloby/trem/Picture2.png

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: how to install shaders
« Reply #6 on: May 08, 2010, 12:32:46 pm »
Well, that seems to be done right. Now in radiant on the textures tab/window/whatever, where you have mapnames, do you have 'liquids' there?

rankok

  • Posts: 30
  • Turrets: +2/-6
Re: how to install shaders
« Reply #7 on: May 08, 2010, 01:50:32 pm »
nop i dont have liquids iv also tried doing show shaders only and cant find it

BumbullBee

  • Posts: 19
  • Turrets: +2/-1
Re: how to install shaders
« Reply #8 on: May 11, 2010, 07:09:00 am »
I have the same problem on mac. Can't see any shaders, not even the default ones. When I compile a map with lights in, it is completely dark.

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: how to install shaders
« Reply #9 on: May 11, 2010, 12:54:14 pm »
Umm... in the texture window, View menu, check 'Show Shaders'. Either that, or you didn't setup properly and radiant can't find your Trem folder. Check that in netradiant folder games/trem.game (open with text editor) you have the engine path for your operating system set properly. It has to point to the folder INSIDE WHICH is the executable and base folder.

rankok

  • Posts: 30
  • Turrets: +2/-6
Re: how to install shaders
« Reply #10 on: May 11, 2010, 01:16:08 pm »
i changed the trem.game file to this but still get nothing i thinks its because i need to change the Tremulous 1.1.0 bit but im not sure to what
Code: [Select]
<?xml version="1.0" ?>
<game
  type="q3"
  index="1"
  name="Tremulous 1.1.0"
  enginepath_win32="C:/Program Files/Tremulous/"
  enginepath_linux="/usr/local/games/tremulous/"
  enginepath_macos="/Users/test/Desktop/Tremulous"
  engine_win32="tremulous.exe"
  engine_linux="tremulous"
  engine_macos="Tremfusion.app"
  prefix=".tremulous"
  basegame="base"
  basegamename="Tremulous 1.1.0"
  unknowngamename="Tremulous Mod"
  shaderpath="scripts"
  archivetypes="pk3"
  texturetypes="tga jpg png pcx bmp"
  modeltypes="md3 ase lwo obj 3ds picoterrain"
  maptypes="mapq3"
  shaders="quake3"
  entityclass="quake3"
  entityclasstype="def"
  entities="quake3"
  brushtypes="quake3"
  patchtypes="quake3"
/>

UniqPhoeniX

  • Spam Killer
  • *
  • Posts: 1376
  • Turrets: +66/-32
Re: how to install shaders
« Reply #11 on: May 11, 2010, 01:28:18 pm »
No, you don't need to change the Tremulous 1.1.0 part. I guess you are using Mac? You seem to be missing a / at end of the enginepath_macos. Other then that, are the shaders and shaderlist in /Users/test/Desktop/Tremulous/base/scripts/?

rankok

  • Posts: 30
  • Turrets: +2/-6
Re: how to install shaders
« Reply #12 on: May 11, 2010, 01:48:48 pm »
yeah the shaders and shaderlist is in tremulous/bas/scripts and i have added the slash but still no liquids or watercaulk shader anywhere