black2hack Posted November 4, 2011 Share Posted November 4, 2011 (edited) Hello! It's my first Paint.NET plugin. It's not complete yet but it works (to a greater or lesser extent) and I'd like to show what I've done. The main point of the plugin is easy - it shatters a picture to fragments. Fragments are placed on a rectangle matrix. The plugin's config has 5 parameters: Count of Columns = number of columns of a matrix of fragments (integer, >=1) Count of Rows = number of rows of a matrix of fragments (integer, >=1) Shifting (pixels) shows a distance between fragments (integer, >=0) Fluctuation (%) shows how much fragments differ from rectangle (integer, >=0, <=100) Max Angle (degrees) shows how much fragments rotate (integer) In this plugin I've used Interpolation function I had found in AdvancedRotate plugin by Stuart Radforth. Stuart, I hope you don't mind. Please, don't forget it's only a beta version! The general disadvantages are it has no anti-antialiasing and it works slow. VERY SLOW I mean . You can help me to cope with the second problem here, I'd really appreciate it. Good news is the plugin has no bugs as far as I know. Enjoy! Shatters_0.55beta.zip Edited November 4, 2011 by black2hack Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted November 4, 2011 Share Posted November 4, 2011 I tried it. The canvas doesn't seem to update when you change the parameters. This leaves you blind in trying to figure things out. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
black2hack Posted November 4, 2011 Author Share Posted November 4, 2011 (edited) You mean nothing happens until you click OK? Yep, but taking into account speed of the rendering in this beta it's not an issue =) Though I've just realized the way to make it better. I'll fix it. Edited November 4, 2011 by black2hack Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 6, 2011 Share Posted November 6, 2011 It's a lot easier if you just use IndirectUI. Instead of deriving from Effect, derive from PropertyBasedEffect. All that WinForms nonsense just vanishes into a cloud of stress relieving helpfulness. Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
barbieq25 Posted November 6, 2011 Share Posted November 6, 2011 This looks useful. I hope you get the issues sorted. I'd like to try it once the bugs mentioned are ironed out. Good on you & thank you! Quote Knowledge is no burden to carry. April Jones, 2012 Gallery My DA Gallery Link to comment Share on other sites More sharing options...
yellowman Posted November 6, 2011 Share Posted November 6, 2011 So it is same effect as this? Mosaic Quote My GalleryMy YouTube Channel "PDN Tutorials" Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted November 6, 2011 Share Posted November 6, 2011 Very similar now that you come to mention it. Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
black2hack Posted November 7, 2011 Author Share Posted November 7, 2011 Thank you for comments. I'll continue working at the plugin next weekend and will try to make it better. 2yellowman. No, it's a different effect. Firstly, fragments can be not only regular rectangles. Seconly, fragments are unaffected parts of an initial picture. Quote Link to comment Share on other sites More sharing options...
pdnnoob Posted November 7, 2011 Share Posted November 7, 2011 I can already think of several uses for this. Can't wait for the updates! Quote No, Paint.NET is not spyware...but, installing it is an IQ test. ~BoltBait Blend modes are like the filling in your sandwich. It's the filling that can change your experience of the sandwich. ~Ego Eram Reputo Link to comment Share on other sites More sharing options...
yellowman Posted November 7, 2011 Share Posted November 7, 2011 2yellowman. No, it's a different effect. Firstly, fragments can be not only regular rectangles. Seconly, fragments are unaffected parts of an initial picture. You are right, it is actually different, I thought it is not working, then realized it is very slow on my PC, and when I tried it on a small size (200x150) I saw the effect, it is rotating the pieces in random angles, right? Quote My GalleryMy YouTube Channel "PDN Tutorials" Link to comment Share on other sites More sharing options...
black2hack Posted November 7, 2011 Author Share Posted November 7, 2011 2pdnnoob. Thank you, I'll do my best =) 2yellowman. Yes. Max Angle defines a maximum angle of random rotations of fragments, Fluctuation defines maximum deviation of fragments from regular rectangles. The more size of a picture and a count of fragments the more time of rendering. I gotta make ROI system work. When I do it rendering process will be much faster. Btw, I still don't understand how ROI actually works and why it reduces time of rendering. If you wish to explain it, please follow here and leave your message after the beep. Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted November 7, 2011 Share Posted November 7, 2011 Read this for an explanation: http://boltbait.com/pdn/CodeLab/help/overview.asp Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
black2hack Posted November 8, 2011 Author Share Posted November 8, 2011 (edited) I read this before and I'd like to see more detailed explanation. Edited November 8, 2011 by black2hack Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted November 9, 2011 Share Posted November 9, 2011 ROI = Rectangle of Interest (a number of grouped pixels) Really basically: Paint.net divides the effects 'work' into manageable hunks. Hunks = ROI. A dual core processor (for e.g.) may process two hunks simultaneously, so dividing up the work into chunks allows for faster processing on multi-core processors. Think of it like this: A builder has a brick wall to build containing 1000 bricks. He can do it all himself - but it takes 10 hours at 100 bricks an hour. If his mate helps, they can build the wall in 5 hours (combined speed of 200 bricks an hour). If all his mates help (20 of them) they can build the wall in 30 minutes. Now substitute pixels for bricks, and processing cores for mates and you'll begin to understand why passing the work in small units (ROI) can make the work much easier and faster. 2 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker 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.