Advertisement
Guest User

Untitled

a guest
Feb 27th, 2011
2,712
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.78 KB | None | 0 0
  1. #****************************************
  2. #Make 3D
  3. #****************************************
  4.  
  5. #@gimp Make 3D : 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 Anaglyph = bool (0)
  25. #@gimp : Gamma compensation = float(1,0,4)
  26. #@gimp : Color boost = float(1,0,4)
  27. #@gimp : Red / cyan compensation = float(0,-255,255)
  28. #@gimp : sep = separator(), Preview type = choice("Full","Forward
  29.  
  30. horizontal","Forward vertical","Backward horizontal","Backward vertical")
  31. #@gimp : sep = separator(), note = note("<small>Author : <i>Tom Keil</i>.
  32.  
  33. Last update : <i>2011/02/27</i>.</small>")
  34. #@gimp : note = link("Filter explained
  35.  
  36. here","http://www.flickr.com/groups/gmic/discuss/72157626154386744/")
  37.  
  38. gimp_make3D :
  39.  
  40. -repeat @# -l[$>] -if {$6==0} -to_rgb[0] --gimp_do_nothing[0]
  41. -else -luminance[0] -to_rgb[0] --gimp_do_nothing[0] -endif
  42. -if {$5==0}
  43. -if {$1==0} --luminance[-1]
  44. -gimp_channel_processing[-1] 1,{$3/25},0,0,0,0,100,256,0,0,0,2,0,0
  45. -elif {$1==1} --luminance[-1] -negative[-1]
  46. -gimp_channel_processing[-1] 1,{$3/25},0,0,0,0,100,256,0,0,0,2,0,0
  47. -elif {$1==2}
  48. --gimp_linear_gradient[-1] 0,0,0,255,255,255,255,255,0,90,0,{100-$3}
  49. -elif {$1==3}
  50. --gimp_radial_gradient[-1] 0,0,0,255,255,255,255,255,1,$3,100,50,50
  51. -elif {$1==4}
  52. --gimp_radial_gradient[-1] 0,0,0,255,255,255,255,255,0,0,{100-$3},50,50
  53. -elif {$1==5}
  54. --gimp_linear_gradient[-1] 0,0,0,255,255,255,255,255,1,0,$3,100
  55. -elif {$1==6}
  56. --gimp_linear_gradient[-1] 0,0,0,255,255,255,255,255,0,0,0,{100-$3}
  57. -elif {$1==7} --channels[-1] 0
  58. -gimp_channel_processing[-1] 1,{$3/25},0,0,0,0,100,256,0,0,0,2,0,0
  59. -endif
  60. -gimp_gaussian_blur[-1] 0,0,{{w+h}*0.00285},1,0,0,0
  61.  
  62. -else -rv[1,-1] -to_rgb[-1] -luminance[-1] -endif
  63.  
  64. -r[-1] 100%,100%,1,2 -s[-1] c -f[-1] 0 -n[-2] 0,$2 -a[-1,-2] c
  65. -warp[-2] [-1],1 -rm[-1] -s c
  66. -if {$4==0} -rm[-1,-2,-6] -mv[-1] 0 -a[-1,-2,-3] c
  67. -else -rm[-3,-4,-5] -a[-1,-2,-3] c -endif
  68. -apply_gamma $7
  69. -gimp_mix_lab 1,0,0,$8,0,0,$8,0,0,0,2,0
  70. -gimp_mix_rgb 1,$9,0,1,0,0,1,0,0,0,2,0 -endl -done
  71.  
  72. gimp_make3D_preview :
  73. -gimp_split_preview "-gimp_make3D ${1--2}",$-1
  74.  
  75.  
  76. #************END OF FILTER***************
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement