Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsJedi Outcast and Jedi Academy Editing Forum → Grass and shaders
Grass and shaders
2004-07-06, 8:17 AM #1
Well, I'm working on an un-anouced map, I found this neat grass shader in a bushido map pack for JO.

-----------------------------------------
textures/f0x0r/japanvertgrass01
{
qer_editorimage textures/f0x0r/japanvertgrass01
{
map textures/f0x0r/japanvertgrass01
}
{
map $lightmap
blendfunc filter
rgbgen identity
}
{
map textures/f0x0r/ss_grassjapan
surfaceSprites vertical 5 20 25 2000
ssVariance 1 2
ssWind 4.0
alphaFunc GE192
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
rgbGen vertex
}
}
-----------------------------------

It's pretty decent, and with a little tweaking it will suit my needs (if i get permission to use it that is). But I am having trouble. to use this shader, you have to lay down this grass shader/texture. Which is visable and solid. Then the grass sprites appear on that. I want it so I can lay down something that is invisible and not solid. Kinda like nodraw. I don't have any idea what to do. Any suggestions.

------------------
"Whats your name"
Cody
"No, whats your real name"
Arkon............
Proud member of the Co-op
Flipsides crackers are the best crackers to have ever existed
2004-07-06, 8:48 AM #2
Well, I made a few changes, ignore the file names and stuff.

------------------------------
textures/grass/floor
{
qer_editorimage textures/grass/floor
surfaceparm nomarks
surfaceparm nodraw
surfaceparm nonsolid
surfaceparm nonopaque
surfaceparm trans
q3map_nolightmap

{
map $lightmap
blendfunc filter
rgbgen identity
}
{
map textures/f0x0r/ss_grassjapan
surfaceSprites vertical 5 20 25 2000
ssVariance 1
ssWind 0.0
alphaFunc GE192
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
depthWrite
rgbGen vertex
}
}

-----------------------

I thought that would make the ground texture invisble.(the nodraw part) But it made everything invisable so it seems. I still need some help.

------------------
"Whats your name"
Cody
"No, whats your real name"
Arkon............
Proud member of the Co-op
Flipsides crackers are the best crackers to have ever existed

↑ Up to the top!