Jump to content

Sakana Oji

Members
  • Posts

    118
  • Joined

  • Last visited

Posts posted by Sakana Oji

  1. 15 minutes ago, ReMake said:

     

    Please publish your code (while in the CodeLab text editor, do Ctrl+A then Ctrl+C and paste your code into the message here).

    Here you go:

    // Name: Color Intensifier
    // Submenu: Color
    // Author: Sakana Oji
    // Title: Color Intensifier
    // Version: 1.0
    // Desc: Intensifies the colors of the picture
    // Keywords: intensity|color
    // URL: http://www.getpaint.net/redirect/plugins.html
    // Help:
    #region UICode
    #endregion

    // Setup for calling the Brightness and Contrast Adjustment function
    BrightnessAndContrastAdjustment bacAdjustment = new BrightnessAndContrastAdjustment();
    PropertyCollection bacProps;

    // Setup for using pixel op
    private UnaryPixelOps.Desaturate desaturateOp = new UnaryPixelOps.Desaturate();
    private UnaryPixelOps.Invert invertOp = new UnaryPixelOps.Invert();

    // Setup for using Reflect blend op
    private BinaryPixelOp reflectOp = LayerBlendModeUtil.CreateCompositionOp(LayerBlendMode.Reflect);

    protected override void OnDispose(bool disposing)
    {
        // Release any surfaces or effects you've created.
        if (bacAdjustment != null) bacAdjustment.Dispose();
        bacAdjustment = null;
        base.OnDispose(disposing);
    }

    void PreRender(Surface dst, Surface src)
    {
        bacProps = bacAdjustment.CreatePropertyCollection();
        PropertyBasedEffectConfigToken bacParameters = new PropertyBasedEffectConfigToken(bacProps);
        bacParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Brightness, 0);
        bacParameters.SetPropertyValue(BrightnessAndContrastAdjustment.PropertyNames.Contrast, -1);
        bacAdjustment.SetRenderInfo(bacParameters, new RenderArgs(dst), new RenderArgs(src));
    }

    // Here is the main render loop function
    void Render(Surface dst, Surface src, Rectangle rect)
    {
        // Call the Brightness and Contrast Adjustment function
        bacAdjustment.Render(new Rectangle[1] {rect},0,1);

        // Now in the main render loop, the dst canvas has an adjusted version of the src canvas
        for (int y = rect.Top; y < rect.Bottom; y++)
        {
            if (IsCancelRequested) return;
            for (int x = rect.Left; x < rect.Right; x++)
            {
                ColorBgra CurrentPixel = dst[x,y];

                // TODO: Add additional pixel processing code here
                CurrentPixel = desaturateOp.Apply(CurrentPixel);

                CurrentPixel = invertOp.Apply(CurrentPixel);

                CurrentPixel = reflectOp.Apply(src[x,y], CurrentPixel);

                dst[x,y] = CurrentPixel;
            }
        }
    }

     

    I don't know how to do that "codie-thingy" by the way

  2. 2 hours ago, GillFelis said:

    The '... older VHS tutorial...' that you refer to (y'know - the one that you have 'more improved'). Indulge me. Post a link to it.

     

    Oh Dinkleberg! I didn't know I have to post a link to that - Here you go: https://forums.getpaint.net/topic/20756-vhs-look/?tab=comments#comment-344996

    Apparently, it belongs in the Graveyard due to no screenshots or something. I put screenshots in my tut, so it's bound to be better.

  3. This tutorial is available as a PDF. Click here to view or download it

     

    The older VHS tutorial was alright, but sometimes the colors just seep through and it doesn't look good. So I have decided to make a newer, more improved tutorial. For this tutorial, I shall be using this image: 

    vhstut-1-height480resize.png

     

    Plugins needed:

    Curves+

    Average Blur (optional)

    Smooth (optional)

    Extract Channel

    Panelling

    Splinter

     

    1. Resize the image so that it has a maximum height of 480. It works best with landscape-size images.

     

    2. Open Curves+, and use the "Lighten" preset.

    vhstut-2-curvespluslighten.png

     

    3. Duplicate the image, and use Emboss with an angle of 90. Then set the blend mode to "Overlay" with an opacity of 128. Then merge the layers together.

    vhstut-3-embossoverlayopacity128.png

     

    4. Use Add Noise, with an intensity of 36 and the color saturation set to 50.

    vhstut-4-addnoise.png

     

    5. (Optional) Use Average Blur with a radius of 1. This will make the image more softer and of lower quality. (You could also use Smooth if you like)

    vhstut-5-averageblur.png

     

    6. Duplicate the image 3 times. Name the layers from top to bottom: Red Glare, Red, Green and Blue. Use Extract Channel, with Grayscale unchecked, on layers names "Red Glare" and "Red", with the Channel option set to Red. Then extract the Green channel on the "Green" layer, and the Blue channel on the "Blue" layer.

     

    7. Uncheck the Red Glare layer for now. Set the blend modes of layers "Red" and "Green" to Additive.

     

    8. (Optional) On the Blue layer, use Brightness/Contrast and set the Contrast to 10. This gives the image a slight yellow tint, making it look "vintage".

    vhstut-6-bluecontrast10.png

     

    9. Use Panelling on the Red layer, and set the Move Horizontal setting to 2. Then on the Blue, use Panelling, and this time move it horizontally by -1. This makes the image look kind of old.

    vhstut-7-redbluepanelling.png

     

    10. Check the Red Glare layer. Use Panelling, and set the Move Horizontal setting to the width of the image multiplied by 0.03. In this case, I shall use the setting of 26. (The width of my tutorial image is 853 and I got 25.59 when I multiplied it by 0.03. You need to round it up, as the Panelling plugin does not support decimal numbers.

     

    11. Use Splinter, either use default settings or set the splinter value to 5. I used the latter. Then use Unfocus at default settings.

    (This is the Red Glare layer on its own. I unchecked the rest of the layers.)

    vhstut-8-redglaresplinterunfocus.png

     

    12. Set the blend mode of the Red Glare layer to Overlay with an opacity of 100. Make sure the Red layer is below it, then merge the two layers. Make sure the merged layer has a Blend Mode of Additive.

    (This is the merged layer on its own.)

    vhstut-9-redglareandredmerged.png

     

    The finished image should now look like this:

    vhstut-10-finishedimagenoedge.png

     

    13. If you don't want the terrible looking color edges on your image, follow these instructions: Copy and/or import this edge image into PDN:

    screen-edge.png

     

    14. Resize it to fit your image.

     

    15. Put it in a new layer on top of your image, then set the blend mode to Multiply.

     

    16. Use Unfocus with a radius of 10.

    vhstut-11-finishedimagewithedge.png

     

    You are now done! In the words of Dwayne Johnson, what can I say except you're welcome.

  4. This tutorial is available as a PDF. Click here to view or download it

     

     

     

    Today I will be showing you how to make the tie-dye effect in Paint.net, like this:

    tiedye-5-finished-result.png

     

    Plugins needed:

    toe_head2001's Droste

    pyrochild's Curves+

    Toli's Smooth (optional)

     

    Instructions:

    Step 1. Insert any texture, or just draw stuff. For this tutorial, I shall use the Paintbrush.

    tiedye-1-make-colorful-stuff.png

     

    Step 2. Apply Droste. You can play with the settings to suit your mood, but I shall crank up the Repeat Per Turn option to max.

    tiedye-2-droste.png

     

    Step 3. Use any effective blur plugin. Zoom Blur will be used for this tutorial.

    tiedye-3-blurring.png

     

    Step 4. Crank the saturation all the way up with Curves+. You may also maximize the Value if you don't want the ugly white bits. (Also, please ignore the error I made with the text in the next picture. The whole text.)

    tiedye-4-saturation.png

     

    Step 5: You're done! You can use the Smooth plugin if you don't want all those choppy pixelly edges, but as you can see, I'm pretty sure I didn't use that on my tutorial result. What are the odds?

     

    Well, this is the end of the tutorial. I'd love to see what you've come up with. Thanks!

    • Like 6
  5. Does anyone have any tips on how to make my image look better in any way? I mean, my Dud picture was good, but I think there's something about the lead that isn't right. If there's anything that seems nice to me, that would be appreciated.

×
×
  • Create New...