TheShaman Posted January 5, 2007 Share Posted January 5, 2007 BUSHADA triple post. Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 5, 2007 Share Posted January 5, 2007 Yes, I get triple posty when I get annoyed with this code. I'm almost done. Not sure if it works, but that's for you all to find out. Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 5, 2007 Share Posted January 5, 2007 Right then. Here's my first attempt that I totally doubt will compile. http://www.seraphicradiance.net/BB/avaimages/SFXRGBSabersE.zip If by some miracle it DOES compile and I got it right the first time, put the .dll into a pk3 along with those folders there. Put a z in front of it so Enhanced loads it last. If this works, a new cvar has been added: sfx_sabers. Setting it to 1 actiavtes SFX sabers. Link to comment Share on other sites More sharing options...
JRHockney* Posted January 5, 2007 Share Posted January 5, 2007 Awsome. Thanks for the effort lathain. Good luck Master Luke. Link to comment Share on other sites More sharing options...
Master_Luke Posted January 6, 2007 Author Share Posted January 6, 2007 Hi Thanks Lathain Valtiel for the code.I'll try it and see what can I do. Master_Luke Link to comment Share on other sites More sharing options...
TheShaman Posted January 6, 2007 Share Posted January 6, 2007 Sorry for repeating my self and being annoying, but... thicker glow than 009f 's please... (for more info check my previous post, with 2 screenshots) good luck Link to comment Share on other sites More sharing options...
Maxstate Posted January 6, 2007 Share Posted January 6, 2007 Sorry for repeating my self and being annoying, but... thicker glow than 009f 's please... (for more info check my previous post, with 2 screenshots) good luck The glow around the saber like that is attributed to the rGB_glow2 file, if they don't, I'll do it for you . Link to comment Share on other sites More sharing options...
TheShaman Posted January 7, 2007 Share Posted January 7, 2007 The default one of basejka, ojp, or any mod, which is located in gfx/effects/sabers/ ? if it's this one, I could do it, I know a bit of that, I actually made a little saber mod (looks nicer than OJP's default one, sorry, and it also replaces the saber sounds with MB2 B18 ones). Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 7, 2007 Share Posted January 7, 2007 Actually, there is a variable in the code called glowscale which may have some influence. But other than that, yes, the file in question matters. I'm more amazed you psychos actually want it BRIGHTER. Link to comment Share on other sites More sharing options...
Maxstate Posted January 7, 2007 Share Posted January 7, 2007 Actually, there is a variable in the code called glowscale which may have some influence. But other than that, yes, the file in question matters. I'm more amazed you psychos actually want it BRIGHTER. Could you tell me if there's anything in there that changes how the core looks? I can't seem to recreate the tiny white glow around the saber's core without destroying or making the blade transparent with my own mods. Care to help me out? Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 8, 2007 Share Posted January 8, 2007 Tiny white glow? What are you referring to? That fuzziness around the base of the standard Raven sabers? And I don't believe that is the case. I'm fairly sure the core's look is totally dominated by the shader file and texture, except for the weapon's width, which you can change. What are you trying to do exactly? Link to comment Share on other sites More sharing options...
Maxstate Posted January 8, 2007 Share Posted January 8, 2007 Tiny white glow? What are you referring to? That fuzziness around the base of the standard Raven sabers? And I don't believe that is the case. I'm fairly sure the core's look is totally dominated by the shader file and texture, except for the weapon's width, which you can change. What are you trying to do exactly? It's hard to explain.. Around the saber's core there's a fuzzy white glow in the movies, the core actually glows white and the colour of the blade comes after that part: http://www.cswu.cz/epizoda-iii/images/anakin/051.jpg Look at this core for an example, and: http://home.scarlet.be/yodawallpapers/Star%20Wars%20wallpaper%20Obi%20Wan.jpg Really obvious there^. Here's some pictures of the sabers I've made btw: http://i2.photobucket.com/albums/y30/Maxstate/shot2297.jpg 170 Red http://i2.photobucket.com/albums/y30/Maxstate/shot2296.jpg 70 +\- Green http://i2.photobucket.com/albums/y30/Maxstate/shot2295.jpg 255 blue 100 green But they lack that whitish glow around the core, I just can't get it right without making the whole core see-through. If there isn't any code for it, maybe you could help me graphically? Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 8, 2007 Share Posted January 8, 2007 Hmmmmm.... you mean how in the outer edge of the core, the white sort of blends in with the outer, colored glow for a bit? Hmmm... no, I don't believe that specifically possible. Raven cheats to get that effect by building color into the saber core textures. Unfortunately, we cannot take that route with the RGB sabers I don't think. What RGB sabers do is actually create TWO cores. One core is simply a dead, white core. The other core is layered behind this core, but its white is filled in with the selected color in the RGB saber screen. Thus, you have a white core layered on top of a colored core. Then, the glow is applied, the white in the glow texture is once again filled in with color and that glow is casted around the core. Hmmm... try this. Take rgb_core. That is the dead white core that is applied over on top of the colored core. Make its outer edges gray. What I believe this will do is make it partially transparent. I hope. Link to comment Share on other sites More sharing options...
Maxstate Posted January 8, 2007 Share Posted January 8, 2007 Hmmmmm.... you mean how in the outer edge of the core, the white sort of blends in with the outer, colored glow for a bit? Hmmm... no, I don't believe that specifically possible. Raven cheats to get that effect by building color into the saber core textures. Unfortunately, we cannot take that route with the RGB sabers I don't think. What RGB sabers do is actually create TWO cores. One core is simply a dead, white core. The other core is layered behind this core, but its white is filled in with the selected color in the RGB saber screen. Thus, you have a white core layered on top of a colored core. Then, the glow is applied, the white in the glow texture is once again filled in with color and that glow is casted around the core. Hmmm... try this. Take rgb_core. That is the dead white core that is applied over on top of the colored core. Make its outer edges gray. What I believe this will do is make it partially transparent. I hope. The rgb_line file being the first thing that's rendered, so if I make the line and core files unique (save for the glows) qua core, the line will be drawn wherever the core is transparent? That could work, I've been ignoring the rgb_line file up till now. Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 8, 2007 Share Posted January 8, 2007 *Checks* Yes, rgb_line is rendered first, it provides the blade color because the white in its texture is filled in. rgb_core is rendered on top of it with its white staying as-is to provide a visible white core. What you could try is making rgb_core's sides gray, so that the color will only partially shine through. We just cut off the sides so the whole thing shows through as it is now. My bad, most likely. I have no idea what'll happen if you make rgb_line's sides gray. Link to comment Share on other sites More sharing options...
Maxstate Posted January 8, 2007 Share Posted January 8, 2007 *Checks* Yes, rgb_line is rendered first, it provides the blade color because the white in its texture is filled in. rgb_core is rendered on top of it with its white staying as-is to provide a visible white core. What you could try is making rgb_core's sides gray, so that the color will only partially shine through. We just cut off the sides so the whole thing shows through as it is now. My bad, most likely. Do you have MSN? Or an email I could send you the files too? Just incase I need further help, don't want to mess up this thread any more than I already have Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 8, 2007 Share Posted January 8, 2007 ...Wow, I'm a screwup, I read them backwards and switched what the cores do. LOL rgb_line is rendered first, it's the white core. rgb_core is rendered second, and winds up behind the white core. It's usually bigger. Its color is filled in by the RGB values to give the saber color. Since it's bigger, its color shows up on the edges of the white core. Thus we should edit rgb_line's sides to gray so that rgb_core's color goes through it. Link to comment Share on other sites More sharing options...
TheShaman Posted January 8, 2007 Share Posted January 8, 2007 Hem, I don't really understand the difference between the core and the blade, to me, a lightsaber is made of the core, which is a cutting white laser blade, and of the core, which determines the colour, for a cool effect. Also Max, I think your sabers are a bit too bright (glow), especially the cyan one, and the core/blade (white thing) isn't straight, it seemed you drew it with hand, going left, right, left, right again... instead of just being a line. Weird thing. Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 8, 2007 Share Posted January 8, 2007 It's just the way the RGB sabers were coded so that it looked nice. I imagine it was done so you could provide some color to the edge of the white center. Link to comment Share on other sites More sharing options...
Maxstate Posted January 8, 2007 Share Posted January 8, 2007 Hem, I don't really understand the difference between the core and the blade, to me, a lightsaber is made of the core, which is a cutting white laser blade, and of the core, which determines the colour, for a cool effect. Blade = everything in it's entirety. Also Max, I think your sabers are a bit too bright (glow), especially the cyan one, and the core/blade (white thing) isn't straight, it seemed you drew it with hand, going left, right, left, right again... instead of just being a line. Weird thing. Your resolution isn't picking it up right then, the sabers themselves (the version you have) are on 2500x XXXX I think, lol. They look that way because I made them to be smaller in perspective, meaning they get smaller near the tip and are rounder and wider near the emitter. Link to comment Share on other sites More sharing options...
JRHockney* Posted January 12, 2007 Share Posted January 12, 2007 Hey I got the SFX sabers working! Great cvar, Lathain! The only thing you forgot in those files was this: vec3_t rgb1={255.0f,255.0f,255.0f}; in the definition section of cg_players.c. Given my sad level of coding knowledge, its a miracle that I figured that out, especially since that appeared to be defined in several other places in that file. Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 13, 2007 Share Posted January 13, 2007 Actually, it's there, it just happened to fall to the joys of only being stored between parantheses... typical. I uploaded a new file with the fix. If you just pasted the declaration somewhere (probably after the line: // Draw the SFX blade. Yeah, it has to be here. Yes, the person who wrote this should be shot.), I don't think it will work exactly as intended due to having lost the old SFX rgb1 value, which retains it, so use the fixed file. Same link as before. The cvar worked? Any other problems? Link to comment Share on other sites More sharing options...
JRHockney* Posted January 13, 2007 Share Posted January 13, 2007 Hmm, Ok I replaced your new file with the one I modified and I got some errors. I looked for that definition that I showed and I found it after "CheckTrail:" I tried that previously and it didn't work for some reason. It showed it as not being defined properly. I put it back to were I had it before which was around line 35 before that "char *cg_customSoundNames[MAX_CUSTOM_SOUNDS] = {" thing and it compiled with no errors. I might just be my code though, there are alot of weird things about it. As far as how it works overall, it works very well for the most part. The RGB sabers don't really work right with the SFX ones and you can't use the base sabers and SFX sabers at the same time on a server without it messed up it seems, but I didn't expect those to work anyways since their based on different code. THe funny thing is, when I first added the code and compiled it without doing a fresh build, it compiled, but had the CRAZIEST effects in game: the sabers were mess up, the sounds were messed up and I got struck with a red lightning bolt everytime I rolled or jumped! LOL! I thought you played a prank on us! Of course after I did a fresh build, I got those errors that I fixed with that definition. Heh, shows how much I know about code I don't know the first thing about vector stuff. Link to comment Share on other sites More sharing options...
Lathain Valtiel Posted January 14, 2007 Share Posted January 14, 2007 Did you change the code? Max got it to compile without changing it apparently, so it may be something on your end. Link to comment Share on other sites More sharing options...
JRHockney* Posted January 14, 2007 Share Posted January 14, 2007 Did you change the code? Max got it to compile without changing it apparently, so it may be something on your end. Probably is. I don't remember changing anything and that definition after checktrail should work, but since it works now, I don't have the patience to figure out why. Anyways, thanks again for making it available. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.