Resources and Support
 Pixel Joint Forum : The Lounge : Resources and Support
Message Icon Topic: Glass? Post Reply Post New Topic
Author Message
Acherhar
Commander
Commander
Avatar

Joined: 13 September 2021
Location: United States
Online Status: Offline
Posts: 179
Quote Acherhar Replybullet Topic: Glass?
    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.
IP IP Logged
greenraven
Commander
Commander
Avatar

Joined: 08 September 2016
Online Status: Offline
Posts: 2598
Quote greenraven Replybullet 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   
IP IP Logged
Acherhar
Commander
Commander
Avatar

Joined: 13 September 2021
Location: United States
Online Status: Offline
Posts: 179
Quote Acherhar Replybullet 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.
IP IP Logged
Monkey 'o Doom
Commander
Commander
Avatar

Joined: 24 September 2005
Online Status: Offline
Posts: 2994
Quote Monkey 'o Doom Replybullet 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.

RPG is numberwang.
IP IP Logged
greenraven
Commander
Commander
Avatar

Joined: 08 September 2016
Online Status: Offline
Posts: 2598
Quote greenraven Replybullet Posted: 31 October 2007 at 7:31pm
Originally posted by Acherhar

I'm not sure I want to post the picture yet, I like submitting completed work.


I mean here on the forums.

To be more precise in the Work In Progress section, or WIP for short.
"pwnage comes with patience, practice and planning." ~ Jalonso   
IP IP Logged
Hatch
Admiral
Admiral
Avatar

Joined: 05 August 2015
Online Status: Offline
Posts: 1387
Quote Hatch Replybullet 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.
IP IP Logged
Lawrence
Commander
Commander
Avatar

Joined: 30 June 2005
Online Status: Offline
Posts: 481
Quote Lawrence Replybullet Posted: 01 November 2007 at 10:31am
For normal glass, usually there is no visible colouring. Instead try implementing specular reflections of the environment. Example.


Edited by Lawrence - 01 November 2007 at 10:33am
IP IP Logged
Hatch
Admiral
Admiral
Avatar

Joined: 05 August 2015
Online Status: Offline
Posts: 1387
Quote Hatch Replybullet Posted: 01 November 2007 at 10:47am
Mm, I just meant if it's something simple or cartoony; stylized.
IP IP Logged
Acherhar
Commander
Commander
Avatar

Joined: 13 September 2021
Location: United States
Online Status: Offline
Posts: 179
Quote Acherhar Replybullet 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 here.


Edited by Acherhar - 02 November 2007 at 7:50pm
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum