View Full Version : Lightsaber Colors - Adding New Ones
Ok this has REALLY been buggig me. I do like the green red and blue colors. The new ones are -ok- But I thought there would be more. I'm looking on how to add new colors. I can make all the ncessary graphical changes with photoshop, but how do I add the new colors to the .pk3 files???? Any help/suggestions?
04-02-2002, 01:25 PM
I'm working on this, too. I want a silver/white saber like Corran Horn's.
So I edited all the jpg and tga files for menu and for ingame, and the white color works after i packed it with winzip and renamed it to pk3.
But the glow effect still has the color of the saber that I replaced, adding new sabers doesn't seem possible at the moment.
As you can see, the saber is white, but the blur and the glow on the ground is still orange.
If anyone knows what has to be eited to make the glow effects the right color please tell me. I also looked in the .shader files, but I can't find the right entries.
HELP, please, I want Corran's saber. ;)
04-02-2002, 02:14 PM
Garik, who IS that model of yours? Looks good :)
04-02-2002, 02:45 PM
Oh, the model. That's my very own self created ;) version of Keiran Halcyon aka Corran Horn.
It's not perfect yet, I'm looking for better blond hair textures.
04-02-2002, 02:53 PM
I think the blonde looks good. Whos it based on(model)?
04-02-2002, 02:55 PM
It's based on the Jedi Model with textures from the second Jedi.
I edited the face and the hair myself, but this was really just a first try, and I still want to make it look better.
04-02-2002, 02:56 PM
But back to my problem, forgot to ask. Have you some idea or experience how to change the color of the glow and blur?
I need this!!!
04-02-2002, 03:02 PM
This was the first bit of editing I tried, as I too wanted a white saber. I had the same problem though, and I searched through a lot of files and couldnt find colours for that part of the saber. I'm guessing its in the code.
04-02-2002, 03:35 PM
I had a look for you, I cant find a thing
04-02-2002, 04:46 PM
how did y'all go about getting as far as you did?
step-by-step, if you would...
I get slow ;)
Wow. Didn't expect this many people were interested in adding/changing saber colors. I too what a white/silver saber, I just think it would look a lot better. I just don't know what to do :/
04-02-2002, 05:23 PM
Have you tried editing the sabers.shader file?
04-02-2002, 05:39 PM
Ok, for all those people who like new saber colors:
Here is a short explanation what I did:
Open the assets.pk3 from the Jk2/gamedata/base folder with winzip and extract it to a directory you like.
Then find the files
from the /gfx/effects/sabers folder
from the /menu/art folder.
Color is the color of the saber you want to replace.
Now open these files with a grapgic program like photoshop and change the textures.
Be sure to keep the selection mask in the tga files.
After you've saved the files you must zip the files with winzip, it's recommended that you only zip the edited files, so the archive won't be too big.
And keep the directories when you zip it.
Then rename the ending .zip to .pk3 and copy the new file top your JK2/gamedata/base folder.
That's it. now you should have a changed saber. If the game doesn't start the texture have the wrong format, so don't change the compression when you save the jpg files.
Right now it seems it is not possible to add new sabers, just replace them, and you have limitations. I haven't figured out how to edit the blur and glow color, so that's the next thing that must be done. Any idea from more experienced modders or any other people is welcome.
04-02-2002, 05:43 PM
Yes. I tried the sabers.shader. I also read the shader tutorial so that I understand what's in it. And as far as I know it just says that the color for the shader is taken from the texture.
So I think this file is only for the "flickering" effect of the saber, but not for the glow and the blur color.
If anyone knows better please correct me, I won't be angry :p
04-02-2002, 10:05 PM
has anyone messed with the files "blurcore.jpg" and "blurglow.jpg." It seems that each color has two files (glow and line) and then there are these two by themselves. There is also a yellow_glow.tga by itself.
04-02-2002, 10:56 PM
i wanna know how we edit the pics without redoing the whole thing!
04-03-2002, 04:55 AM
Does anyone else think the white lightsaber with the orange glow is actually kind of cool?
On a more relevent note, could you post image files for this somewhere? If I attempted this it would probably look like a lightsaber built by some, well, crazy Jedi.
04-03-2002, 08:51 AM
I checked the blur_core and blur_glow files, and they are just grey. No colors. so it there must be some other file or entry that is responsible for the colors.
I wanna release a full Corran Horn (more Keiran Halcyon) when I figured out how to change this cool looking ;) orange. But at the moment there are only some loose files, nothing I can release.
Only if you really (really really) want it I will pt together an archive, but remember, it's not ready and still beta.
04-03-2002, 10:00 AM
Yeah, I figured out what is responsible for the glow of the saber.
It's the entry in the sabers.shader
blendFunc GL_ONE GL_ONE
Now I have to find a way to edit the vertex color.
I have to read the tutorial once again, and if someone knows what to do, you know what to do.;)
04-03-2002, 10:44 AM
I took a quick look at it, and according to me, if you create a new texture with a white glowing dot in the middle, 256 height, 256 width, and save it as white_glow.tga
Then add this to the shader :
blendFunc GL_ONE GL_ONE
@ work, cannot test it.
Hrmmm....seems we might be onto sothing. I'll try and see what I can do from where I am and see if anything works....I want my White Saber! ;)
04-03-2002, 11:00 AM
Yep, I did this on Sunday, but it didn't work. My files were titled silver... but there was no difference. I removed all lines with ornage and replaced them with silver, and all textures with orange were replaced with silver ones by me. but the glow was still orange, don't know why.
If you have some experience, would you mind looking again on this, or even test it? I can send you my edited files if that would help.
I looked at every file, I think I understand that things with the shaders, but I can't find the responsible files, that give the glow it's color.
I think I am going to give up until a SDK is released.
04-03-2002, 11:38 AM
Can only test it at home, and I won't be there for about 3 more hours. MSN : email@example.com icq 99743637
04-03-2002, 12:53 PM
Hmm. The BlurGlow.jpg is a white texture, and the shader says RGBGen Vertex, so there must be another file that creates the colors, right?
The color_glow files don't seem to be responsible for this.
So where can I change this. This drives me crazy.
Em, if someone from Raven reads this, HEEEEEEELLLLLP, for my sanity!
04-03-2002, 02:32 PM
Where can I find information on editing the shaders?
04-03-2002, 03:46 PM
Just a thought but maybe the blur color has something to do with the color of the light the saber casts? If you can find out how to change that then maybe you can change the blur color.
04-03-2002, 03:47 PM
You can send me the stuff now if you want, i'm at home :)
04-03-2002, 05:02 PM
I got rid of the yellow glow:
available on my site is a pk3 file with the saber mod: http://billcow0.tripod.com/whitesaber.pk3
I did two things:
recolored the images
commented out the "rgbgen vertex" lines (mentioned earlier).
The only problem is that the light cast on the ground is still yellow, and the other sabers also are sans-colored-glow.
Next thing is to look at the models for the vertex color (that would only affect the yellow saber, and it would change the color of the light created as well... if there are different models for each saber color that is...)
04-03-2002, 05:17 PM
Yep. This also works when you change
but that also affects the other sabers. So the vertext must be in the model.
Do you know which model it is?
04-03-2002, 05:29 PM
ok, maybe I'm just stupid but I can't get this to work at all. I extracted the files and change the colors and everything, zip them back up, but when I start the game it doesn't work. Is there something specific I should be naming the .pk3 file. Any help would be greatly appreciated.
Hrmmm...that link isn't working for me...neither is the site itself. Did you take it down?
04-03-2002, 05:41 PM
I looked through the assets0.pk3 and found the models for the saber handles, (in models\weapons2) but they didn't have any blades attached to them. Nor did it reference any of the glow textures.
The next step is to wait for the SDK to be released; that will surely allow us to change the sabers however we want.
****! Tripod won't let me link to the files on my site. Sorry, there's not much I can do, my actual web site is on my own computer, and it's currently down (MySQL stopped working so the page doesn't work either). Not to mention that I turn my computer off except from about 3 pm to 9 pm EST.
04-04-2002, 12:26 AM
Well the blur dot texture is I belive what is casted on the ground when u have ur sabre extended. Could the RGB Vertex have something to do w/ another shader ???? I'm looking into it as we speak :) ..err I type : I really want a BLACK sabre w/ a purple glow :D :D
04-04-2002, 12:29 AM
Well I'm seeing some mention of sabre flares and effects in the effects.shader ..... maybe they have it stread out threw different shaders ?? there is also a yellow glow shader in there that uses the .tga yellow glow file in the sabre model directory.
04-04-2002, 03:04 AM
The saber flare is the effect you see when two sabers hit each other. The yellow_glow is used for a texture.
04-04-2002, 04:42 AM
I can't remember what it's called, but I think I found the image for the glow on the ground. I just unzipped the .pk3 and did a search for "orange", and I *think* one of the ones I found was the one responsible for the glow. I did this yesterday though, so I might be not be remembering correctly.
04-04-2002, 05:23 AM
I've been trying to get a new saber colour selectable under the player menu. I've looked at ingame_player.menu in assets1.pk3 but I've had no luck understanding where the colours for choosing are entered. Maybe someone else might know it.
I've added in extra code for the colour I named my files under sabers and ui.shader yet it doesn't appear automatically.
04-04-2002, 07:20 AM
It is not possible to add a saber, just replace old ones.
For the menu you have to search for this files from the assets0.pk3, and this works:
choose the color you want and replace these textures with your new ones.
You can rename that files, but than you have to search for the filesnames in all files from assets0 and assets1, open the search results with a texteditor and replace the filenames with yours, but that wouldn't make sense at the moment.
04-04-2002, 07:23 AM
A black saber is not really possible, because everything in the textures that is some sort of black is transparent in the game.
I tried it, look at this:
04-05-2002, 05:09 PM
Anyone thought of doing a teal/aqua saber? I think that'd be cool.... something like THIS
04-05-2002, 05:31 PM
Anyone thought of doing a teal/aqua saber? I think that'd be cool.... something like THIS
04-05-2002, 05:43 PM
Garik: the black shows up as transparent 'cause of the additive blend mode used in the shader. Change the line in the shader that says "blendFunc GL_ONE GL_ONE" to read "blendFunc FILTER". Then create a saber map with a black core and white background. this should give you a saber that takes away from the stuff behind it rather than adding to it.
Yevin: A teal saber would be easy, but until the sdk comes out, it would have to replace another saber, and the glow on the ground would be that saber's color, and the streched out part when you swing would also be the wrong color.
04-05-2002, 05:48 PM
Cool, thanx for the hint. I will play with this option the next days, so maybe I can make more interesting sabers. :D :D
04-07-2002, 09:53 AM
The true bane of all this is not having RB&G slider bars for lightsaber color. Modders, here is your challenge!!! Raven, it is our request!!
04-08-2002, 05:55 PM
I know this is late in the post but I just have to ask cuz meesa going krazy.......
I have been trying to change the color of a saber jpg from the .pk3 with PhotoShop and when I save it, it changes the file size from 2k to 6k. Does the file size matter? If so, how do I save it to the correct size?
04-08-2002, 06:48 PM
The size of the jpeg does NOT matter. I'm not completely sure, but I think the coding for JPEG compression only changes with quality (which is causing the different size, btw) when compressing, but not reading.
04-08-2002, 06:51 PM
Hmm... I figure that the saber colors are defined in the game code. So (for MP), the cvar color1 has 6 values, 0-5, that select the saber color. Each value is probably accociated with the textures (glow and line) for the appropriate color, then the light source is set to that rgb color value and (possibly) a simple rgb filter is applied to the greyscale blur texture. This would explain why we can't add sabers, change the light color, or change the blur color. (I heard that you can change the blur map color, but all the sabers end up with that color of blur)
That's how I think it works... But I could be wrong, it's mostly theoretical at the moment. So until the sdk comes out, we're kinda stuck. :(
04-08-2002, 07:47 PM
Thanks for the feedback. I did try to change the quality between high, mid and low. The best I could do is get it down to 5k. If the JPEG size doesn't matter, then I must be doing something else wrong to get it to work.
04-08-2002, 10:03 PM
Hm, you are right. I searched all the files for the color1 value, but there is no connection we could use for editing the colors of blur and glow.
The only thing that color1 does is changing the saber to the 6 colors that are in the game.
04-08-2002, 10:13 PM
I would have assumed that the Quake 3 Engine itself colours the sabers as it is capable of giving an RGB value to a greyscale and recolouring it.. Adding RGB sliders would be pretty easy as far as mods go allowing any RGB value to be assigned to a saber, but would require both a user and server-side mod, so without additional features I suspect it wouldn't take off.
04-09-2002, 12:51 AM
ok im ganna put my 2 cents in
ive been racking my brain trying to change the blur color. Ive tried going as far as editing the shader file using q3ase but when you edit the shader in any way at all it takes away the blur.
SO.....you can just take away the blur and have a custom light saber but you will get error messages on your screen every time you swing it and you wont have a blur.
Im pretty sure that in order to change or add colors you have to edit the origional pk3 file but when you do that it will not let you play because the pk3 file has been changed.
If any of this has been covered in this topic then im sorry to be repeating it. :P
so far all ive been able to do is just get rid of the blur or have a different colored blur...im sure some crazy haxor is cooking up something right now to change this all anyways...(i hope)
04-09-2002, 05:17 PM
Ok, I know this sounds weird but I deleted the Yellow.Tiff file and one of the saber effects was lost but it did help make my customs sabers look better. try and just get rid of the file. I currently am working on a Dark Saber Mod. That changes the GLOW effects to give them a more gothic appeal. I found if you use grayscale values around 50% you can almost counter the black transanency problem.
Now I am looking for the file that makes the color range black transparent, If we alter this and change the value of white to transparent and black to opaque my problem is fixed. As far as the problem of getting a normal effect when you swing your saber, white saber=white effect. Try and delete the Tiff file, I don't know what it does? The two effects also overlap themselves in different swings.
04-09-2002, 07:08 PM
You don't need to add the files to the original pk3, just create a new one and put it in the \Gamedata\base directory
The file that controls the blending (and thus the inability to use black) is in the pk3 under /shaders/sabers.shader
The format of the file is the same as quake 3 uses, so look up info on that if you need help. JK2 seems to have a couple new features, but nothing seems to be removed from quake 3.
04-09-2002, 09:24 PM
I made a teal saber (looks really cool with the new aiee! model). I don't really wanna take the time wrestleing with geocities to upload it tho. So those of you who want it, just e-mail me.
vBulletin®, Copyright ©2000-2014, Jelsoft Enterprises Ltd.