How is weapon colour determined

How is weapon colour determined

Various things about Spring that do not fit in any of the other forums listed below, including forum rules.

Moderator: Moderators

User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

How is weapon colour determined

Post by Caydr »

It makes sense that Color=[hue];.

But, for instance, when I enter a hue that according to photoshop should produce yellow, I don't get yellow, I get some other colour. I'm having a lot of trouble finding a definite green colour, etc. 1 is definitely red... besides that, things seem inconsistent.

How is laser colour determined?
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Post by Forboding Angel »

ok well, spring uses a scale of

r-0
g-0
b-0

== black

and

r-1
b-1
g-1

== white

Its a little wierd and makes no sense whatsoever...

One thing you can do is download maelstroms SMD creator and use the too in there to adjust to the color you want and then you can copy the values directly.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Uh.. Ok, wait. You're saying that 010 would be green then? And 001 is blue? I'll have to take a look at this. I guess it fits; the weapon arc system is kind of similar.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

if you have paint which you should you can find out what color your laser/lightning will be quite easily... first you need to know 2 things

color=x; is the hue

color2=x; is the saturation

Open up paint, double click on a color to edit it, and then go choose define custom color, notice as you move across the color pattern the hue changes the hue number will determine your color basically, you have leave lum at about 120, and sat at 240 to get the color roughly you will end up with.

1-9:red
10-23:orange
24-42:yellow
43-100:green
101-155:blue
156-190:purple
190-230:pink
230-240:red

This is for paint spring runs on a max of 225 scale so its a little more condensed but roughly similiar id suggest leaving saturation alone until you have the hue you want then messing with that..
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Forboding Angel wrote:Its a little wierd and makes no sense whatsoever...
It makes perfect sense, its exactly how ogl handles it.
User avatar
Caydr
Omnidouche
Posts: 7179
Joined: 16 Oct 2004, 19:40

Post by Caydr »

Either you or Forboding is completely wrong. Forboding's makes sense in the Spring context and is easy to understand, yours sounds like a pain in the arse. I'll try to figure out which really works.... eh... tomorrowish.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6241
Joined: 29 Apr 2005, 01:14

Post by FLOZi »

Das Bruce wrote:
Forboding Angel wrote:Its a little wierd and makes no sense whatsoever...
It makes perfect sense, its exactly how ogl handles it.

RGB FTW!
User avatar
Das Bruce
Posts: 3544
Joined: 23 Nov 2005, 06:16

Post by Das Bruce »

Caydr wrote:Forboding's makes sense in the Spring context and is easy to understand, yours sounds like a pain in the arse.
*sigh* You silly backward eskimo.
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

I'd trust fanger... His mod uses a fair few lazers of nonstandard colors.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

Hmm... So we cant change the color lightness?
User avatar
SwiftSpear
Classic Community Lead
Posts: 7287
Joined: 12 Aug 2005, 09:29

Post by SwiftSpear »

Saturation is lightness...
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

No its not, saturation is grayness.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

tradmark, no we do not change the luminosity of the color but saturation is close enough. believe me I don't want dark blue shots.

Caydr, yeah using the hue value works right. I used it and it worked,
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

smoth wrote:tradmark, no we do not change the luminosity of the color but saturation is close enough. believe me I don't want dark blue shots.
Yeah, i didnt think of changing it into dark, only lighter would be good looking.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

what use do you have for it? Are you making a mod or something?
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

who? me? im making mod editor, and i found out that the color2 didnt change anything :S

Are you guys sure about that color2, i cant make the color look any different if i change the color2 value!

Tried like 10 times with different colors, only which affect is color variable.
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

Forboding does not know what hes talking about in this case because he does not mod spring he is a map maker of useful skill but not a spring modder, I am a spring modder I have worked on FF which has a ton of lasers.. guess who figured out how to color all those.. ME... and I have put together EE which also uses several lasers again done by ME.. the system I put up works 100% whether its convoluted or not It is correct so choose to ignore me and go with some other way but you will eventually realize that the values are what i have stated and it can be easily figured out using paint..
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Post by TradeMark »

I know, color variable gets color from hue map.

BUT:
color2 doesnt do anything to the color.

I tried everything, the color didnt change at all when i changed color2 value!!

Someone, explain how it works!! or does it even work?
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Post by smoth »

Fang your sentences are unbalanced... you need more more more more words for it it it it to have balance so sayeth the lord of all balance!
User avatar
Fanger
Expand & Exterminate Developer
Posts: 1509
Joined: 22 Nov 2005, 22:58

Post by Fanger »

I did explain it and no one listened so your SOL..
Post Reply

Return to “General Discussion”