PDA

View Full Version : Custom Shaders!!


Gohan_Trunksss
11-11-2002, 04:20 PM
I need a tutorial on creating Custom shaders for stuff like light emmitting shaders and liquid shaders so i can make my own lava/fog, and even moveing shaders like fire burning. ive been waiting for Richdiesel to do the tutorials for his website but he hasnt yet and i also searched many other tutorial site but either they dont have a tutorial on shaders or the link didnt work :( so please help me if you can, thanks


not sure if this is the right thread to post this either so if its not can the admin please move it to the right one

WhiteShdw
11-11-2002, 04:39 PM
Well, all i can tell you about shaders is to look at a shader file. I've been learning shaders by simply looking at a shader in game, then having a look at the picture files and at the shader file itself.

Make sure you have a good picture editor like photoshop and get the JK2 dev kit. In there you will find a program named ShaderED. That's a program that will help you make a shader, but it will not explain anything.

So work by example. Open one of the shader files from the game itself and have a look at what it contains. Don't be afraid to experiment and start with something simple.

Gohan_Trunksss
11-11-2002, 05:45 PM
alright thanks, if i cant find the program or something I'll be back;)

Gohan_Trunksss
11-11-2002, 05:54 PM
ok stupid question, where do i get jk2 dev kit? i cant find it on jediknightii.net

WhiteShdw
11-11-2002, 06:37 PM
http://www.jediknightii.net/files/index.php?link=file&id=950

and v 2.0

http://www.jediknightii.net/files/index.php?link=file&id=951

download them both.

Wudan
11-11-2002, 07:03 PM
I wrote my shaders by hand, based on previous shaders. Because shaders are tricky for some and easy for others, I had a pain in the butt time getting them to work.

Gohan_Trunksss
11-11-2002, 08:31 PM
alright i got it ^_^ before i start messing with a shader should i duplicate it so the original shader still exist?

WhiteShdw
11-11-2002, 09:14 PM
Originally posted by wudan
I wrote my shaders by hand, based on previous shaders. Because shaders are tricky for some and easy for others, I had a pain in the butt time getting them to work.

That's what i do as well, but once i get the code ready i check it in ShaderEd. That's also nice for editing an existing one and for error checking, but not for writing new ones.

alright i got it ^_^ before i start messing with a shader should i duplicate it so the original shader still exist?

DO NOT start messing in the original shader files. Those are your examples. Make a new shader file and copy and paste the shader code you want to edit.

To make a new shader file, just create a new text file and change the "txt" extension to "shader".

Gohan_Trunksss
11-11-2002, 09:16 PM
alright lol now im glad i asked that before i did something :)

Leslie Judge
11-12-2002, 03:43 PM
Hehe :) I know this feeling. :D

Wes Marrakesh
11-12-2002, 04:02 PM
What'd you screw up to make that comment, Leslie? :p

Leslie Judge
11-13-2002, 05:33 PM
Once after a week hard work I was tired enough to remove the only hdd controller in WinNT4 because its name contained SCSI and we had an IDE drive in that machine. Reboot and guess what: no boot device -> reinstall WinNT. AND the only Hungarian version installation CD was just broken in an other machine one or two hours ago during install. So I had to install an English one and told the user (he don't speak English) that he wouldn't understand the error and other messages even if they were in Hungarian so English isn't much worse for him. :D

If I ask someone they could tell me, that there is no other controller even if there is only IDE drives in WinNT what I know normally but it was 2am and the seventh day. :)

taboo
11-13-2002, 08:35 PM
I've ended up futzing around with a few shader scripts with precious little idea of what I was doing. Here is some of the info that I found helpful. Good luck!

Q3A Shader Manual (http://qeradiant.com/manual/Q3AShader_Manual/)

mini shader tutorial (http://quake3.qeradiant.com/q3afiles/shader02.htm)