News:

Come Chat with us live! Learn how HERE!

Main Menu

shader stuff

Started by swamp-cecil, December 14, 2010, 09:57:48 PM

swamp-cecil

so, i want to make a texture that is transparent on white areas on the texture and can be walked through. Here is my code. Since it is my first shader coding, it would probably be wrong.
textures/sinix/warning
{
{
map textures/sinix/warning.tga
surfaceparm trans
surfaceparm nonsolid
surfaceparm nolightmap
blendfunc add
}
}


i took the display from arachnig2 and modified it. does this work?
REMEMBER: the WHITE parts MUST be transparent, not the black parts.
Quote from: DraZiLoX on December 28, 2010, 11:31:28 AM
Quote from: Repatition on December 28, 2010, 02:30:30 AM
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

CATAHA

surfaceparm section should be right after 'textures/sinix/warning {'
Check shader manual for details
Russian q3/trem mapping site: http://tremlair.krond.ru/
=[ Boxmaps suck if they have no concept ]=

Ice Trap (InstaGib)

Other maps: A.T.D*S Remake

swamp-cecil

Quote from: CATAHA on December 14, 2010, 10:19:03 PM
surfaceparm section should be right after 'textures/sinix/warning {'
Check shader manual for details

link to the shader manual? :S
Quote from: DraZiLoX on December 28, 2010, 11:31:28 AM
Quote from: Repatition on December 28, 2010, 02:30:30 AM
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

CATAHA

#3
google -> shader manual? =D
Ok,ok... i know, u lazy like we all here. Try check here: http://q3map2.everyonelookbusy.net/shader_manual/
seriously... you trying mapping without shader manual knowledges? There is a lot of amazing things you can do using only shaders. Learning how shaders work take a lot of time, but totally worth it.

PS lol, my site 7th on 'shader manual' request in google! O_o

UPD: You can try shaders editor Q3ASE: http://www.bpeers.com/software/q3ase/q3asetutorial.html, but i strongly recommend read shaders manual for basic knowledges.
Russian q3/trem mapping site: http://tremlair.krond.ru/
=[ Boxmaps suck if they have no concept ]=

Ice Trap (InstaGib)

Other maps: A.T.D*S Remake

CreatureofHell

Looked at this topic at all for the transparency?
{NoS}StalKer
Quote<Timbo> posting on the trem forums rarely results in anything good

swamp-cecil

close, but thats not what i want Creature. The graffiti is ON the wall. I want it floating like a hologram on no texture. would it still work?
Quote from: DraZiLoX on December 28, 2010, 11:31:28 AM
Quote from: Repatition on December 28, 2010, 02:30:30 AM
these are stupid suggestions, don't even waste our time.
I don't like your negative attitude.

CreatureofHell

Oh, try checking out Ingar's hologram textures in Vega and Procyon.
{NoS}StalKer
Quote<Timbo> posting on the trem forums rarely results in anything good

mindriot

Quote from: swamp-cecil on December 15, 2010, 08:18:37 PM
close, but thats not what i want Creature. The graffiti is ON the wall. I want it floating like a hologram on no texture. would it still work?

Yes it should still work.

- Make a detail brush.
- Completely texture with common/nodraw.
- Texture one brush face with your shader.


Possible configuration:

textures/sinix/warning
{
    qer_editorimage textures/sinix/warning.tga //image to display in radiant

    nomipmaps //prevents resolution decrease due to distance
    nopicmip //prevents resolution decrease due to distance

    surfaceparm trans
    surfaceparm nonsolid
    surfaceparm nolightmap
    surfaceparm nomarks

    deformVertexes autosprite2 //shader always faces the player

    {
        map textures/sinix/warning.tga
        blendfunc filter
    }
}