Wow, I'm on a nitpick run, but... I'm pretty sure Jasoco said that, not me.kikito wrote:Then my solution clearly doesn't work for you. My assumption was that you would be able to precalculate the colorized versions in advance.tentus wrote:Keep in mind this is being used in my Raycasting engine and I'd have to apply this effect to every single quad and sprite being drawn on screen
Colorizing an image?
Forum rules
Before you make a thread asking for help, read this.
Before you make a thread asking for help, read this.
- tentus
- Inner party member
- Posts: 1060
- Joined: Sun Oct 31, 2010 7:56 pm
- Location: Appalachia
- Contact:
Re: Colorizing an image?
Kurosuke needs beta testers
Re: Colorizing an image?
Coming soon to an 0.8.0 near you.
Re: Colorizing an image?
Oh that's sweet Anjo, LOVE core support. If I didn't saw a OSX window I would say you wanted to say "Coming soon to an 0.8.0 PC near you." ;Danjo wrote:Coming soon to an 0.8.0 near you.
What blending modes you planning introduce?
Re: Colorizing an image?
If you need everything on the screen to be one uniform color couldn't you just draw a semi-transparent rectangle over everything?Jasoco wrote:Right now I can darken an image. But that's it. It makes it work with depth in dark areas, but what about white fog or really cool lighting effects. Green for slime. Red for fire or hot areas. Make it fade between red and black for alarms. Shame.
Re: Colorizing an image?
I do something like that to colorize a large amount of fast moving grey & color rectangles . But isn't very color accurate.Kadoba wrote:If you need everything on the screen to be one uniform color couldn't you just draw a semi-transparent rectangle over everything?Jasoco wrote:Right now I can darken an image. But that's it. It makes it work with depth in dark areas, but what about white fog or really cool lighting effects. Green for slime. Red for fire or hot areas. Make it fade between red and black for alarms. Shame.
EDITED: Your concept applied here Kadoba. In the first screen with a huge red rectangle over gray. In second only with GUI layer rectangle over misc colored tiles.
- slime
- Solid Snayke
- Posts: 3166
- Joined: Mon Aug 23, 2010 6:45 am
- Location: Nova Scotia, Canada
- Contact:
Re: Colorizing an image?
The new blend mode, as a shader:
Code: Select all
vec4 effect(vec4 color, Image texture, vec2 texture_coord, vec2 pixel_coord)
{
vec4 texcolor = Texel(texture, texture_coord);
vec4 result = vec4(texcolor.rgb + color.rgb - 0.5, texcolor.a);
return clamp(result, 0.0, 1.0);
}
Last edited by slime on Thu Jan 26, 2012 8:35 pm, edited 1 time in total.
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Colorizing an image?
Oh joyous day!anjo wrote:Coming soon to an 0.8.0 near you.
Re: Colorizing an image?
Didn't you noticed the photoshop fingerprint?Jasoco wrote:Oh joyous day!
- Jasoco
- Inner party member
- Posts: 3727
- Joined: Mon Jun 22, 2009 9:35 am
- Location: Pennsylvania, USA
- Contact:
Re: Colorizing an image?
Oh shitty day then. Don't get my hopes up. This should be built-in.coffee wrote:Didn't you noticed the photoshop fingerprint?Jasoco wrote:Oh joyous day!
Re: Colorizing an image?
coffee's trolling. It is built in. You can check the commit yourself.Jasoco wrote:Oh shitty day then. Don't get my hopes up. This should be built-in.coffee wrote:Didn't you noticed the photoshop fingerprint?Jasoco wrote:Oh joyous day!
Who is online
Users browsing this forum: Bing [Bot] and 14 guests