Page 1 of 1

Shader doesn't work

Posted: Fri Apr 27, 2012 12:59 am
by samchun
Hi CMM,

Today i tried for the first time to make my own shader, but it didnt work at all.

Here is my shader :

Code: Select all

textures/tuto/test1
{
   qer_editorimage textures/tuto/test1.jpg
   surfaceparm trans
   surfaceparm nonsolid
   surfaceparm nomarks
   polygonOffset
   nopicmip
   {
      map textures/tuto/test1.jpg
      blendfunc add
   }
}


The shader is supposed to set the black colour in alpha. I tried with nodraw etc... but nothing works :( i think i'm doing it wrong, the texture is ALL black. No need to post it here, except if you really need it to help me :P

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 2:01 am
by vulture
do what I said in irc

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 4:29 am
by samchun
it didn't work, i wanna keep the .jpg extension...

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 4:35 am
by vulture
you didnt do what I said... :P

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 5:35 am
by samchun
what did you said then, i didnt understand on irc obviously :p

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 5:43 am
by johnnyenglish
Can you upload the jpg?

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 6:56 am
by samchun
Sure, here you go :

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 7:52 am
by GanjaGuy
you might find it easier for ppl to accomplish what you are looking for with a little more information. what should (do you) want this to look like in game? black glass? i could be mistaken but even if it did work it would prob be completely invisible and therefore pointless? anyway, now we have the shader and texture you are using. now the question is what do you want it to do/look like

Re: Shader doesn't work

Posted: Fri Apr 27, 2012 8:38 am
by samchun
I would like to scroll another texture on this black texture which is a model texture. I can't set the model invisible ( or i don't know how). I want my knife looking like on this video : http://www.youtube.com/watch?v=Ygl7V0AO4oM But with transparency instead of "black" :). My both scroll shaders work, but not this one.
I can send you all the textures im using to get this render if necessary.

Re: Shader doesn't work

Posted: Tue May 01, 2012 7:56 pm
by Rayne
I know what you need and why your shader isn't working.
However i am in a slight dilemma here.
You're again trying to modify FS teams assets. Which is off limits. So you're leaving me no choice but to lock this thread.
This is your first strike (out of 3). Ignorance is not an excuse and i will not accept it.
I built this house, CMM crew has done an amazing job maintaining it.
Respect it's rules, and we'll do just fine. Break them again and you'll see how it was while we were on my old site and i was the lead dog.
Luckily for you other people and their opinion must be taken into consideration otherwise this warning would never happened.

If you have any further questions you can send me a PM. Thread locked.

Best regards

CMM founder, Rayne