Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Lightsaber Colors - Adding New Ones

Page: 1 of 2
 Jaxy
04-01-2002, 11:56 PM
#1
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?
 Garik Loran
04-02-2002, 1:25 PM
#2
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.
http://www.uwg-oer-erkenschwick.de/SWJK2/shotwhite1.jpg)
http://www.uwg-oer-erkenschwick.de/SWJK2/shotwhite3.jpg)

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. ;)
 ReaperFett
04-02-2002, 2:14 PM
#3
Garik, who IS that model of yours? Looks good :)
 Garik Loran
04-02-2002, 2:45 PM
#4
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.
 ReaperFett
04-02-2002, 2:53 PM
#5
I think the blonde looks good. Whos it based on(model)?
 Garik Loran
04-02-2002, 2:55 PM
#6
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.
 Garik Loran
04-02-2002, 2:56 PM
#7
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!!!
 Prophet
04-02-2002, 3:02 PM
#8
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.
 ReaperFett
04-02-2002, 3:35 PM
#9
I had a look for you, I cant find a thing
 ManeFraim
04-02-2002, 4:46 PM
#10
how did y'all go about getting as far as you did?

step-by-step, if you would...

I get slow ;)
 Jaxy
04-02-2002, 5:01 PM
#11
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 :/
 Mierk
04-02-2002, 5:23 PM
#12
Have you tried editing the sabers.shader file?
 Garik Loran
04-02-2002, 5:39 PM
#13
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

color_glow2.jpg
color line.jpg

from the /gfx/effects/sabers folder
and

fx_color.jpg
saber_color.tga
saber_color_glow.jpg
saber_color_glow2.jpg

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.
 Garik Loran
04-02-2002, 5:43 PM
#14
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
 StarWars
04-02-2002, 10:05 PM
#15
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.
 Necro
04-02-2002, 10:56 PM
#16
i wanna know how we edit the pics without redoing the whole thing!
 CrazyJedi
04-03-2002, 4:55 AM
#17
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.
 Garik Loran
04-03-2002, 8:51 AM
#18
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.

@CrazyJedi
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.
 Garik Loran
04-03-2002, 10:00 AM
#19
Yeah, I figured out what is responsible for the glow of the saber.

It's the entry in the sabers.shader
gfx/effects/sabers/saberBlur
{
cull disable

{
clampmap gfx/effects/sabers/blurglow
blendFunc GL_ONE GL_ONE
rgbGen vertex
}
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.;)
TELL ME!
 UniKorn
04-03-2002, 10:44 AM
#20
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 :

gfx/effects/sabers/white_glow
{
cull disable
{
map gfx/effects/sabers/white_glow.tga
blendFunc GL_ONE GL_ONE
rgbGen vertex
}
}

@ work, cannot test it.
 Jaxy
04-03-2002, 10:58 AM
#21
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! ;)
 Garik Loran
04-03-2002, 11:00 AM
#22
@UniKorn

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.
 UniKorn
04-03-2002, 11:38 AM
#23
Can only test it at home, and I won't be there for about 3 more hours. MSN : wrld_unikorn@hotmail.com icq 99743637
 Garik Loran
04-03-2002, 12:53 PM
#24
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!
 RedNight
04-03-2002, 2:32 PM
#25
Where can I find information on editing the shaders?
 RedNight
04-03-2002, 3:46 PM
#26
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.
 UniKorn
04-03-2002, 3:47 PM
#27
You can send me the stuff now if you want, i'm at home :)

wrld_unikorn@hotmail.com
 billcow
04-03-2002, 5:02 PM
#28
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...)
 Garik Loran
04-03-2002, 5:17 PM
#29
Yep. This also works when you change
rgbGen vertex
to
rgbGen identity,
but that also affects the other sabers. So the vertext must be in the model.
Do you know which model it is?
 SuperSumo
04-03-2002, 5:29 PM
#30
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.
 Jaxy
04-03-2002, 5:39 PM
#31
Hrmmm...that link isn't working for me...neither is the site itself. Did you take it down?
 billcow
04-03-2002, 5:41 PM
#32
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.

[edit]
****! 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.
 FrogLeggs
04-04-2002, 12:26 AM
#33
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
 FrogLeggs
04-04-2002, 12:29 AM
#34
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.
 UniKorn
04-04-2002, 3:04 AM
#35
The saber flare is the effect you see when two sabers hit each other. The yellow_glow is used for a texture.
 CrazyJedi
04-04-2002, 4:42 AM
#36
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.
 fabrikashon
04-04-2002, 5:23 AM
#37
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.

assets1.pk3/ui/jk2mp/ingame_player.menu
 Garik Loran
04-04-2002, 7:20 AM
#38
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:
/menu/art/fx_color
/menu/art/saber_color
/menu/art/saber_color_glow
/menu/art/saber_color_glow2

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.
 Garik Loran
04-04-2002, 7:23 AM
#39
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:
http://www.uwg-oer-erkenschwick.de/SWJK2/shotblack.jpg)
 Yevin Orion
04-05-2002, 5:09 PM
#40
Anyone thought of doing a teal/aqua saber? I think that'd be cool.... something like THIS
 Yevin Orion
04-05-2002, 5:31 PM
#41
Anyone thought of doing a teal/aqua saber? I think that'd be cool.... something like THIS
 billcow
04-05-2002, 5:43 PM
#42
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.
 Garik Loran
04-05-2002, 5:48 PM
#43
Cool, thanx for the hint. I will play with this option the next days, so maybe I can make more interesting sabers. :D :D
 XaiverMerlyn
04-07-2002, 9:53 AM
#44
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!!
 maxiron
04-08-2002, 5:55 PM
#45
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?

Help!
 billcow
04-08-2002, 6:48 PM
#46
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.
 Raptor386
04-08-2002, 6:51 PM
#47
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. :(
 maxiron
04-08-2002, 7:47 PM
#48
billcow -

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.
;)
 Garik Loran
04-08-2002, 10:03 PM
#49
@ Raptor386


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.
 WitchDrAsh
04-08-2002, 10:13 PM
#50
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.

WDA
Page: 1 of 2