Glass?
Printed From: Pixel Joint
Category: The Lounge
Forum Name: Resources and Support
Forum Discription: Help your fellow pixel artists out with links to good tutorials, other forums, software, fonts, etc. Bugs and support issues should go here as well.
URL: https://pixeljoint.com/forum/forum_posts.asp?TID=5288
Printed Date: 10 September 2025 at 5:14pm
Topic: Glass?
Posted By: Acherhar
Subject: Glass?
Date Posted: 31 October 2007 at 6:46pm
Hello, I'm pretty new to pixel art, and I was wondering how to make colors appear as if they are being seen through glass. I tried averaging the luminosity and hue values for the color of the glass and the color that was going to be seen through it, but kept the original saturation level of the glass color. This seemed to be giving me nice colors until I tried shades of brown, where it turned them green after I tweaked the values. Any help would be gretaly appreciated. And if it can be done, I would much rather receive a method that gives me a mathematical way of getting the color, instead of just "going by eye," because I have no idea what color I should try to get just from looking at the glass color and the other color.
|
Replies:
Posted By: greenraven
Date Posted: 31 October 2007 at 6:58pm
If there is mathematical way of doing it, then I haven't found it. 
Trial and error is the only way to go with these sort of things. You could also post your picture that you're working on, maybe someone might be able to point something out.
-------------
"pwnage comes with patience, practice and planning." ~ Jalonso
|
Posted By: Acherhar
Date Posted: 31 October 2007 at 7:08pm
Aw, I was hoping I wouldn't get that answer. But thank you very much for your reply, I really appreciate it. I guess I'll just have to learn to look for good colors. I'm not sure I want to post the picture yet, I like submitting completed work.
|
Posted By: Monkey 'o Doom
Date Posted: 31 October 2007 at 7:21pm
You could try averaging R, G, and B values instead of H, S, and L ones. They give different results and RGB averaging would probably be what you need here. Though weighted averaging for more transparent glass could also be useful.
------------- http://pixelmonkey.ensellitis.com">
RPG is numberwang.
|
Posted By: greenraven
Date Posted: 31 October 2007 at 7:31pm
Posted By: Hatch
Date Posted: 01 November 2007 at 8:35am
It's hard to say if this would work without seeing your piece, but you could try doing pale silhouettes of the objects behind the glass. Blue is a common color to use for this, but it depends on the color of your glass, color of the light, etc.
Whatever you do, please don't resort to 50/50 ditherglass.
-------------
|
Posted By: Lawrence
Date Posted: 01 November 2007 at 10:31am
For normal glass, usually there is no visible colouring. Instead try implementing specular reflections of the environment. http://www.flickr.com/photos/wdwalsh/1811836848/ - Example.
|
Posted By: Hatch
Date Posted: 01 November 2007 at 10:47am
Mm, I just meant if it's something simple or cartoony; stylized.
-------------
|
Posted By: Acherhar
Date Posted: 01 November 2007 at 12:09pm
Thanks for the help everyone. I think I'll try Monkey's method first, and if that doesn't work, I'll do Lawrence's method and go by eye. And for the ones wondering, the object behind the glass is a part of a city by the river, including a park, small beach, and some buildings.
EDIT: You can check the piece I'm working on http://pixeljoint.com/forum/forum_posts.asp?TID=5294 - here .
|
|