Massassi Forums Logo

This is the static archive of the Massassi Forums. The forums are closed indefinitely. Thanks for all the memories!

You can also download Super Old Archived Message Boards from when Massassi first started.

"View" counts are as of the day the forums were archived, and will no longer increase.

ForumsCog Forum → SetSectorTint rgb value
SetSectorTint rgb value
2002-03-21, 9:11 AM #1
I'm trying to write a fog cog that will gradually change the sector's tint. I went to Millenium and the verb list says to use the rgb value like a vector. Does anyone know how to do that?
2002-03-21, 11:07 AM #2
Im not sure of the origins of RGB color coding, but basically most colors can be approximated by combining various amounts of Red/Green/Blue. If you looking for an exact color tint, I recommend using photoshop or paintshop pro, pick the color you want from the pallette and note its RGB value, Then Scale the RGB values down to 0.0 - 1.0.

Some examples.

SetSectorTint(GetThingSector(player), VectorSet(R, G, B));

R G B

1 0 0 = Red
0 1 0 = Green
0 0 1 = Blue
1 1 0 = Yellow
1 0 1 = Purple
0.5 1 1 = Light Blue
- Wisdom is 99% experience, 1% knowledge. -
2002-03-23, 3:36 AM #3
that's true, have three flex values (red, greeen, blue) with range 0-1 and use a vector (rgb) to pass the color to SetSectorTint. Use rgb = VectorSet(red, green, blue); and then SetSectorTint(sector, rgb); as mentioned before. BUT, screw the whole idea. Sector tint is bad for fog, it's too light, so that white fog can't even be seen...
if you want fog in SP, try NewColorEffect(), or you can have my fog cog, which uses a ghost to determine the center of the fog, and then gradually intenses the fog as you come closer to the center...
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)
2002-03-23, 5:16 AM #4
I wasn't saying use SetSectorTint(); for Fog, I assummed he is using the fog cog here at massassi. It was just demo'ing how to use RGB in vector form.
- Wisdom is 99% experience, 1% knowledge. -
2002-03-23, 6:37 AM #5
Forget paint programs, just use JEDs sector tint color selector....

------------------
Success is the inverse relationship between effort, gain, and loss.

JK editing resources.
And when the moment is right, I'm gonna fly a kite.
2002-03-25, 8:30 AM #6
Yeah, I tried using the SectorTint thing and it didn't work very well, even when I used Jed to hard code it in. I think I'll go back to the cog at Massassi, but modify it a little... [http://forums.massassi.net/html/wink.gif] The reason I wanted to use sector tint is I thought it would stay even when you were outside the specified sector; like when you go inside a building you would be able to look out the door/window and see the fog, but with the cog at massassi it only changes the screen's tint, not a haze that lives in the sector. I learned unfortunately that sector tint does the same thing. [http://forums.massassi.net/html/frown.gif] What I'm thinking of doing is showing the adjoined surfaces of doors, etc as a transparent gray, so when you're inside a building it looks like there's fog out there, even though you're outside the cog's range.

[This message has been edited by Kievan Mereel (edited March 25, 2002).]
2002-03-26, 6:56 AM #7
that's exactly how i'm doing it, but take a solid white or it will be too light :-]
"Häb Pfrässe, süsch chlepfts!" - The coolest language in the world (besides Cherokee)

↑ Up to the top!