If you're looking for mapping help or you reckon you're a mapping guru, post your questions / solutions here
Moderator: Moderators
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Thu May 06, 2004 8:37 pm
hi ,
i dont know if i have to ask here or scripting forum
its about shader ...i compiled my map and when i loaded it i had just the time to see 2 sec my wall before to get kicked
then i opend console and here is my errror:
Code: Select all
tableforfunc called with invalid function '8' in shader 'textures/sgcanims/evfront'
and here the sgcanim's shader
Code: Select all
textures/sgcanims/evback
{
qer_editorimage textures/sgcanims/evback.tga
q3map_surfacelight 10
surfaceparm nolightmap
surfaceparm water
deformVertexes wave 128 sin 0 1 0 0.75
{
map textures/sgcanims/evback.tga
blendFunc GL_ONE GL_SRC_COLOR
tcMod rotate 20
tcMod stretch sin 1.05 0.05 0 0.5
}
{
map textures/sgcanims/evback.tga
blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
tcMod rotate -10
}
{
map textures/sgcanims/evback.tga
blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
tcMod rotate -40
tcMod stretch sin 1.05 0.05 0 1
}
}
textures/sgcanims/evfront
{
qer_editorimage textures/sgcanims/evfront2.tga
q3map_surfacelight 10
surfaceparm nolightmap
surfaceparm water
deformVertexes wave 128 sin 0 1.5 0 0.75
{
map textures/sgcanims/evback.tga
blendFunc GL_ONE GL_ZERO
}
{
animMap 6 textures/sgcanims/evfront2.tga textures/sgcanims/evfront4.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront8.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront4.tga
blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
tcMod rotate 20
tcMod stretch sin 1.05 0.05 0 0.3
}
{
animMap 6 textures/sgcanims/evfront2.tga textures/sgcanims/evfront4.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront8.tga textures/sgcanims/evfront6.tga textures/sgcanims/evfront4.tga
blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
tcMod rotate -10
tcMod stretch noise 1.1 0.1 0 1
}
}
thankx for help i guess would not be so easy to help with such shader !!!!
ty
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Thu May 06, 2004 8:56 pm
Try using this for the second layer (the one in the middle).
blendFunc GL_DST_COLOR GL_ZERO
I have no idea if it will work.
Tom Trude,
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Fri May 07, 2004 2:45 am
ok thanks for you help .......it dont work i tried several things ....i used a water shader as model ........
jv_map
Site Admin
Posts: 6521 Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:
Post
by jv_map » Fri May 07, 2004 7:53 am
Try commenting out this line
tcMod stretch noise 1.1 0.1 0 1
i.e., make it
// tcMod stretch noise 1.1 0.1 0 1
to temporarily disable it
crunch
Major
Posts: 348 Joined: Sat Jun 14, 2003 2:34 pm
Location: USA
Contact:
Post
by crunch » Fri May 07, 2004 10:37 am
Can a shader have an animMap command?
I have never tried it, but I have previously only seen animMap in .urc files......
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Fri May 07, 2004 11:06 am
thank you jv_ map i will try
and post if it work or no
crunch ==> yes you can add the command animap in a shader you can go in recycling bin of wacko( btw where is wacko??????) to download fire Torch and the moving belt ....there is animap inside ......very cool effect !
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Fri May 07, 2004 11:51 am
With jv_map solution i can access the game without get kicked but the effect looks very bad
maybe i ll try to change value of this stretch noise i dont know how that work ......
tltrude
Chuck Norris
Posts: 4774 Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:
Post
by tltrude » Fri May 07, 2004 11:53 am
Change "noise" to "sin" and it should work.
I used an animMap texture shader in my door2 map, for the TV. Click on my signature logo, if you don't have it.
Tom Trude,
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Fri May 07, 2004 12:03 pm
thanks tltrude i will try with sin instead of noise
and i have your animap form tv yes thank you ......i ll post the result in 10 minutes
agentmad007
Brigadier General
Posts: 570 Joined: Tue Feb 24, 2004 3:52 pm
Post
by agentmad007 » Fri May 07, 2004 12:58 pm
work but strange effect also another one ......hehe texture bouce like a kangoo ah ah (effect )
its funny!
the best is if someone now how work that deformvertexes shader and explain the value and what they do ......
i read some about q3 manual but they dont explain value and with my poor english i was totaly lost
thx