Leaderboard


Popular Content

Showing content with the highest reputation on 12/05/2017 in all areas

  1. 5 points
    Melting distortion What's this? This effect is was a bonus in the bottom list of my pack of plugins without its post till now. This effect is a long lasting idea since I've created the gravity (effect...), still popping from time to time till I find a new approach. This effect takes the top of the selection and distort it like a melting candle. Download it! Plugin Melting.dll Here is the DLL http://jcljay.free.fr/pdn/Melting.zip The MadJik's All plugins package is available! http://forums.getpaint.net/index.php?showtopic=7186 How to install Close Paint.net Classic version of Paint.net Unzip and (re)place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects Microsoft Store version of Paint.net Unzip and (re)place the DLL in your Effect folder usually: /My Documents/paint.net App Files/Effects/ You have to adapt for your language My Documents The User interface This plugin is added to the menu Effects, submenu Distort. Range In purcent of the height the length of the melting portion. % Sample length In purcent of the height the length of image used for the melting portion. Softness Lower value for extrem peaks higher values for smooth curves. Distortion / Number of phases Horizontal range/number of distortion/phases (phases are for the sinus curve method). Reseed Zero is for full random effect. 1 and more is the Start value of the random generator. It means you will always have the same result for the same value. Shadow -None -Black -White -White+Black -Black+White Add a vertical gradient at the limit of the range. Shadow length Set the length of the shadow. Both sides If checked apply a distortor below the range limit. Method -Sinus curve -Full random Select the calculation method of the distortion. The Examples: This texture used with Shape3D and some more work: VoilĂ ! Enjoy! Let me see what you could do with it!
  2. 3 points
    Plugins that distort an image can often benefit from multisample antialiasing. The idea is to divide each pixel into multiple subpixels, then average the subpixels. It's not a perfect method. It tends to slightly blur the image, and it slows rendering, since it requires computing many times the number of pixel values. Nevertheless, it often substantially improves the image by reducing ugly jaggy artifacts. Plugins that most likely benefit from mutisampling are those that use the GetBilinearSample calls. Adding multisampling is often quite easy. I wrote code to do so, which I've used in quite a few plugins. Therefore, it's fairly well tested. I will explain how it can be added to other plugins. Let's start with a simple plugin I call "Drain." It's a simplified version of the Twist effect. Here is the original version: The first step is to move the pixel computation to a separate method. The X,Y coordinates of the destination pixel must be passed to the method as floats. The method must transform the destination coordinates, fetch the corresponding pixel (usually with a call to a GetBilinearSample routine) , and return it as a ColorBgra. Because it's a separate method, any parameters it needs must either be passed as arguments or through "global" -- i.e., class-level -- variables. Because multiple rendering routines may be running at the same time, values that change from one call to the next (within the same rendering pass) must be passed as arguments. ( I've used multisampling in a variety of plugins, and never needed to pass extra arguments.) Here is the Drain plugin modified to move the transformation to a separate method. It does exactly the same thing as the previous version. Finally, I'll add the antialias code. The process of adding the code is mostly mechanical. First, controls need to be added to allow the user to specify the number of subsamples per pixel. Second, the loop must be modified to call the antialias version of the transform code when antialiasing is enabled. (The non-antialias code works with one subsample per pixel. I call the single-sample version when antialiasing is disabled for efficiency. If AA would typically be used, it may be better to simplify by always calling the AA version.) Finally, the two antialias routines must be added. These routines can be more-or-less copied in. SetupForSubpixels never changes. The only thing that might change in the antialias transform method is the name of the transform routine, and the addition of extra arguments, if arguments besides the coordinates must be passed to the transformation routine. Here is the antialias version of Drain. Two methods are added: TransformAA and SetupForSubpixles. NOTES: 1) As noted in the code, I use integer arithmetic to sum the color components, which somewhat complicates the routines. Perhaps it might be better to use floats or doubles to accumulate the colors and alpha, or to convert the accumulated integer sums to floats to perform the final calculations. In that case, the three color-component divisions should be replaced by computing the reciprocal of alpha and three multiplications. Likewise, the reciprocal of the number of samples should be computed in the setup routine, so that the average alpha can be calculated by multiplying. Rounding can be accomplished by adding 0.5 before converting to integers. I believe the integer version is probably faster for most processors, but I've never run performance tests. 2) In my example, I use a checkbox to enable antialiasing, and a slider that starts a 2. Obviously the checkbox could be eliminated, and the slider made to start at 1. I generally use the checkbox enable because I like being able to easily switch AA on and off. Which method is best depends on the plugin and the programmer's taste. 3) In the TransformAA, before adding to the sums I test if alpha is zero with "if (alpha != 0)". That's unnecessary, and actually may not be such a good idea. It saves computation time if there are a lot of transparent pixels, but may make an unpredictable branch that's worse than the adds and multiplies. 4) If the sum of the alphas is zero, I return the BGRA color (0, 0, 0, 0). Perhaps it would make sense to return instead ColorBgra.Transparent, which is (255, 255, 255, 0). (I think it would be better if Transparent were (0, 0, 0, 0).) 5) I go to extra effort to produce rounded results. I think it's probably a good idea, but it may be an unnecessary complication. Without rounding, the computations are simply: // Compute the averages b /= a; g /= a; r /= a; a /= ssSamples; 6) If you're writing your own multisampling AA routines, you might at least want to use my calculation of ssXStrart and ssYStart, which are the offsets to the pixel's first subsample. I think they're a little tricky to get right, and if they're wrong, the image will shift slightly when AA is enabled.
  3. 3 points
    Update! New: saving a preset includes all settings in the dialog Fix ArgumentOutOfRangeException when getting too wild with the gradient handles Fix crash on loading a bad file Fix transparent color if nodes overlap Fix: Default preset would sometimes remember changes made while it was active Fix crash if spread or reverse functions are used with 1 or 0 colors Installer: New: now supports installing plugins for Window Store version of paint.net New: add option to start paint.net after successful installation
  4. 3 points
    Just something I made real quick. This needs to be investigated more. I agree with MJW about antialiasing. Thank you, @MadJik
  5. 2 points
    An all time classic, song and video alike. Directed by Gerard De Thame. And released (for a second time) in August 1987, this time becoming the hit it deserved to be.
  6. 2 points
    1. Select your file 2. Press F2 3. Add .zip at the end of name 4. Press Enter Now you have a zip file witch contains the .dll you want.
  7. 2 points
    Update! New: feature to choose gridline color Fix crash when opening colors page if clipboard image is smaller than preview Fix crash when there's an error saving or loading gridwarp files Fix: alpha turns to 0 if a color chooser starts at black and a slider is used Installer: New: now supports installing plugins for Window Store version of paint.net New: add option to start paint.net after successful installation
  8. 2 points
    Very interesting. I think, though, that it might benefit from an antialiiasing option, if that's possible.
  9. 2 points
    _____________________________________________________________________ (04/12/2017) It's time for a piece of chocolat cake!
  10. 1 point
    @Drydareelin @Woodsy @Pixey @lynxster4 ... thanks guys. I'm comfortable with stuff I've worked with my hands ... ie. stone, wood and metal but sometimes, with metal I'll take a reference image and try to emulate it in PDN. PlugIns are invaluable in achieving it. A lot of the time it gets melted back down ... I'll try to knock up a tut' this coming week, but sadly due to Consultant's orders I've got to cut back on hunching over a keyboard for too long in a day. But then again I'm not known for listening ... ------------------------------------------------------- 125 on Pg.1 - Strange title ? It's the way things landed ... This has been a long time in the making, trying to get the colours I was happy with Spoked Wheel plugin used for the wire. Thanks @toe_head2001
  11. 1 point
    A little something to wish everyone on Paint.net A Very Merry Christmas/Happy Holidays for 2017. Sorry about a bit of 'banding' in the gif, but that's the Midora Plugin for you! I guess I used too many strong colors - plus it's a bit large. Everything made in PDN. Happy Holidays Everyone
  12. 1 point
    Dear @lynxster4! I like ice cream, and that looks really nice. Thank you so much.
  13. 1 point
    I can open the files (electronic circuit plans) without any problem with XnView Imageviewer.
  14. 1 point
    Update! Grid Warp: New: feature to choose gridline color Fix crash when opening colors page if clipboard image is smaller than preview Fix crash when there's an error saving or loading gridwarp files Fix: alpha turns to 0 if a color chooser starts at black and a slider is used Gradient Mapping: New: saving a preset includes all settings in the dialog Fix ArgumentOutOfRangeException when getting too wild with the gradient handles Fix crash on loading a bad file Fix transparent color if nodes overlap Fix: Default preset would sometimes remember changes made while it was active Fix crash if spread or reverse functions are used with 1 or 0 colors Installer: New: now supports installing plugins for Window Store version of paint.net New: add option to start paint.net after successful installation
  15. 1 point
    Song stuck in your head all day Part #2 Enjoy
  16. 1 point
    December Update Only two new plugins this month. Both are quite exceptional! Brush Filter beta v1.0 Joshua Lamusga Apply paint.net Adjustments and Effects with a brush. Select an effect, a brush, brush behavior and draw to apply the effect (imagine painting where the strokes reveal the filtered image). Supports dynamic brushes and custom brushes. Filter Forge 7.0 filterforge Powerful filter tool which runs as a standalone app, or within paint.net using the Photoshop filter plugin PSFilterPDN by null54. Filter Forge can create new filters, textures and effects or download and apply from an extensive online library. The built-in filter editor is intuitive and easy to use. FF 7.0 must be purchased but generously offers has a free 30 day trial.
  17. 1 point
    Stamped metal looks 'tut' worthy to me..... Please, do publish it. Your second example (without the outline) looks similar to what I did here, except I used Red's & MJW's EdgeShader for the inner contour.
  18. 1 point
    @welshblue your metal work, as it were, is very nice! Looks like you have this Texture Shader thingy whooped.
  19. 1 point
    Oh MY those are amazing and a tute would be very, very nice ... please
  20. 1 point
    Your texture work never ceases to amaze me. Especially the brushed metal, and textures in the "Forbidden" piece. Awesome job!
  21. 1 point
    Manele is the genre played by gypsies. I do not like it at all. Status Quo: my favorite song is "In the army now" I was in the army when it was released. How quickly time passes...
  22. 1 point
    @xod Haven't got a clue what she's singing ... but who cares with a beautiful voice like that. Totally unrelated but I watched a documentary about Romani music (Manele ?) the other week - thoroughly enjoyable