Reptillian Posted December 20, 2018 Share Posted December 20, 2018 (edited) Hi, I'm in the process of remaking existing PDN plugins/filters into G'MIC with credits applied and giving them more features, and I believe I have almost learned enough of G'MIC scripting to do what I want (I still need to know how to work with rotating using mathematics or something like that to learn enough though, so...). So I will be making G'MIC varients of certain filters here. And, I am posting here because I'd believe I'd have more testers of codes in here. To download G'MIC filters that aren't found in the official updates, you have to type in %appdata%/gmic into explorer, and copy and paste code into somewhere you'd like. Kate text editor works, and I'm not too sure about Notepad++,bu that can work too. Sometimes, you may have to make the tabs and things like that before using that code or just test it within code[local] filter. Report issues related to my G'MIC filter here - https://github.com/Reptorian1125/gmic-community Reptorian's GMIC code - https://github.com/Reptorian1125/gmic-community/blob/master/include/reptorian.gmic Edited June 13, 2019 by Reptillian Update Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
toe_head2001 Posted December 20, 2018 Share Posted December 20, 2018 Is there an official G'MIC repository for "community" filters? A tutorial of sorts for demonstrating the conversion of a PDN effect to a G'MIC filter would be helpful. There's potentially a lot to cover (as you said, the manual is over 400 pages), but the basics should be enough for people to get started. I'm moving this into Plugin Developer's Central. Quote (September 25th, 2023) Sorry about any broken images in my posts. I am aware of the issue. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
Reptillian Posted December 20, 2018 Author Share Posted December 20, 2018 (edited) 11 minutes ago, toe_head2001 said: Is there an official G'MIC repository for "community" filters? A tutorial of sorts for demonstrating the conversion of a PDN effect to a G'MIC filter would be helpful. There's potentially a lot to cover (as you said, the manual is over 400 pages), but the basics should be enough for people to get started. I'm moving this into Plugin Developer's Central. No. They usually go under testing if you want to have these codes into the g'mic filter database. They only go in outside of the filter once they seem to be "finished". I would argue some of the testing filter are already finished though. If they don't seem to be great or eh, there's really no issue about them being in the testing. Some are buggy, and that's a reason for some of them under testing. Well, I think I can demonstrate a example of converting PDN HSL Posterization to G'MIC filter with even more color space and control at some point as that is something I"ll be making soon. Edited December 20, 2018 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted December 24, 2018 Author Share Posted December 24, 2018 (edited) Update: Vibrato filters has been merged into one vibrato filter. You can manipulate multiple channels at once or edit them one-by-one. See note below the vibrato filter as there is a issue. However, a workaround exist though. A sample of modifying saturation and value channels at once with vibrato Next up - Replicating Alien Map from GIMP, but with support for multiple color space of course. After that, Channels OOBS (Overblur/Overline/Blur/Sharpen) with the same controls as Vibrato. Edited December 24, 2018 by Reptillian 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted January 20, 2019 Author Share Posted January 20, 2019 (edited) Just want to announce that the Vibrato filter has landed, and unlike the one in this forums, it works with multiple color spaces and it actually works with alpha channels, plus you can either edit all the channels at once or individually. Also, there is a OOBS(Channels Overblur-Overline-Blur-Sharpen) filter which is basically 3-4 different PDN plugin into one, and I could extend it by adding blending mode which is something I'll have to do when I get the time and will to do that. OOBS in essence is like overblur, overline, and maybeone of the filter @BoltBait has made all into one. I'm not sure on the last part. Made an advanced embossing/reliefing filter which again is inspired by the PDN filter. There is a new mods_ops commands (please don't make filters yet with it, I am going to add the option to use a secondary layer or a copied image for PDN users to be used as maximum value reference layer) which utilizes continuous and standard forms of modulo operations, as well as a inversion option. Refresh to see the filters. You can use the mods_ops via code [local] mod_ops : 0>=ops<=5,chan_v>0, 0>value(%)<=1,alpha_preserve>=0 ops = (0=Modulo Standard ; 1=Modulo Continuous ; 2 = Modulo Division Standard ; 3 = Modulo Division Continuous ; 4 = Modulo Addition Standard ; Modulo Addition Continuous) chan_v = Channel value - Use 255 for 8-bit operations, but set to 1 or 360 for other operations value = Uses the chan_v as a reference for modulo operations alpha_preserve = if yes, preserve alpha, else if no, the operation is performed on alpha channel Is there an official G'MIC repository for "community" filters? @toe_head2001 I found out that the repository for the community filter is here - https://github.com/dtschump/gmic-community Basically, if you have any code you want to see in G'MIC. Add your_username.gmic and use the template, and then copy your g'mic code into there. Edited January 20, 2019 by Reptillian 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted January 26, 2019 Author Share Posted January 26, 2019 (edited) Have just added blending modes options to the OOBS filter. Not doing any more work since it's not a really good filter, but it works. It's 5 existing PDN filters into 1. It will be here at some point before G'MIC v.2.5. By the the modo and modf has been done too. Those will replace mod_ops. The purpose are still the same, and they are to manipulate gradients or be used for glitch art. Almost done with the Concrete Texture filter for G'MIC Here's a sample. The relief filter section doesn't work on the concrete texture filter yet, so I had to manually apply relief filter. But, here is what it can look like. Edited January 27, 2019 by Reptillian 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted January 27, 2019 Author Share Posted January 27, 2019 (edited) News! Construction Material Texture is going to come to G'MIC in less than a week. So you can use it on Paint.NET soon when it arrives. Here's the work so far, all that's missing is the Butterworth Bandpass filtering code, and it'll be done. - Edited August 26, 2021 by Reptillian 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
lynxster4 Posted January 27, 2019 Share Posted January 27, 2019 Hi, @Reptillian First, thank you for all your work concerning the G'MIC plugin. Second, a question. Will the Construction Material Texture filter and all new filters made be automatically added to the G'MIC when we open it? Because you uploaded it to the website that the G'MIC plugin gets the filters from? Ha...that was poorly worded...but you get the gist! Quote My Art Gallery | My Shape Packs | ShapeMaker Mini Tut | Air Bubble Stained Glass Chrome Text with Reflections | Porcelain Text w/ Variegated Coloring | Realistic Knit PatternOpalescent Stained Glass | Frosted Snowman Cookie | Leather Texture | Plastic Text | Silk Embroidery Visit my Personal Website "Never, ever lose your sense of humor - you'll live longer" Link to comment Share on other sites More sharing options...
Reptillian Posted January 27, 2019 Author Share Posted January 27, 2019 (edited) 7 hours ago, lynxster4 said: Hi, @Reptillian First, thank you for all your work concerning the G'MIC plugin. Second, a question. Will the Construction Material Texture filter and all new filters made be automatically added to the G'MIC when we open it? Because you uploaded it to the website that the G'MIC plugin gets the filters from? Ha...that was poorly worded...but you get the gist! The place where people provide their filter codes is in G'MIC Community at Github. Once their pull requests are accepted, it is available at G'MIC upon refresh. RIght now, they're not at the official G'MIC, but however, you can get them early by copying the filters to and paste it within %appdata%/gmic/updatexxxx.gmic where xxxx is your version of g'mic. @G'MIC is probably taking a break, so you might have to copy and paste them into that file. Vibrato is already available upon G'MIC refresh, and so is advanced emboss/relief as well as OOBS. OOBS as of current G'MIC does not have blending modes yet, but this patch below has it. The Construction Material Texture is not available, so if you want that you'll have to copy and paste for now. Patches for updatexxxx.gmic Edited January 27, 2019 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted January 28, 2019 Author Share Posted January 28, 2019 (edited) News, the patches are merged into master. @lynxster4 - They're here now, so you could try refreshing your filters and see if the patches are applied. Edited January 28, 2019 by Reptillian 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted January 31, 2019 Author Share Posted January 31, 2019 (edited) Well, it seem like I decided to continue making new G'MIC filter as my main computer is overheating and I stepped out of doing filters for a while. I'm using my secondary computer. My options - A ) Finish Transfer [Reduced Colors] filter, this filter basically transfer colors from reference image to a target image using a palette of colors from the reference image, and the target result contains only the palette colors. From 2 colors to 4096 colors. It works well with PDN limitations, but I also have to make it work as I want it to work with 3+ layers the way I want to on GIMP and Krita as well, so that is why it is not on G'MIC yet. @nycos62 , does this benefit pixel artists? If it does, should I release this regardless of the bug? B ) Pixel-art scaling C ) Wood texture D) Improve my Construction filter, any suggestion welcome. I thought of laplacian normalization processing. And also I can add color processing using LAB channels and adding red,green,blue, yellow sliders. Are these the only thing that needs to be added? Is there a technique I can implement akin to Butterworth Bandpass processing? Should I add description? E) Implement Modulo Blending Modes to self-cascading glitch filter. Regular modulo already exist, so this would be about continuous regular modulo, divisive modulo, continuous divisive modulo, modulo addition, continuous modulo addition. F) Bubble filter Besides those long filters, I might update my modulos operation using modf and modo while being able to perform them on separate channels using a number or image for calculation. Edited January 31, 2019 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
BoltBait Posted January 31, 2019 Share Posted January 31, 2019 3 hours ago, Reptillian said: B ) Pixel-art scaling If you're going to work on pixel art scaling, you should read this thread: 1 Quote Download: BoltBait's Plugin Pack | CodeLab | and a Free Computer Dominos Game Link to comment Share on other sites More sharing options...
nycos62 Posted January 31, 2019 Share Posted January 31, 2019 (edited) 8 hours ago, Reptillian said: does this benefit pixel artists? Hello Reptillian, the purpose of reducing color palette could be applied like this : you get a photo of an existing place or object, you scale carrefully image to your game scale, then you reduce colors to obtain a starting point to draw over a sprite, yes , why not !! for your B ) point, if you can "magically" scale this into this, you are the man !! Bitmap Brothers Tank in Z game (artwork from Dan Malone I guess) original scale VS reworked X2 : If you really want to dig into the sprite scaling, here you will find a very efficient technique : https://imgur.com/a/gRXPJ (for what I understood, it use spline and pixel neighbour's comparison + edge detection to correct splines trajectories to guess the hidden details, it's not a simple filter applied on a picture) *I'm not a professional pixel artist, I'm making 2D games in my spare time, so take my opinions with moderation.. I work as developper for business applications, not always fun 😱🤯 Edited January 31, 2019 by nycos62 1 Quote Link to comment Share on other sites More sharing options...
Reptillian Posted February 1, 2019 Author Share Posted February 1, 2019 (edited) Since at the moment, I'm not really ready to update my gmic as I still want to do a few more filters before I upload to g'mic community, I decided to prematurely release the g'mic code for transfer color [reduced colors]. This code will be deleted once it gets to G'MIC of course like I did with the Vibrato code. 1. Type in %appdata%/gmic in Windows Explorer 2. Copy and paste this inside updatexxxx.gmic somewhere between the end of preview of a filter, and before #@gui, and then go to paint.net -> advanced -> g'mic QT, type in Reduced Colors and this should show up. #@gui Transfer Colors [Reduced Colors] : tcrc, tcrc_preview(0) #@gui : sep = separator(), note = note ("<b>Transfer Color Setting<b>") #@gui : note = note ("<i>If using all layers as input layer, the layer is the reference layer. If using active and above/below, the layer is the target layer.</i>") #@gui : Layer to Use as Reference/Target Image = choice(0,"Top Layer","Bottom Layer") #@gui : 1. Is reference image smaller than target image? = bool(0) #@gui : 2. Color Count = int(16,2,4096) #@gui : 3. Color Dithering (%) = float(50,0,100) #@gui : 4. Color Indexing Method = choice(1,"Median Cut","Median Cut and K-Means") #@gui : 5. Alpha Value Count = int (2,2,255) #@gui : 6. Alpha Dithering (%) = float(50,0,100) #@gui : 7. Alpha Indexing Method = choice(1,"Median","K-Means") #@gui : sep = separator(), note = note ("<b>Local Contrast<b>") #@gui : 7. Spatial Radius = float(80,2.5,200) #@gui : 8. Amount = float(0.5,0,5) #@gui : 9. Darkness Level = float(1,0,4) #@gui : 10. Lightness Level = float(1,0,4) #@gui : sep = separator(), note = note ("<b>RGB Adjustments<b>") #@gui : 11. Brightness (%) = float(0,-100,100) #@gui : 12. Contrast (%) = float(0,-100,100) #@gui : 13. Gamma (%) = float(0,-100,100) #@gui : 14. Hue Shift (%) = float(0,-180,180) #@gui : 15. Saturation (%) = float(0,-100,100) #@gui : sep = separator(), note = note ("<b>LAB Adjustments<b>") #@gui : 16. Lightness Brightness (%) = float(0,-100,100) #@gui : 17. Lightness Contrast (%) = float(0,-100,100) #@gui : 18. Red Chroma (%) = float(0,-100,100) #@gui : 19. Green Chroma (%) = float(0,-100,100) #@gui : 20. Blue Chroma (%) = float(0,-100,100) #@gui : 21. Yellow Chroma (%) = float(0,-100,100) #@gui : sep = separator(), Preview type = choice("Full","Forward horizontal","Forward vertical","Backward horizontal","Backward vertical","Duplicate top","Duplicate left","Duplicate bottom","Duplicate right","Duplicate horizontal","Duplicate vertical","Checkered","Checkered inverse") #@gui : sep = separator(), note = note("<small>Author : <i>Reptorian</i> Latest update: <i>2019/1/31</i>.</small>") tcrc : if {$1==1} rv fi ac[^0] "tcrc_adjustment ${9-23}",rgb rv[0,{$!-1}] repeat {$!-1} l[{$!-1},$<] tcrc_colormapping[0,1] ${2-8} endl done rv[0,{$!-1}] if {$1==0} rv fi tcrc_colormapping : rv split_opacity[1] to_rgba[1] +colormap[0] {$1?$2+1:$2},$4,1 index[1] [3],{$3/100},1 l[2] skip {ia==255} if {ia!=255} autoindex $5,{$6/100},{$7} n 0,255 fi endl rm[3] to_rgb[1] a[1,2] c rv tcrc_adjustment : fx_LCE ${1-4},1 adjust_colors ${5-9},0,255 rgb2lab s c l[0] adjust_colors $10,$11 endl l[1] +adjust_colors 0,$12 blend lighten +adjust_colors 0,$13 blend darken endl l[2] +adjust_colors 0,$14 blend darken +adjust_colors 0,$15 blend lighten endl a c lab2rgb tcrc_preview : tcrc $* Reference Layer - http://amiga.lychesis.net/resolution/Lowres/Corruption_17_Casino.html Target Layer - https://www.pexels.com/photo/eiffel-tower-paris-1267533/ Result of Reference Layer to Target Layer Edited February 1, 2019 by Reptillian Fixed tcrc_colormapping 3 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted February 4, 2019 Author Share Posted February 4, 2019 (edited) In relations to my last few post, I have implemented triangle wave in cascading glitch filter which would be E option. However, I still want to wait on that as the original author isn't back on developing filter. I'll give it 2-3 months for E, and if she had not returned, I might have to put my own version on reptorian.gmic if i am not granted permission to edit joan_rake.gmic file. It turns out I still need to do work on reduced color filters, so I'll figure out something sooner or later, but it's not a filter I would prioritize on since pixel art isn't really my thing. I'm working on finally implementing modulo operations cli into a filter. The main thing I need to figure out is how to apply those operations per every two layers and by channels separately and then blend them. Edited February 4, 2019 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Eli Posted February 5, 2019 Share Posted February 5, 2019 On 1/31/2019 at 11:53 AM, nycos62 said: I work as developper for business applications, not always fun Using Paint.net Ch'tis a good way to relax Quote Link to comment Share on other sites More sharing options...
Reptillian Posted February 6, 2019 Author Share Posted February 6, 2019 (edited) Solved the LAB editing issue on transfer color[reduced colors] I found out that the contrast effect goes over the range of [0,255] so, I had to apply cut 0,255 command. Now, it's ready for use though there's still a issue with preview, but however, that wouldn't affect productivity so much. Edited February 7, 2019 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
Reptillian Posted February 7, 2019 Author Share Posted February 7, 2019 Transfer Colors [Reduced Colors] is now on G'MIC. Update via G'MIC QT. 1 Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
nitenurse79 Posted February 10, 2019 Share Posted February 10, 2019 Where do I find and download these plugins from please ? Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted February 10, 2019 Share Posted February 10, 2019 Welcome back @nitenurse79 Be prepared for 500+ new filters Quote Link to comment Share on other sites More sharing options...
nitenurse79 Posted February 10, 2019 Share Posted February 10, 2019 40 minutes ago, AndrewDavid said: Welcome back @nitenurse79 Be prepared for 500+ new filters Thanks for the welcome. Does the link you provided include the filters mentioned in this thread ? Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted February 10, 2019 Share Posted February 10, 2019 @nitenurse79 Yes Once you have it installed - look for the update button at the bottom of the screen next to "Internet" and it will update all the filters. Quote Link to comment Share on other sites More sharing options...
nitenurse79 Posted February 10, 2019 Share Posted February 10, 2019 1 minute ago, AndrewDavid said: @nitenurse79 Yes Once you have it installed - look for the update button at the bottom of the screen next to "Internet" and it will update all the filters. Thanks Andrew. It looks like an interesting new toy. Quote Link to comment Share on other sites More sharing options...
Reptillian Posted February 12, 2019 Author Share Posted February 12, 2019 (edited) Joan Rake is back, so the changes that I applied to Cascading self glitch filter will be there. She has merged the changes. I also do collaborate with her from time to time. However, I will be taking a break, but as always, you are welcome to leave issues or feature requests in here or in here or by discuss.pixls via PM -https://github.com/Reptorian1125/gmic-community How do I enable issues on github? P.S I consider changes to default parameters as well. I have considered trying to add existing palette to transfer color reduced as well as chroma edit by ab channels into construction material, so doing those will be done after the break. Edited February 12, 2019 by Reptillian Quote G'MIC Filter Developer I am away from this forum for undetermined amount of time: If you really need anything related to my PDN plugin or my G'MIC filter within G'MIC plugin, then you can contact me via Paint.NET discord, and mention me. Link to comment Share on other sites More sharing options...
null54 Posted February 12, 2019 Share Posted February 12, 2019 2 hours ago, Reptillian said: How do I enable issues on github? Click the Settings tab in the GitHub Web UI and toggle the Issues checkbox that is located under Features. Quote Plugin Pack | PSFilterPdn | Content Aware Fill | G'MIC | Paint Shop Pro Filetype | RAW Filetype | WebP Filetype The small increase in performance you get coding in C++ over C# is hardly enough to offset the headache of coding in the C++ language. ~BoltBait Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.