Advertisement
Guest User

Untitled

a guest
Mar 1st, 2011
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.92 KB | None | 0 0
  1. #****************************************
  2. #3D Anaglyph
  3. #****************************************
  4.  
  5. #@gimp 3D Conversion : gimp_make3D, gimp_make3D_preview(1)
  6. #@gimp : sep = separator()
  7. #@gimp : note = note("Stereoscopic settings:")
  8. #@gimp : Scene selector = choice("light motive","dark motive","landscape","center
  9.  
  10. foreground","center background","left foreground","right
  11.  
  12. foreground","underwater")
  13. #@gimp : Stereo base = float(50,0,200)
  14. #@gimp : Depth control = float(0,0,100)
  15. #@gimp : Flip left / right = bool(0)
  16. #@gimp : Use indivial depth map = bool(0)
  17. #@gimp : note = note("<small>To use this option your depth map must be placed
  18.  
  19. below your image. Switch input layers to <i><b>Active and
  20.  
  21. below</b></i>.</small>")
  22. #@gimp : sep = separator()
  23. #@gimp : note = note("Image adjustment:")
  24. #@gimp : Black & White = bool (0)
  25. #@gimp : Stereo pair = bool (0)
  26. #@gimp : Gamma compensation = float(1,0,4)
  27. #@gimp : Color boost = float(1,0,4)
  28. #@gimp : Red / cyan compensation = float(0,-255,255)
  29. #@gimp : sep = separator(), Preview type = choice("Full","Forward
  30.  
  31. horizontal","Forward vertical","Backward horizontal","Backward vertical")
  32. #@gimp : sep = separator(), note = note("<small>Author : <i>Tom Keil</i>.
  33.  
  34. Last update : <i>2011/03/01</i>.</small>")
  35. #@gimp : note = link("Filter explained
  36.  
  37. here","http://www.flickr.com/groups/gmic/discuss/72157626154386744/")
  38.  
  39. gimp_make3D :
  40.  
  41. -repeat @# -l[$>] -if {$6==0} -to_rgb[0] --gimp_do_nothing[0]
  42. -else -luminance[0] -to_rgb[0] --gimp_do_nothing[0] -endif
  43. -if {$5==0}
  44. -if {$1==0} --luminance[-1]
  45. -gimp_channel_processing[-1] 1,{$3/25},0,0,0,0,100,256,0,0,0,2,0,0
  46. -elif {$1==1} --luminance[-1] -negative[-1]
  47. -gimp_channel_processing[-1] 1,{$3/25},0,0,0,0,100,256,0,0,0,2,0,0
  48. -elif {$1==2}
  49. --gimp_linear_gradient[-1] 0,0,0,255,255,255,255,255,0,90,0,{100-$3}
  50. -elif {$1==3}
  51. --gimp_radial_gradient[-1] 0,0,0,255,255,255,255,255,1,$3,100,50,50
  52. -elif {$1==4}
  53. --gimp_radial_gradient[-1] 0,0,0,255,255,255,255,255,0,0,{100-$3},50,50
  54. -elif {$1==5}
  55. --gimp_linear_gradient[-1] 0,0,0,255,255,255,255,255,1,0,$3,100
  56. -elif {$1==6}
  57. --gimp_linear_gradient[-1] 0,0,0,255,255,255,255,255,0,0,0,{100-$3}
  58. -elif {$1==7} --channels[-1] 0
  59. -gimp_channel_processing[-1] 1,{$3/25},0,0,0,0,100,256,0,0,0,2,0,0
  60. -endif
  61. -gimp_gaussian_blur[-1] 0,0,{{w+h}*0.00285},1,0,0,0
  62.  
  63. -else -rv[1,-1] -to_rgb[-1] -luminance[-1] -endif
  64.  
  65. -r[-1] 100%,100%,1,2 -s[-1] c -f[-1] 0 -n[-2] 0,$2 -a[-1,-2] c
  66. -warp[-2] [-1],1 -rm[-1]
  67. -if {$7==0} -s c
  68. -if {$4==0} -rm[-1,-2,-6] -mv[-1] 0 -a[-1,-2,-3] c
  69. -else -rm[-3,-4,-5] -a[-1,-2,-3] c -endif
  70. -else -if {$4==1} -rv[-1,-2] -endif
  71. -r[-1,-2] 50%,50% -a[-1,-2] x -endif
  72. -apply_gamma $8
  73. -gimp_mix_lab 1,0,0,$9,0,0,$8,0,0,0,2,0
  74. -if {$7==0} -gimp_mix_rgb 1,$10,0,1,0,0,1,0,0,0,2,0 -endif -endl -done
  75.  
  76. gimp_make3D_preview :
  77. -gimp_split_preview "-gimp_make3D ${1--2}",$-1
  78.  
  79.  
  80. #************END OF FILTER***************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement