http://GameProgrammer.Com

Programming

GP Mailing List
     Thread Index
     Date Index

ATXGPSIG List
     Thread Index
     Date Index

Google
>

Home

Wise2Food



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gameprogrammer] Re: Red/Blue 3d Glasses



when drawing on a black background, red and blue (pure colors) were
needed for the 3d glasses to work.

when drawing on a white background, cyan and red were needed.



on black background (0,0,0) you use the RGB color model
on white background (1,1,1) you use the CMY (Cyan, Magenta and yellow) color model

RGB = 1 - CMY
so:
0 + R = 1 - C
0 + G = 1 - M
0 + B = 1 - Y

example:
R = 1, G = 0, B = 0 in black background, how to represent in white background?

0 + 1 = 1 - C  =>  C = 0
0 + 0 = 1 - M =>  M = 1
0 + 0 = 1 - Y  =>  Y = 1

RGB is the model used by CRT monitors and CMY is used by ink jet printers (the paper is generally white)

more info:
http://en.wikipedia.org/wiki/CMYK_color_model
http://en.wikipedia.org/wiki/RGB

regards

PS: Sorry for my bad english, is not my native languaje