With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...
Everything about Smokin' Guns releases

Moderators: torhu, Tequila

GLSL programs addon

Postby Tequila » Sun Dec 20, 2009 4:13 am

I created an addon on moddb if anyone want to try to tune FBO effects on the GLSL programs side.
Check it out there: GLSL programs for FBO effects

For example, here is a replacement for glslRotoscopeZ GLSL program:
Code: Select all
uniform vec2 texelSize;
uniform sampler2D srcSampler;
uniform sampler2D depthSampler;

void main()
{

  float fragsobel = sobel(depthSampler, gl_TexCoord[0].xy, texelSize);
  vec4 final_color = texture(srcSampler, gl_TexCoord[0].xy);

  fragsobel = clamp(fragsobel, 0.0, 1.0);
  gl_FragColor = final_color * (1.0 - fragsobel);

}

It only removes the toon color call but keep the edge detection... so edges are drawn in black like in that screenshot:
[thumb=http://forum.smokin-guns.org/userpix/1560_shot0032_1.jpg][timg]1560_shot0032_1.jpg[/timg][/thumb]
8)
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France



Postby L3th4l » Sun Dec 20, 2009 4:16 am

Now that's awesome. Looks like the game Borderlands
User avatar
L3th4l
Smokin' Amigo!
 
Posts: 1948
Joined: Sat Jun 18, 2005 8:06 am
Location: Binghamton, NY. USA



Postby ReD NeCKersoN » Sun Dec 20, 2009 5:06 am

Haha! More eye candy from Tequila! 8)
Image
User avatar
ReD NeCKersoN
SG Team
 
Posts: 3245
Joined: Wed Mar 27, 2002 6:22 am
Location: VA, USA



Postby =Chico= » Sun Dec 20, 2009 5:11 am

yea - this will be great for people that like the effect but are having problems with areas being too dark like I am. Thanks! Looking forward to trying it out! :lol:
User avatar
=Chico=
Smokin' Amigo!
 
Posts: 104
Joined: Sat Apr 16, 2005 1:50 pm
Location: North Carolina



Postby Tequila » Sun Dec 20, 2009 11:50 am

=Chico= wrote:yea - this will be great for people that like the effect but are having problems with areas being too dark like I am. Thanks! Looking forward to trying it out! :lol:

:)
Tell us if you find better toon color balance !

ReD NeCKersoN wrote:Haha! More eye candy from Tequila! 8)

Ha ha! More to come :P
User avatar
Tequila
SG Team
 
Posts: 1100
Joined: Thu Nov 15, 2007 11:33 pm
Location: Montpellier, France




Return to Release

Show Sidebar
Show Sidebar

User Control Panel

cron