|
||
|
GP Mailing List
ATXGPSIG List
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [gameprogrammer] Re: Red/Blue 3d Glasses
A little follow up to this stuff in case anyone is interested now or in the future sometime :P I was experimenting with this stuff and found some odd results. 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. It was strange. Also, I tried with a couple different brands of glasses and it seemed like 255,10,0 worked better than pure 255,0,0 for the red color. and of further note...a couple of hacks! normally if you are drawing some "3d" lines in red/blue mode, where the red and blue overlap you are supposed to blend them together. However, if you are lazy, unable to blend them, or whatever the case may be, you can skip that blending step so that whichever color was drawn last over-writes the pixel that was there. So long as it isn't a ton of overlapping (and it is really resilient even with a good deal of overlap), it will still look pretty good, your brain seems to filter it out and complete it. if you are drawing some 3d "filled shapes", normally what happens is where the red version overlaps the blue version, you blend them together so that the origional color is there while the parts that don't overlap are red/blue hued. Well, I found a neat hack that again saves you the trouble of blending. Just follow these steps: 1) Fill the shape you are trying to draw with whatever color you are trying to draw it in (although it has to be the same color as the background...a crappy restraint but works for some game types) 2) Fill the "offset" shape in with the same color 3) Outline the first shape with red 4) Outline the second shape with blue Believe it or not, it works. It isn't a perfect solution, more of a hack, but it really does work very well for hand drawn 3d viewing and other things where precision isn't paramount. On 5/7/07, Sami Näätänen <sn.ml@bayminer.com> wrote: On Monday 07 May 2007, Alan Wolfe wrote: > Hey Guys, > > I'm trying to do some visual stuff for the red blue 3d glasses and am > having a problem finding the right RGB values to use. > > For the red lens 255,0,0 seems to work ok, but for the blue (cyan) > lens, 0,0,255 and 0,255,255 don't seem to work too well. > > These glasses work great on images meant for 3d red blue glasses so i > know the glasses are standard. > > does anyone know what the standard RGB values to use are though? > > Mucho Thanks for any help (: Well go through the pixel values on those images you have. it will give you some ideas. --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html --------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html
|
|