Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-06-2008, 08:05 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
saturation

I would like to see a new variable added to the color values(red, green, blue, alpha).

Which would be saturation.

A saturation of 1 would be fully saturated -- normal color.
0 would be unsaturated -- grey.

This could be applied to gani's, showimgs, tile layers... and the effects would be great.
Reply With Quote
  #2  
Old 08-06-2008, 08:16 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
By using a low value for red, green, or blue, you're pretty much in control of the saturation level. rgb and alpha are all you really need to make any color, and make it transparent if you need to.
Reply With Quote
  #3  
Old 08-06-2008, 08:18 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Not really. Lowering the values of RGB simply make it darker, not less saturated.
Reply With Quote
  #4  
Old 08-06-2008, 08:21 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
If you reduce the saturation, all it will do is change the rgb values
Reply With Quote
  #5  
Old 08-06-2008, 08:24 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
No it won't. RGB values go from 0 - 1. Black to white.

Saturation will run from 0 - 1... grey to color. They are two completely separate things.
Reply With Quote
  #6  
Old 08-06-2008, 08:36 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Why don't you go ahead and use a color meter or something on your computer, as well as photoshop.


Now, let's change that saturation:


And what do we have?


Reply With Quote
  #7  
Old 08-06-2008, 08:42 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Heh, I know my colors.

The problem is this doesn't work like that in Graal. For example, if I turn my player's RGB to all 0's, the player will be black. If I set it all to .5, the player will be dark. Now if I take a screenshot of my player and put it in Photoshop and lower the saturation to 0, the player will be grey.

That is what I'm looking for.
Reply With Quote
  #8  
Old 08-06-2008, 08:43 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
I thought graal worked on a percent system, basing 1 as what would be 255, and .5 as half that, etc. I was under the impression that it was real rgb
Reply With Quote
  #9  
Old 08-06-2008, 08:48 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
It does work like that. But when you're working with a sprite that has many different colors, just downing the RGB doesn't really help.

This would be more of a desaturation filter than a color value, but I think it would be really useful.

Open up Graal and try to make your player greyscaled using the RGB values in Graal.
Reply With Quote
  #10  
Old 08-06-2008, 09:04 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
Quote:
Originally Posted by DustyPorViva View Post
It does work like that. But when you're working with a sprite that has many different colors, just downing the RGB doesn't really help.

This would be more of a desaturation filter than a color value, but I think it would be really useful.

Open up Graal and try to make your player greyscaled using the RGB values in Graal.
Sorry buddy, I'm on a Mac, so Graal Online has deemed me insignificant, and refuses to give me dev tools.
Reply With Quote
  #11  
Old 08-06-2008, 09:15 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Eh, well either way Graal RGB just tends to go from black to white... no saturation or anything.
Reply With Quote
  #12  
Old 08-06-2008, 09:16 PM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
So if it's not a percentage of rgb, what is it?
Reply With Quote
  #13  
Old 08-06-2008, 09:18 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
It is percentage of RGB, but it's relative, not absolute... but the problem is if I change the RGB of my player, which has multiple colors, it just darkens him.

It's hard to explain, though. It's really just something you have to play with.
Reply With Quote
  #14  
Old 08-06-2008, 09:23 PM
DrakilorP2P DrakilorP2P is offline
Registered User
DrakilorP2P's Avatar
Join Date: Apr 2006
Posts: 755
DrakilorP2P is just really niceDrakilorP2P is just really nice
I can confirm that setting the colour values for images or ganis will simply make them darker. Polygons can obviously be grey. This is about images, not individual pixels: making the former grey is going to be trickier.
Reply With Quote
  #15  
Old 08-06-2008, 09:27 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Hue, saturation, and brightness are just different ways of measuring red, green, and blue.

In scripting, the colors you can change are relative to the image's colors. A value for 255 for red, green, and blue will result in the image looking correctly.

Have you tried changing the drawing mode if available?

player.mode - integer - the image drawing mode (0 - add, 1 - transparent, 2 - subtract, 3 - daynight)

I do understand what you're talking about.
__________________
Reply With Quote
  #16  
Old 08-06-2008, 09:29 PM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Ya, none of those modes will do this, in fact, all modes simply change the way alpha is drawn.

Regardless, you simply can't compare Graal's RGB to standard color theory because in photoshop and such you're simply getting the color value of a single pixel. You're never working with the value of multiple colors like Graal does. Graal just handles it differently. There really is no work around for this unless Stefan adds a saturation value.
Reply With Quote
  #17  
Old 08-06-2008, 10:00 PM
Kristi Kristi is offline
Bowie's Deciple
Kristi's Avatar
Join Date: Dec 2003
Location: Boston, MA
Posts: 748
Kristi has a spectacular aura aboutKristi has a spectacular aura about
Send a message via AIM to Kristi Send a message via MSN to Kristi
Quote:
Originally Posted by DustyPorViva View Post
Ya, none of those modes will do this, in fact, all modes simply change the way alpha is drawn.

Regardless, you simply can't compare Graal's RGB to standard color theory because in photoshop and such you're simply getting the color value of a single pixel. You're never working with the value of multiple colors like Graal does. Graal just handles it differently. There really is no work around for this unless Stefan adds a saturation value.
This sounds fairly accurate. All images' RGB default as 1, so the RGB is full out white, even if the image has a multitude of colors. You can't particularly neutralize the color of all pixels to a gray-scale.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 +2. The time now is 11:52 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.