|
|
 |
01-08-2007, 11:27 AM
|
#41
|
|
I forgot.... what?
Join Date: Aug 2004
Location: ;o ;p :eek:
Posts: 2,090
|
Quote:
|
Originally Posted by Lathain Valtiel
*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 
OJP download links
OJP Sponsors and websites:
|
|
you may:
quote & reply,
|
01-08-2007, 12:02 PM
|
#42
|
|
Ex-Angel
Join Date: Jul 2002
Posts: 929
|
...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.
Last edited by Lathain Valtiel; 01-08-2007 at 12:14 PM.
|
|
you may:
quote & reply,
|
01-08-2007, 12:55 PM
|
#43
|
|
Junior Member
Join Date: Nov 2006
Posts: 277
|
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.
|
|
you may:
quote & reply,
|
01-08-2007, 12:58 PM
|
#44
|
|
Ex-Angel
Join Date: Jul 2002
Posts: 929
|
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.
|
|
you may:
quote & reply,
|
01-08-2007, 02:48 PM
|
#45
|
|
I forgot.... what?
Join Date: Aug 2004
Location: ;o ;p :eek:
Posts: 2,090
|
Quote:
|
Originally Posted by TheShaman
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.
Quote:
|
Originally Posted by SHAMMY
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.
OJP download links
OJP Sponsors and websites:
|
|
you may:
quote & reply,
|
01-11-2007, 10:08 PM
|
#46
|
|
Moderator
Join Date: Jan 2006
Posts: 1,255
|
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. 
Game screen name: Master Jon Hoc Ni
UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
|
|
you may:
quote & reply,
|
01-12-2007, 11:59 PM
|
#47
|
|
Ex-Angel
Join Date: Jul 2002
Posts: 929
|
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?
Last edited by Lathain Valtiel; 01-13-2007 at 12:15 AM.
|
|
you may:
quote & reply,
|
01-13-2007, 03:26 PM
|
#48
|
|
Moderator
Join Date: Jan 2006
Posts: 1,255
|
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.
Game screen name: Master Jon Hoc Ni
UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
Last edited by JRHockney*; 01-13-2007 at 03:43 PM.
|
|
you may:
quote & reply,
|
01-13-2007, 08:33 PM
|
#49
|
|
Ex-Angel
Join Date: Jul 2002
Posts: 929
|
Did you change the code?
Max got it to compile without changing it apparently, so it may be something on your end.
|
|
you may:
quote & reply,
|
01-13-2007, 10:06 PM
|
#50
|
|
Moderator
Join Date: Jan 2006
Posts: 1,255
|
Quote:
|
Originally Posted by Lathain Valtiel
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.
Game screen name: Master Jon Hoc Ni
UDM Quote: in singapore, gangsters are...skinny jacka**es who think they can 0wn you. they hurl insults at u, and then lose in a fight. n00bs
|
|
you may:
quote & reply,
|
01-14-2007, 05:58 AM
|
#51
|
|
I forgot.... what?
Join Date: Aug 2004
Location: ;o ;p :eek:
Posts: 2,090
|
I got a friend of mine to compile the OLD one that was posted, didn't do anything myself. I'm starting PHP in 2 weeks and my coach gave me permission to use the school network to download the full visual studios pack from msdn though 
OJP download links
OJP Sponsors and websites:
|
|
you may:
quote & reply,
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
Forum Jump
|
|
|
|
|
|