Fur shader


(motorsep) #1

Does anyone have example of the fur shader?

I would love to get something like this done:
http://shaderlab.com/image/farm1.static.flickr.com/43/77473044_878a11b15b_o.jpg

Thank you.


(Detoeni) #2

Had this kicking about from an old et map, added a few coments to the bits you’ll be intrested in.

textures/test/b_hedge // this is the shader that get added to the brush/mesh
{
qer_editorimage textures/test/hedge_sml_clone.tga
q3map_nonplanar
q3map_shadeangle 120
q3map_cloneShader textures/test/b_hedge_alpha //this adds another layer
surfaceparm nomarks
implicitMap textures/test/hedge.tga
}

textures/test/b_hedge_alpha //this is what gets added to above
{
qer_editorimage textures/test/hedge_sml.tga
cull disable
nomipmaps
nopicmip
polygonOffset
q3map_fur 1 4 0 //number of layers - off set in units - fade
q3map_nonplanar
q3map_shadeangle 120
surfaceparm nomarks
surfaceparm alphashadow
surfaceparm trans
implicitMask textures/test/hedge.tga
}

In that picture you link to, the second shader just has more layers. Too many layers will nerf your fps.

also see the q3map2 shader manual for more info
http://members.lycos.co.uk/quakeroats/q3map2/shader_manual/


(obsidian) #3

Better link to the shader manual, BTW:

http://www.robotrenegade.com/q3map2/docs/shader_manual/index.html


(motorsep) #4

Thanks you guys… The only thing I want to mention is that there is nothing about fur in the Shader Manual. The chapter called Fur has no link and it’s inactive.

EDIT: Detoeni, could you please provide those .tga files that you used for your fur shader?


(Detoeni) #5

Not really worth it, its just me neighbours hedge tiled as the base layer, and the same again but using the alpha to remove bits. It was used so in game my hedge has a little depth to it. If your looking to reproduce the effect to test, just point your shaders to any texture with an alpha channel.

@Obsidian- Thanks.


(obsidian) #6

Sue me. I haven’t bothered writing one yet so it’s just a placeholder. :slight_smile:

But there’s more than enough in the manual to write your own shader, look up q3map_fur and q3map_cloneShader.


(boddo) #7

i wrote a shader and short guide to making fur a while ago

url; http://www.cyberpunkcafe.com/fur_shader/fur_tutorial.html

i use it primarily for grass myself, and a few instances I have use it to give a fluffy appearance
I also use a derivative of it for some fake ‘glow’ on neon lit signs

it can look really cool if applied properly
:slight_smile:

attached is a few images of it