Shader doesn't work

Ask for custom models, textures and shaders here!
Locked
samchun
Posts: 7
Joined: Fri Apr 27, 2012 12:45 am

Shader doesn't work

Post 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

vulture
Posts: 59
Joined: Mon Feb 27, 2012 6:57 pm

Re: Shader doesn't work

Post by vulture »

do what I said in irc

samchun
Posts: 7
Joined: Fri Apr 27, 2012 12:45 am

Re: Shader doesn't work

Post by samchun »

it didn't work, i wanna keep the .jpg extension...
Last edited by samchun on Fri Apr 27, 2012 5:34 am, edited 1 time in total.

vulture
Posts: 59
Joined: Mon Feb 27, 2012 6:57 pm

Re: Shader doesn't work

Post by vulture »

you didnt do what I said... :P

samchun
Posts: 7
Joined: Fri Apr 27, 2012 12:45 am

Re: Shader doesn't work

Post by samchun »

what did you said then, i didnt understand on irc obviously :p

User avatar
johnnyenglish
Space cake
Posts: 898
Joined: Wed Aug 17, 2011 9:23 am
Location: Nottingham, England

Re: Shader doesn't work

Post by johnnyenglish »

Can you upload the jpg?

samchun
Posts: 7
Joined: Fri Apr 27, 2012 12:45 am

Re: Shader doesn't work

Post by samchun »

Sure, here you go :
Attachments
test1.jpg
test1.jpg (668 Bytes) Viewed 23020 times

User avatar
GanjaGuy
Posts: 29
Joined: Thu Mar 29, 2012 9:25 am

Re: Shader doesn't work

Post 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

samchun
Posts: 7
Joined: Fri Apr 27, 2012 12:45 am

Re: Shader doesn't work

Post 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.

User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

Re: Shader doesn't work

Post 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

Locked