Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

3 Byte RGB code calculator

Page: 1 of 1
 glovemaster
07-22-2007, 11:25 AM
#1
3 Byte RGB code calculator (http://knightsoftheoldrepublic.filefront.com/file/RGB_Code_Calculator;98737)

This tool will calculate the code for the colour that you put in the sun fog values in the ARE file and the "tweakcolor" values in the GIT file. There might be a few more places, but thats only where i have needed to use them.
Click on the big title to download ^.

v1.7
Added a "Colour Select" feature that opens up the Windows ColourDialog form.

Any suggestions are welcome.

A few basic colour codes:
White: 16777215
Red: 255
Green: 65280
Blue: 16711680
 glovemaster
10-03-2007, 3:10 PM
#2
Version 1.3 released, yes there were 2 versions before that but they were not really important updates.. Now the program has an interface! w00t! :P

-v1.3---------------------
Changed the Program completely and added an interface using C# (C-Sharp) for which i have to thank MagnusLL
for suggesting that i change from C++ which is alot more difficult for interfaces.
--------------------------
 magnusll
10-04-2007, 5:34 AM
#3
Cool, glad my suggestion has been useful.
Oh BTW, this is also the value you should use in the SunDiffuse and SunAmbient colors when you create scratch-built areas. So if you want to have the general area light of one particular color, this is the tool to use.
 glovemaster
07-02-2008, 3:21 PM
#4
Well, the day finally came when I needed to use this tool :lol: And I decided that it needed something to let you pick a colour, rather than guess how much red, green and blue is in turquoise. (Not that i was using that colour, I hate turquoise :p)

So I threw in a Colour Selector thing, so its far easier to use.
 glovemaster
05-28-2013, 12:57 PM
#5
I've updated the link for this as it has apparently been down for some years but was hosted by kotor files in 2009
 supreme kotor
05-28-2013, 2:49 PM
#6
THANK YOU THANK YOU THANK YOU THANK YOU!!!
 Fallen Guardian
05-28-2013, 3:40 PM
#7
Wow, didn't know about this. Will definitely be using it now.
 LDR
06-01-2013, 1:32 PM
#8
Would this also work with the GUI?
 glovemaster
06-01-2013, 10:47 PM
#9
I can't remember how the GUI works exactly but if there's colour codes required then yes, this tool will help
 supreme kotor
06-01-2013, 11:15 PM
#10
^ I could be wrong...I've been wrong before but considering within KotorTool theirs a file pack that has GUI in the name my guess is you have to reskin the GUI using gimp or photoshop.
 glovemaster
06-03-2013, 7:50 AM
#11
Well since I've been getting back into it I reinstalled KotOR 2 on the laptop and had a look into it - turns out the GUI colours are made up of vector GFF structs with values of RGB represented as 0 to 1. So your vector will be something like [1.0, 1.0, 1.0] for white and [0.0, 0.0, 0.0] for black if you get me.

The calculator works in the standard RGB hex 255 so to get the vector value simply divide your hex value of R, G and B by 255:

So a light blue colour of R(128), G(128), B(255) will become vector: [0.5,0.5,1.0]
 glovemaster
06-03-2013, 7:58 AM
#12
^ I could be wrong...I've been wrong before but considering within KotorTool theirs a file pack that has GUI in the name my guess is you have to reskin the GUI using gimp or photoshop.

I should also mention the GUI files are for text and dynamic elements of the interface such as the inventory while the GUI textures are for buttons and icons and reticules.
 Vindikorr
06-04-2013, 11:14 AM
#13
Thanks gm, I used this tool a long time ago and then couldn't find it again for ages. I remember it was really useful. Good to know about the vectors as well.
Page: 1 of 1