patchx Posted June 22, 2002 Share Posted June 22, 2002 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 More sharing options...
alienprotein Posted June 22, 2002 Share Posted June 22, 2002 You will need to add it to your pk3 file. Link to comment Share on other sites More sharing options...
patchx Posted June 22, 2002 Author Share Posted June 22, 2002 the actuall texture? its already there its the slime one i just wanna alter its translucency -patch Link to comment Share on other sites More sharing options...
Xcom Posted June 22, 2002 Share Posted June 22, 2002 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 More sharing options...
patchx Posted June 22, 2002 Author Share Posted June 22, 2002 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 More sharing options...
Xcom Posted June 22, 2002 Share Posted June 22, 2002 jk2 game definetely uses imperial.shader. I am sure of it. 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 More sharing options...
patchx Posted June 22, 2002 Author Share Posted June 22, 2002 thanks x-com i made a new shader file called tavion.shader but how do i get GTK to give me the option of using it? -patch Link to comment Share on other sites More sharing options...
Xcom Posted June 22, 2002 Share Posted June 22, 2002 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 More sharing options...
patchx Posted June 22, 2002 Author Share Posted June 22, 2002 thanks dood lol i dont think ive ever seen you not know the answer to something a virtual font of knowledge -patch Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.