glovemaster Posted July 22, 2007 Posted July 22, 2007 3 Byte RGB code calculator 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 Posted October 3, 2007 Author Posted October 3, 2007 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! -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 Posted October 4, 2007 Posted October 4, 2007 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 Posted July 2, 2008 Author Posted July 2, 2008 Well, the day finally came when I needed to use this tool 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 ) So I threw in a Colour Selector thing, so its far easier to use.
glovemaster Posted May 28, 2013 Author Posted May 28, 2013 I've updated the link for this as it has apparently been down for some years but was hosted by kotor files in 2009
Fallen Guardian Posted May 28, 2013 Posted May 28, 2013 Wow, didn't know about this. Will definitely be using it now.
glovemaster Posted June 2, 2013 Author Posted June 2, 2013 I can't remember how the GUI works exactly but if there's colour codes required then yes, this tool will help
supreme kotor Posted June 2, 2013 Posted June 2, 2013 ^ 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 Posted June 3, 2013 Author Posted June 3, 2013 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 Posted June 3, 2013 Author Posted June 3, 2013 ^ 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 Posted June 4, 2013 Posted June 4, 2013 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.