HomeHome    CalendarCalendar    SearchSearch    MemberlistMemberlist    RegisterRegister   ProfileProfile    Log in to check your private messagesLog in to check your private messages    Log inLog in 
 
 
“With cordite in the air, splintered steel, shell casings and powder burns, there’s only one explanation...., Smokin’ Guns.”
Calendar 
GLSL programs addon

 
Post new topic   Reply to topic    Smokin-guns.net Index -> Smokin' Guns Forum Index -> SG 1.1 Beta Testing
View previous topic :: View next topic  
Author Message
Tequila
Smokin' Gun




Joined: 15 Nov 2007
Posts: 669
Location: France

PostPosted: Sat Dec 19, 2009 10:13 pm    Post subject: GLSL programs addon Reply with quote

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:
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:

Cool
Back to top
View user's profile Send private message Visit poster's website
L3th4l
Smokin' Gun




Joined: 18 Jun 2005
Posts: 1948
Location: Binghamton, NY. USA

PostPosted: Sat Dec 19, 2009 10:16 pm    Post subject: Reply with quote

Now that's awesome. Looks like the game Borderlands
Back to top
View user's profile Send private message Visit poster's website
ReD NeCKersoN
Smokin' Gun




Joined: 27 Mar 2002
Posts: 2927
Location: VA, USA

PostPosted: Sat Dec 19, 2009 11:06 pm    Post subject: Reply with quote

Haha! More eye candy from Tequila! Cool
_________________
Back to top
View user's profile Send private message Visit poster's website
=Chico=
Tester




Joined: 16 Apr 2005
Posts: 101
Location: North Carolina

PostPosted: Sat Dec 19, 2009 11:11 pm    Post subject: Reply with quote

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! Laughing
Back to top
View user's profile Send private message Visit poster's website
Tequila
Smokin' Gun




Joined: 15 Nov 2007
Posts: 669
Location: France

PostPosted: Sun Dec 20, 2009 5:50 am    Post subject: Reply with quote

=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! Laughing

Smile
Tell us if you find better toon color balance !

ReD NeCKersoN wrote:
Haha! More eye candy from Tequila! Cool

Ha ha! More to come Razz
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Smokin-guns.net Index -> Smokin' Guns Forum Index -> SG 1.1 Beta Testing All times are GMT - 4 Hours
Page 1 of 1

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


© 2005 - 2009 by Smokin' Guns Productions. © 2000-2003 Iron Claw Interactive. All Rights Reserved. || Web-Design by L3th4l
Quake 3 Arena © 2000 - 2009 id software, inc. All trademarks used are properties of their respective owners.
Smokin' Guns® the name and logos are Registered Trademarks of L3th4l Design and may not be used with out permission.
Site is best viewed @ 1280x1024 resolution or higher on Mozilla FireFox 1.03+

Powered by phpBB © 2001 - 2009 phpBB Group