Jump to content

Home

shader help


patchx

Recommended Posts

can anyone tell me how to make a new shader come up in game?

 

i made an edited version of the slime shader that isnt translucent and got it to show up in GTK but it doesnt show up in game all i did was added a new entry to the imperial.shader file the same as the slime one and deleted the translucent bit

 

-patch

Link to comment
Share on other sites

Do they have different reference names or your copied the names also?

 

Suppose you have:

 

textures/imperial/slime1

{

code

code

}

 

then you should copy it and then change the name, ie:

 

textures/imperial/slime1_custom

{

different code

different code

}

 

ps:

 

I suggest you make different shader file for it otherwise you'll need to distribute whole imperial.shader when your map is ready.

Link to comment
Share on other sites

yup i called it slime2

but the rest is the same everything except the "surfparm translucent" line which i deleted from the altered one

 

does the jk2 game use the imperial.shader file or is that just for GTKRadiant?

 

and if it doesnt is there a different shader control file thing that i have to alter for the game?

 

-patch

Link to comment
Share on other sites

jk2 game definetely uses imperial.shader. I am sure of it. :D

Actually, it uses all shader files stored in your base/shaders.

I dunno why it's not working. :/

 

What exactly do you see in the game? Anyway, as I said, it's better to make new file.

Link to comment
Share on other sites

1. Make an empty tavion directory under base/textures.

 

2. Add "tavion" to shaderlist.txt in base/shaders

 

3. Make a file tavion.shader in base/shaders (you did that already)

 

4. Now paste the slime code (with whatever modification you want, only leave the first line intact) in it.

 

textures/[b]tavion[/b]/slime2
{
qer_editorimage	textures/imp_mine/slime
surfaceparm	water
surfaceparm	fog
surfaceparm	trans
sort	seeThrough
fogparms	( 0.32549 0.635294 0.0156863 ) 256.0
deformvertexes	wave	100 sin 1 2 0 0.25
   {
       map textures/imp_mine/slime
       blendFunc GL_ONE GL_ONE
       rgbGen wave noise 0.5 0.1 0 25
       tcMod turb 1 0.05 -1 0.05
       tcMod scroll 0.01 -0.025
       tcMod stretch noise 1 0.01 0 0.05
   }
   {
       map textures/imp_mine/slime
       blendFunc GL_ONE GL_ONE
       rgbGen wave sin 0.25 0.1 0.5 1
       tcMod scroll 0.05 0.05
       tcMod turb 1 0.1 1 0.005
       tcMod stretch noise 1 0.01 0 0.05
       tcMod scale 0.5 0.5
   }
   {
       map $lightmap
       blendFunc GL_DST_COLOR GL_SRC_COLOR
   }
}

 

Now in radiant, you should see tavion texture set in the menu. ;)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...