Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Shader problems

Page: 1 of 1
 TK-425
11-02-2004, 9:26 AM
#1
Hi I want to make the force protection/absorb to have no blue or green effect. So I am working with the effects.shader and close to the bottom of the shader file there is a link to a picture. It was called protect or somthing like that so I put null in place of it but now when I use force protect/absorb it makes the places whare the color changes in the char selection screen turn green or blue when I use either foce power.
Can you help me?
 razorace
11-02-2004, 11:09 AM
#2
what's the exact name of the shader you changed?
 TK-425
11-02-2004, 3:35 PM
#3
effects.shader

gfx/misc/forceprotect
{
qer_editorimage gfx/effects/p_shield
deformvertexes wave 100 sin 1 1 0 1
{
map gfx/effects/whiteglow
blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
rgbGen entity
tcGen environment
tcMod rotate 10
tcMod turb 0.6 0.3 0 0.6
tcMod stretch sin 1.5 0.5 0 1
}
{
map gfx/effects/caustic1
blendFunc GL_ONE GL_ONE_MINUS_SRC_COLOR
rgbGen entity
tcMod rotate -600
tcMod scale 2 3
}
}

I changed gfx/misc/forceprotect to 'null'
 TK-425
11-06-2004, 6:35 AM
#4
Hello?
 razorace
11-06-2004, 1:00 PM
#5
Hmmm, interesting. My guess is that it does that even when the shader is normally in place.

I just don't see any other references to that shader in the code.
 TK-425
11-06-2004, 3:41 PM
#6
Um I dont think so but whatever:(
But if you find a way to fix this on your way through modding please let me know!
 TK-425
11-06-2004, 8:12 PM
#7
What about the shader itself?
Could you change the color in the shader?
 razorace
11-06-2004, 9:46 PM
#8
 TK-425
11-07-2004, 5:12 AM
#9
Could I change the color to 'null'
 Fracman
11-07-2004, 10:38 AM
#10
TK, what do you mean with color "null"?
This one simply doesnt exist...
 TK-425
11-07-2004, 3:56 PM
#11
Sorry!
Forgive me I know nothing about shaders.
 lassev
11-08-2004, 2:51 AM
#12
You see, you cannot really delete or remove anything that's in the assets#.pk3s. So, if you want to get rid of this effect, you need to replace it with something. But you can't replace something with nothing, as that would be removing in all but name. That's why you need to modify that shader entry in such a way that it's very simple, and doesn't actually look like anything in game - in practice: Null it.

What those modifications really are in code, that's for you to decide and make. One obvious solution might be to have only one totally transparent shader layer (change the texture appropriately).

And you can't do things like this unless you learn something about shaders.
 TK-425
11-10-2004, 7:34 AM
#13
Ok, I may have fixed it.
But now I would like to know what shader contains the effect for force rage:confused:
 TK-425
11-10-2004, 3:53 PM
#14
Well I didnt fix it I changed the protect image to an invisible pic and it didnt fix it.
Does anyone know of any way to get rid of the color used for this effect?
Page: 1 of 1