Bruce Bowyer-Smyth

Members
  • Content Count

    178
  • Joined

  • Last visited

Everything posted by Bruce Bowyer-Smyth

  1. @Rick Brewster Do desktop apps support the execution alias? https://docs.microsoft.com/en-us/uwp/schemas/appxpackage/uapmanifestschema/element-uap5-executionalias
  2. Bruce Bowyer-Smyth

    Hardware Accelerated Blur Pack v3.1

    Hardware Accelerated Blur Pack uses your video card’s GPU to process images at a potentially huge performance leap. The blurs in this pack are modelled after the built in Paint.NET effects. Differences have been noted below. System Requirements Note: These additional requirements are for this plugin pack only. They are not required for paint.net use in general. Windows 8, Windows 7 or Windows Vista with the DirectX 11 platform update (x86, x64). (Win XP is NOT supported as it does not have DX11) Latest Video Drivers from NVIDIA or AMD/ATI DirectX 10 or later video card that supports DirectCompute (see troubleshooting section for how to determine this) Installation Extract all files from the zip file into the Paint.NET Effects folder. Download for Paint.net v4 >>> Hardware Accelerated Blur Pack <<< Included Effects Motion Blur (up to 54,800% faster!) Added Edge Behaviour option Radial Blur (up to 12,300% faster) No quality option but it is equivalent to high-quality "5" in the standard Paint.NET blur. Zoom Blur (up to 5,300% faster) Gaussian Blur (up to 3,000% faster) Main improvement is for large images or radius Added Blur Dimensions option (Horizontal and Vertical, Horizontal Only, Vertical Only) Added Edge Behaviour option Channel Blur (new effect) A separate and unique gaussian blur for each color channel Each channel has it’s own independent radius option Troubleshooting Device creation error message Firstly make sure you have up to date video drivers Download GPU-Z and confirm that the DirectCompute checkbox is checked. If it isn’t you may have an unsupported video card. This means for NVIDIA you need an 8 series or later. For AMD/ATI the HD 4700 series or later. Intel HD Graphics 4000/2500 may be supported but I haven't tested that. Out of Memory error message You now have a reason for that hardware upgrade. The image needs to fit into the memory of the video card. The amount of a ram you have determines the size of the image these effects can process. Version History 3.1.0 - Fix for Radial Blur in PDN 4 and images with sub-selections. 3.0.0 - PDN 4 compatible. Switched to use SharpDX. 2.4.0 - Bug fix for "tall" motion blurs 2.3.0 - Bug fix for partial image width selections 2.2.0 - Fixed plugin load wanring. Fixed some blurs being off by half a pixel. Added support for Win 8 software device driver. 2.1.0 - Gaussian, Motion and Channel blurs can handle any sized image. Faster zoom. 2.0.0 - Faster Radial, motion and zoom. 1.0.7 - Increased perf on small to medium sized images for motion and gaussian blur
  3. Bruce Bowyer-Smyth

    Paint.NET is getting noticed!

    Nice surprise on a professional game developer's PC at DoubleFine. The Making of Grim Fandango Remastered: Episode 2 http://youtu.be/s-LSMCYjHow at 5:45
  4. Bruce Bowyer-Smyth

    paint.net 4.0 beta build 5278

    3.5 gets the correct size. Sent you the files by forum message.
  5. Bruce Bowyer-Smyth

    paint.net 4.0 beta build 5278

    Copying a 200x63 image from Word 2013 to paste into Paint.net and it thinks it is 313x98. MS Paint is picking up the correct size.
  6. Bruce Bowyer-Smyth

    Hardware Accelerated Blur Pack v3.1

    Added Paint.net v4 compatible download. I'll leave the old version available for a while until v4 is public. Switched to using SharpDX for the GPU code. Gausian blur 17% faster. Some other minor performance improvements.
  7. I have an update to my Blur Pack (http://forums.getpaint.net/index.php?/topic/19364-hardware-accelerated-blur-pack-v24/) targeting paint.net 4. Thought that I would put it out for a bit of a test first seeing that I have switched over to using SharpDX and made some other performance improvements. Download here -> http://www.wmf2wpf.com/downloads/hablurpack3.zip If there are no issues I'll add it to the other post for general download. Thanks
  8. Bruce Bowyer-Smyth

    poor random number generation in Add Noise filter

    At some zoom levels blocking will appear with noise. Can you see them at 100% zoom?
  9. If you create a larger sized image, say 5000x4000 the selection rectangles that are passed to plugins have an incorrect width. In this case a width of 4999. The width difference seems to vary with image sizes. 4800x6400 gets a width of 4798. Win8, PDN 3.5.10
  10. Bruce Bowyer-Smyth

    Incorrect sizing of selection rectangles for plugins

    It's a weird one. Doing some more testing it only seems to happen during the effect preview. So the codelab script is working fine. Using the basic effect below, put a breakpoint on the line indicated with a condition of "rect.Right == dst.Width" Using an 800x600 the breakpoint is hit during preview and after clicking ok to commit. Opening a 4800x6400 the first rect in the preview is {X=0,Y=0,Width=4798,Height=1} and the breakpoint is never hit during the preview. Click OK and the first rect is {X=4798,Y=0,Width=2,Height=1} and the break point is hit. The preview seems to be missing the width of 2 rects. If you zoom right in on the right hand edge of the image the breakpoint IS hit during the preview. It does seem to be related to zoom levels. If I zoom out 2 times it starts working. This screen size is 1280x1024 and image as opened at zoom level "Window". using PaintDotNet; using PaintDotNet.Effects; using PaintDotNet.PropertySystem; using System.Collections.Generic; using System.Drawing; namespace ClassLibrary1 { [PluginSupportInfo(typeof(PluginSupportInfo), DisplayName = "Width Test")] public class Class1 : PaintDotNet.Effects.PropertyBasedEffect { public static string StaticName { get { return "Width Test"; } } public static Bitmap StaticIcon { get { return new Bitmap(16, 16); } } public Class1() : base(Class1.StaticName, Class1.StaticIcon, SubmenuNames.Blurs, PaintDotNet.Effects.EffectFlags.Configurable | PaintDotNet.Effects.EffectFlags.SingleThreaded) { } protected override void OnRender(Rectangle[] rois, int startIndex, int length) { var dst = base.DstArgs.Surface; foreach (Rectangle rect in rois) { // Breakpoint next line for (int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { dst[x, y] = ColorBgra.Red; } } } } protected override PropertyCollection OnCreatePropertyCollection() { List<Property> props = new List<Property>(); return new PropertyCollection(props); } } }
  11. Bruce Bowyer-Smyth

    Incorrect sizing of selection rectangles for plugins

    No sorry there is still an issue. Rectangle.Right is defined as "The value of the Right property represents the x-coordinate of the first point at the right edge of the rectangle that is not contained in the rectangle". So Right will equal Width when Left = 0. At some point Paint.NET is passing in Rectangles that do not reach the width as in the 4800 to 4798 above. There are also no additional rois passed in that will cover the gap in the width. Mentioned above I was sure this didn't used to be a problem on my old Win7 box.
  12. Bruce Bowyer-Smyth

    Incorrect sizing of selection rectangles for plugins

    You are right. It is the small sizes that were the problem. It appears to be known issue with the Rectangle struct. var r = new Rectangle(0, 0, 100, 10); Gives r.Right = 100 and r.Bottom = 10 when they should be 99 and 9. Nothing wrong with Paint.NET, cheers.
  13. Bruce Bowyer-Smyth

    Incorrect sizing of selection rectangles for plugins

    Didn't assume it. Only used it for testing. With a full image selected I never received a roi that went to the edge.
  14. Bruce Bowyer-Smyth

    Incorrect sizing of selection rectangles for plugins

    Just using the startIndex and length that are passed in. Even so there is never more than one Rectangle at a time. On the larger images this is never true: roi.Right == base.SrcArgs.Width. Which it is with the smaller images.
  15. Bruce Bowyer-Smyth

    Incorrect sizing of selection rectangles for plugins

    This is just the Rectange[] rois passed into the Render. I was pretty sure this used to work when I was on Win7. Possible problem under Win8.
  16. WMF (Windows Metafile) file import plugin. Download WMF Paint.NET Plugin This plugin interprets the WMF record structure using 100% .NET code and uses WPF as the rendering engine. The main code behind this is the WMF2WPF library and with this plugin Paint.NET now has the ability to open metafiles. Note this does not turn Paint.NET into a vector editor. WMF files will open just as they do in MS Paint, as a raster image, but will typically look nicer using this plugin due to anti-aliasing. Images must be saved as a different file format like png for example. I have made it so that a metafile will open with two layers, a white background and a second layer with the main image. Hide the background layer to use the image with transparency (if the image has it). Cheers
  17. Bruce Bowyer-Smyth

    WMF (Windows Metafile) file type plugin v1.3.1

    Version 1.3.1 has been released - Added code page support for non-latin text - Added clipping support for Polygon, Polyline, and PolyPolygon shapes.
  18. Bruce Bowyer-Smyth

    Rants *enter at own risk*

    It is a problem with the forum site itself. There is a javascript error when pressing enter under IE10. Be careful if you get a few tiny donations http://blog.getpaint.net/2007/11/04/update-on-suspicious-donations/
  19. Bruce Bowyer-Smyth

    Hardware Accelerated Blur Pack v3.1

    Thanks for the report dpy. I have updated the first post with a new build that fixes the motion blur on vertical motion blurs.
  20. Bruce Bowyer-Smyth

    Hardware Accelerated Blur Pack v3.1

    Download link fixed. Typo, sorry.
  21. Bruce Bowyer-Smyth

    Hardware Accelerated Blur Pack v3.1

    Fixed that up for you Red ochre, please download again. Bug occured on selections that were not the full image width. Enjoy!
  22. Bruce Bowyer-Smyth

    WMF (Windows Metafile) file type plugin v1.3.1

    Version 1.3 has been released - Fixed issue reading non-unicode text items
  23. Bruce Bowyer-Smyth

    Error when paint.net loads up T_T help please

    Is Paint.net running under a virtual computer such as VirtualBox or Virtual PC?
  24. Bruce Bowyer-Smyth

    Hardware Accelerated Blur Pack v3.1

    Thanks Rick, The abstract statement was missing from that class. That fixed up the warning. New version posted: Fixed plugin load warning Fixed issue where some blurs were off by half a pixel Added support for falling back to the Windows 8 software based compute shader if you GPU doesn't have the required features.
  25. Bruce Bowyer-Smyth

    Hardware Accelerated Blur Pack v3.1

    gubment_cheez that message is fine as that class is not meant to be created. Do you not see the effects in the Effects > Blurs menu?