Lescuyer Posted April 16, 2002 Share Posted April 16, 2002 Hi, Today, I started to create Anakin's Skywalker saber shown in "A New Hope" (the blue/green one that Ben shows to Luke on Tatoine). The shape and colour of the "blade" seems accurate, but I haven't found a way to change the colour of the saber trail. Does anyone knows how to change this? Thanks a lot! Link to comment Share on other sites More sharing options...
toolboi Posted April 16, 2002 Share Posted April 16, 2002 I beleive that you have to change the "glow" colors. Blue_glow 1 or two I beleive. I cant remember how, but while fiddling with a saber mod I did it. Link to comment Share on other sites More sharing options...
Boba Rhett Posted April 16, 2002 Share Posted April 16, 2002 Edit the blurcore and blurglow images. They're in the same folder that you got the saber images from. Link to comment Share on other sites More sharing options...
RedNight Posted April 16, 2002 Share Posted April 16, 2002 You can't change the color of the blur trail effect beyond the colors that are already there. The sabers.shader file pulls the blur/trail color from the game. Until the SDK comes out we can't figure out how to change it. Link to comment Share on other sites More sharing options...
Boba Rhett Posted April 16, 2002 Share Posted April 16, 2002 I'm not quite sure what you mean. I've changed the blur to all sorts of colors. Do you mean the tint? Link to comment Share on other sites More sharing options...
RedNight Posted April 16, 2002 Share Posted April 16, 2002 OK here we go... blue_line.jpg - defines the core color of the saber blue_glow.jpg - defines the glow color around the core blurcore.jpg - defines the shape of the motion blur/trail of the core blurglow.jpg - defines the shape of the motion blur/trail of the glow The colors for blurcore and blurglow are set in the sabers.shaders file, the rbgGen statement. From the shaders file... clampmap gfx/effects/sabers/blurglow blendFunc GL_ONE GL_ONE rgbGen vertex clampmap gfx/effects/sabers/blurcore blendFunc GL_ONE GL_ONE rgbGen identity Explanation frome the Shader Manual... 6.3.2 rgbGen identity Colors are assumed to be all white (1.0,1.0,1.0). All filters stages (lightmaps, etc) will get this by default. 6.3.6 rgbGen Vertex Colors are filled in directly by the data from the map or model files. Design Note: rgbGen vertex should be used when you want the RGB values to be computed for a static model (i.e. mapobject) in the world using precomputed static lighting from Q3BSP. This would be used on things like the gargoyles, the portal frame, skulls, and other decorative MD3s put into the Quake III Arena world Link to comment Share on other sites More sharing options...
Garik Loran Posted April 16, 2002 Share Posted April 16, 2002 Yep. That is exactly what I found out, and if you change the color of the blurcore.jpg and blurglow.jpg file all sabers have this color, e.g. you make the white image red even the blue saber has a red trail. And that's not really what we want, isn't it? Link to comment Share on other sites More sharing options...
Tie Guy Posted April 16, 2002 Share Posted April 16, 2002 Originally posted by RedNight You can't change the color of the blur trail effect beyond the colors that are already there. The sabers.shader file pulls the blur/trail color from the game. Until the SDK comes out we can't figure out how to change it. I've changed the color and shape and even changed it to flames instead of a blur. The thing you have to do is fill in BOTH files as the same thing if you want to change it completely, or just the blurglow file to change the color. What i sometimes do is change the glow to a dark color of what i want, and the core to lighter color of what i want to produce a nice effect. here check these out and see for yourself: http://www.angelfire.com/scifi2/tieguy/tieguysabers.zip Paste the link for it to work. They are all separate so don't put them all in at once. It overwrites the blue saber and everyones glow. Link to comment Share on other sites More sharing options...
Garik Loran Posted April 16, 2002 Share Posted April 16, 2002 Sorry to say that but THE LINK DOESN'T WORK!!!!!!! I'd really wanna see what you did with the sabers, 'cause I want to make this new white-silver saber for Corran Horn. Link to comment Share on other sites More sharing options...
toolboi Posted April 16, 2002 Share Posted April 16, 2002 I actually managed to get a silver saber trail. I think if our make both blur images a bright white then you should ge tthat effect. What also might be cool is to apply a noise level to the blurs so that they "sparkle". Link to comment Share on other sites More sharing options...
Garik Loran Posted April 16, 2002 Share Posted April 16, 2002 And the other sabers, do they still have their original trail when you make a silver one for a special color, e.g. the orange one. Or does this change the other sabers' trail colors as well? And if you don't have some webspace where i can download you cool sabers would you mind sending me an email with the sabers? This would be veeeeery nice Link to comment Share on other sites More sharing options...
RedNight Posted April 16, 2002 Share Posted April 16, 2002 Garik I don't think they understand yet that the blur/trail affects all sabers. For those that don't understand I'll try and explain. blurcore.jpg and blurglow.jpg are supposed to be white. Color is added to blurglow.jpg by the game depending on the color of the saber you are using. The color I believe is set by the same code that sets the color of the light cast by the saber. If I change blurglow.jpg to red this is the effect it has on all sabers. BLUE GREEN RED YELLOW ORANGE PURPLE Notice that the color of the light cast by the sabers different in each picture, this light and it's color is set somewhere in the game. So far no one has found a way to customize the light color cast by the sabers. Link to comment Share on other sites More sharing options...
[JIT]Jedi Posted April 17, 2002 Share Posted April 17, 2002 ok,ok....so u cant change the color on the ground because no1 has found a way? if im just dumb and dont have a clue...how do u change the ground color? Link to comment Share on other sites More sharing options...
Tie Guy Posted April 17, 2002 Share Posted April 17, 2002 Originally posted by Garik Loran Sorry to say that but THE LINK DOESN'T WORK!!!!!!! I'd really wanna see what you did with the sabers, 'cause I want to make this new white-silver saber for Corran Horn. Dang you Angelfire!!!! I hate them. I swear it worked last night. Oh crap! I just realized that i spelled it wrong. Here it is, and i'll edit the others. http://www.angelfire.com/scifi2/tieguy/tieguysabers.zip Rednight. Your right, the white is overwritten by the saber color. However, only white is overwirtten by the colors, like the black is made transparent. I first noticed this when trying to make a yellow blur over the blue saber. What i ended up with was a green blur. So your absolutely right, but the files may still be editted to your wishes...besides white of course. Link to comment Share on other sites More sharing options...
RedNight Posted April 17, 2002 Share Posted April 17, 2002 Tie Guy- Right you can change the blur files as much as you want but I'm just trying to piont out to those that don't seem to understand that the blurglow color is set by the game and it affects all sabers not just one. [JIT]Jedi- How did I change the ground color? Easy I used the cheat codes... All I did was change to the different sabers in the game, blue, red, green, orange, yellow, and purple. The ground color is set according to the saber you are using, blue saber blue color ect... Oh also for anyone that wants to know and hasn't figured it out yet you can change the coloring applied to the blurglow.jpg file by editing the sabers.shader file. Just replace rgbGen Vertex with rgbGen const ( 0 0 0 ). The numbers are red, green, and blue in that order and can range in value from 0 to 1. Link to comment Share on other sites More sharing options...
[JIT]Jedi Posted April 17, 2002 Share Posted April 17, 2002 what would u do to make the gorund like a diff color not in game already...? lets say there was a white saber..how do u make the ground color white? Link to comment Share on other sites More sharing options...
RedNight Posted April 17, 2002 Share Posted April 17, 2002 [JIT]Jedi At the moment we can't change the ground color to anything thats not in the game. I'll try and explain what I know about it so far. The sabers.shader file tells the game to get the color for blurglow.jpg from somewhere. The statement is rgbGen vertex, which according to the shader manual says it pulls the color from a model or the map. Here is what I'm thinking, somewhere in the jk2gamex86.dll they have predefined the color of the light cast by the saber, or as you call it the ground color, and attached it to the code that controls the saber display. The shader file looks in the game for this light, gets the color value and applies it to the blurglow.jpg file. I'm probably wrong on exactly how it's done though I believe the concept is right. Link to comment Share on other sites More sharing options...
Tchouky Posted April 17, 2002 Share Posted April 17, 2002 the color of the saber when it doesn't move depends on the files and the color of the trail and the light emited by the saber depends on the rgb values set in the code ! damn... it sucks ! i wished it was all hard coded ! (i m a programmer) because it would have been very very easy to create a simple mod to change the color of the sabers : create a cvar like : saber_color r g b store the rgb values and set the color of your saber BUT because of the files blue_line.jpg and the other we 'll have to change much more code because if we do this only the trail and the light will be changed to the color we want ! So i think we will have to change this files blue_line.jpg blue_glow.jpg blurcore.jpg blurglow.jpg to be in black and white only ! and select the color of everything with the code ..... so more changes .... We still need to have the SDK to be sure but i guess it will be this way... Link to comment Share on other sites More sharing options...
Garik Loran Posted April 17, 2002 Share Posted April 17, 2002 @RedNight I think the same for editing the sabers glow colors, it must be somewhere in the other code. @Tchouky do you think it would be possible to make a monochrome saber and the add the color in the game from a color table (like in Need for Speed the car colors)? This way we don't have to add or replace sabers, because you can choose the color for a single saber. And this makes 4 sabers that we can replace with other sabers and handles. When the SDK is out we could try to make such a mod. I am student of computer science, so I'm sure I can figure out something, but 4 or 6 eyes see more than 2. Link to comment Share on other sites More sharing options...
Boba Rhett Posted April 17, 2002 Share Posted April 17, 2002 Oops. Sorry for taking your time up, RedNight. I just didn't understand what you were getting at. Link to comment Share on other sites More sharing options...
Tchouky Posted April 17, 2002 Share Posted April 17, 2002 Originally posted by Garik Loran @Tchouky do you think it would be possible to make a monochrome saber and the add the color in the game from a color table (like in Need for Speed the car colors)? This way we don't have to add or replace sabers, because you can choose the color for a single saber. And this makes 4 sabers that we can replace with other sabers and handles. When the SDK is out we could try to make such a mod. I am student of computer science, so I'm sure I can figure out something, but 4 or 6 eyes see more than 2. well that's exactly what i was proposing (not very clearly thought...) I'm used to code in c++ and actually i m working on quake 3 (so jk2 would seem familiar to me ...) as soon as the sdk is out i m on it ! Link to comment Share on other sites More sharing options...
Garik Loran Posted April 17, 2002 Share Posted April 17, 2002 If you need some help just tell me. I have experience in Java and some less in C and C++. And even if you don't need help I would be glad if you tell me how you'll do it. I always want to learn If your idea works it would be fantastic!!! Now I am even more excited about the game. Link to comment Share on other sites More sharing options...
[JIT]Jedi Posted April 18, 2002 Share Posted April 18, 2002 ok, so u cant change it.......but can u make a saber so it will work in even a PURE server? mine works, but not in pure servers, also i cant copy it to assets0.pk3.... if there is another way plz tell me.... Link to comment Share on other sites More sharing options...
Tchouky Posted April 18, 2002 Share Posted April 18, 2002 no there is no way you can have it working on pure server ! because a pure server allows only the files from the original jk2 asset0.pk3 and asset1.pk3 so all yours mods won't work (well saber editing and stuff) If the we create a mod (a real MOD ) which calculates the trail color and color of the saber with rgb values from a command line or file THEN if the server have this mod You will be able to play in pure server mode with your beautiful saber. New models, skins, or sabers will NEVER WORK in pure server ! it s the concept of a pure server ! Link to comment Share on other sites More sharing options...
[JIT]Jedi Posted April 18, 2002 Share Posted April 18, 2002 well, cant JKII, make an update where it can, BUT also have another option of if you want other skin/model/etc. allowed? I tink they should... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.