Transparency?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
Alcoholic
General
Posts: 1470
Joined: Sat May 17, 2003 5:57 am
Location: California
Contact:

Transparency?

Post by Alcoholic »

Is there any way to change transparency of a brush/model??
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

I am sure you can by makeing a custom shader . I had a quick look at the shader manual it has things like
6.2.1.3 blendfunc blend
Shorthand for blendfunc gl_src_alphagl_one_minus_src_alpha. This is conventional transparency, where part of the background is mixed with part of the texture.
here is a shader I made for a dust beam a while ago I think that the rbg constant will set the transparency level and can be set for both textures . $whiteimage is an internal texture and can be called by the user . You may need a make a custom model.tik if you want to use both in the game and it may be possible to do something like this to a script_object

$mybrush shader textures/brian/my_dustbeam2

but I don't know about that for sure . There are also animated textures I think t|trude might know something about that . Any way the models use shaders so I'dd try it .
textures/brian/my_dustbeam2
{
qer_editorimage textures/brian/dustbeam3.tga
qer_keyword utility
qer_trans .4
surfaceparm nolightmap
surfaceparm nonsolid
surfaceparm trans
sort additive
cull none
{
map $whiteimage
blendFunc add
rgbGen constant .1 .1 .1 //was .15
nextbundle
map textures/common/qer_volumetric_fade.tga
}
This is the shader manual I looked at http://www.qeradiant.com/manual/Q3AShader_Manual/
User avatar
small_sumo
Lieutenant General
Posts: 953
Joined: Mon Jul 01, 2002 4:17 pm
Contact:

Post by small_sumo »

Tell us more of what your trying to do.

:)
Image

www.smallsumo.tk

Yeah Truth above Honor Man ;)
Post Reply