b-l-a-c-k-o-p™
 
 
2008/01/04
Quartz Composer Patch : Sin City Style Color FX
/* Published by b-l-a-c-k-o-p.com
Copyright (c) 2007-2012
http://creativecommons.org/licenses/by-nc-sa/3.0/legalcode
*/

SAMPLE: QameraSinCityRed.qtzThis kernel simulates a Sin City 1-color only type camera effect. It takes a "find_color" and a "replace_color". It samples each pixel in the source image and calculates the distance (in the RGB cube) from find_color. If the source pixel is within the threshold distance from the find_color, the kernel replaces the pixel in the output image with the replace_color; otherwise, it desaturates the pixel. In the sample, we've mapped the find_color and replace_color to the same color. But if you watch Robert Rodriquez's 15min film school, you will see they used YELLOW as the find_color and RED as the replace color in many situations. Also the sample QTZ has the sensitivity on a LFO to handle different lighting conditions.

kernel vec4 msBlackSinCityColorReplacement(sampler image, float input_threshold_normal, float threshold_sensitivity, __color find_color, __color replace_color)
{
float input_threshold_sensitivity = 2.*(1.0-clamp(threshold_sensitivity,0.0,1.0));
float input_threshold = clamp(pow(input_threshold_normal, input_threshold_sensitivity),0.0,1.0);
vec3 pel_rgb = unpremultiply(sample(image, samplerCoord(image)));
vec3 find_pel = vec3(find_color.r,find_color.g,find_color.b);
vec4 replace_pel = vec3(replace_color.r, replace_color.g, replace_color.b);
replace_pel.a = 1.0;
float distance_in_rgb_cube = distance(find_pel,pel_rgb);
float distance_abs = sqrt(distance_in_rgb_cube*distance_in_rgb_cube);
vec4 pel_avg = (pel_rgb.r + pel_rgb.g + pel_rgb.b)/3.0;
vec4 result = (distance_abs <input_threshold) ? replace_pel : pel_avg;
return result;
}

Labels:

By : Ms. Black Sin City Style Color FX

 

 

 
 
 

 BLACKOP    
 FREE DOWNLOAD MAC APP    
 SITE MAP    
 PRESS    
 B-L-A-C-K-O-P NEWS    
 blackOp    
 Mac Apps    
 iOS Apps    
 Store    
 Support    
 Free Download    
 B-L-A-C-K-O-P HOME    
 pOpOp    
 DotMatrix    
 CamCamX    
 GrabberRaster    
 Q@mera    
 VirtualEyez    
 3D    
 QZMovier    
 DOWNLOAD    
 COCOA NIBS    
 Privacy Policy    
 Terms & Conditions    
 Tutorials    
 DIY Greenscreen    
 3D Webcam Mac    
 USB 3D webcam    
 BlackenedPixels    
 CatEye    
 CamCamX Blog    
 CatEye Blog    
 DotMatrix Blog    
 GrabberRaster Blog    
 GrabberWindow Blog    
 Qamera Blog    
 Quicky    
 AsSceneOnTV    
 Watermarks    
 Watermarks Blog    
 PDF Watermarking Mac    
 free art software    
 art software free for Mac    
 art software mac    
 PDFBatchBuild    
 PDFBatchBuild Blog    
 PDF Combine Mac    
 CombinePDFs Mac    
 Combine PDF Files    
 Create iTunes Booklet    
 free graphic arts software    
 graphic design software mac    
 free graphic design software    
 Share Your Pictures    
 Washington DC    
 Universal Binary    
 Cocoa Programming    
 Cocoa Software    
 vector art software mac    
 graphic arts software mac    
 Screen Capture    
 Screen Grab Mac    
 iSight download    
 iSight software    
 WebCam    
 PhotoBooth download    
 iPhoto    
 Photoshop    
 MacBook Camera    
 iMac Camera    
 CamCamX compatibility    
 Fake WebCam Mac    
 VJ Software Mac    
 Video Mixer Mac    
 Live Video Switcher    
 Video Switcher Mac    
 Apple Webcam Effects    
 Webcam Video Effects    
 Free iChat Video Effects    
 Skype Video Effects Mac    
 Video Effects Stickam    
 iSight Virtualizer Mac    
 Webcast Streaming Mac    
 Best Screencast Mac    
 Desktop Streaming Mac    
 Screencast Streaming Mac    
 Broadcast Live Streaming Video Mac    
 QuickTime Broadcaster    
 Quartz Composer    
 Quartz Composer Plugins    
 Quartz Composer Patches    
 Video Effects Ustream    
 Best Polaroid App    
 Polaroid Camera App    
 iPhone Polaroid App    
 Polaroid Camera Emulator    
 


Copyright © 2005-2019
All Rights Reserved
b-l-a-c-k-o-p™