lfnetwork.com mark read register faq members calendar

Thread: rgb2bgr Converter
Thread Tools Display Modes
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Old 08-14-2006, 01:23 PM   #1
Kaspian
Rookie
 
Kaspian's Avatar
 
Join Date: Oct 2004
Location: Europe
Posts: 50
rgb2bgr Converter

BGR (Blue, Green, Red) is an alternate arrangement of the RGB color model. It is used in KotOR area files (*.are) to define some colors <- will clarify this later.
So I made this web page, which converts RGB values or Hex code of color into BGR value and backwards.

It can convert:
  • RGB to Hex/BGR
  • Hex to RGB/BGR
  • BGR to RGB/Hex
You don't really need this, if you have the right knowledge and some calculator capable of decimal to hexadecimal (and backwards) conversion.

BGR = (Blue * 65536) + (Green * 256) + Red
BGR = take hexadecimal code of color, switch its Red and Blue values 123456 -> 563412 and convert it to decimal

Last edited by Kaspian; 08-16-2006 at 01:57 AM.
Kaspian is offline   you may: quote & reply,
Old 08-15-2006, 11:04 AM   #2
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
I would say that even with a working hex knowledge this utlity is good to have handy as untill you brought it up just now I don't think anybody knew that the RGB colors were backwards in the ARE file. Or if people did they just haven't mentioned it anywhere.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Old 08-16-2006, 02:40 AM   #3
Kaspian
Rookie
 
Kaspian's Avatar
 
Join Date: Oct 2004
Location: Europe
Posts: 50
I think people did (it's written in BioWare documentation). I brought it up, because there could be some possibility to change an area to look like at night. So far I got these images. It is also possible to change area model's textures. And the Sun will be conquered one day
Kaspian is offline   you may: quote & reply,
Old 08-16-2006, 03:24 PM   #4
Darkkender
Knight of Holowan
 
Darkkender's Avatar
 
Join Date: Aug 2004
Location: In the mountains of Oregon
Posts: 2,953
Current Game: Star Wars The Old Republic
Veteran Modder 
Well the Bioware's documentation covers alot of elements that aren't in the Kotor games. That's probably why it doesn't get noticed by Kotor modders like me.


Working so, we will learn history as a tree knows it; we will climb into shapes printed in the seed; we will become time made visible, years made fragrant; we will make of concentric memory a stem of praise; we will inhabit daylight at a trees own speed; we will be travelers who remain, patriots to this ground.
OMG I only rank 62.13018% geek or a Extreme Geek as it is referred to on the geektest at Geektest
[TSL]Holowan Plugin
Darkkender is offline   you may: quote & reply,
Post a new thread. Add a reply to this thread. Indicate all threads in this forum as read. Subscribe to this forum. RSS feed: this forum RSS feed: all forums
Go Back   LucasForums > Network > Knights of the Old Republic > Editing / Modding > T3-M4's Astromech Droid Center > rgb2bgr Converter

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 10:40 PM.

LFNetwork, LLC ©2002-2011 - All rights reserved.
Powered by vBulletin®
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.