PDA

View Full Version : shaders tutorial?


graves
07-09-2003, 11:31 PM
I'm a noob when it comes to shaders. Does anyone know of a good step by step tutorial for creating a .shader file for a player model?

CortoCG
07-10-2003, 03:33 AM
It depends on what you're planning to achieve. A basic shader is simple enough to guide you through this forum. For a start I think it's okay to tell you how to get the most basic shader going right here.
But I need to know what are you looking for first.
About tutorials, I don't know about good tutorials, didn't search neither.

graves
07-10-2003, 06:50 PM
Well, I'm trying to create hair using shaders. Similar to the Wookiee model. I just need to make it 2-sided and alpha out the ends.

Hindy
07-12-2003, 02:48 PM
OOh I would be interested on this subject too...

graves
07-13-2003, 12:16 AM
Hmm... I tried coping and pasting the "legfur" lines from the wookiee.shader file and renaming whatever needed to be renamed. It seems to work ok but for some reason I can see my saber through it:p Also the transpanency edges aren't as sharp as I would like... Maybe it's just my crappy videocard.

Lil Killa
07-13-2003, 03:53 AM
He probably has ridges on the model that has the fur applied to it i dunno you might wanna look at it in a modaling program. if thats not it than I dunno how:(

Wanderer
07-15-2003, 01:21 AM
I would try it over a searchengine. Since JO based on the Q3 engine there have to be some tutorials related to Q3...
they should also work for JO shaders.

graves
07-15-2003, 01:57 AM
yeah, I tried that. The only thing I found was a Quake III shader manual at:
http://www.heppler.com/shader/
while it is very helpful, it's a little hard to understand... I'm still having problems with the lightsaber showing right through the model. Its driving me insane:p

CortoCG
07-15-2003, 02:03 AM
You can download, read or print the shaders bible from www.qeradiant.com. You can also download the SoF2 sdk and read/print the shader manual from there, cuz it includes the changes made by Raven to the shaders system.
I suggest you to read it, try to understand the concepts and every feature (at least the ones you find usefull) and then experiment for a while.
It's pretty amazing the efx you can achieve by combining several stages with different efxs.

|GG|Carl
07-31-2003, 01:35 PM
...I'm still having problems with the lightsaber showing right through the model. Its driving me insane:p
I want to get the lightsaber to glow throgh my skin, it's a hologram ugnaught skin, and everything is visible through it, except for the lightsaber...

can you please tell me how you made the lightsaber visible through the body?

graves
07-31-2003, 03:50 PM
models/players/meryl/hair
{
{
map models/players/meryl/hair
blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA
rgbGen lightingDiffuse
}
}


I think this was the line I used. I'm not too sure though.