Sign in to follow this  
emyabdel

Distressed image

Recommended Posts

@emyabdel Welcome to PDN :)

 

There are a number of ways to do this.

 

You could use Custom Mini Brushes and download Splatter Brushes from Brush easy, or you could also use Brush Factory.

 

I made a simple star with 'splats' by making a solid black star, using the Shapes Tool and then, on a new layer, added the splats - using Brush Factory.

 

star.png

Share this post


Link to post
Share on other sites
3 hours ago, emyabdel said:

 

There's already a plugin that does this.  It's called "Make Dirty".  Here's the CodeLab script:

 

// Name: Make Dirty
// Submenu: Render
// Author: BoltBait
// Title: BoltBait's Make Dirty
// Version: 1.0
// Desc: Make an image dirty
// Keywords: dirty, olden, rust
// URL: http://BoltBait.com/pdn
#region UICode
IntSliderControl Amount1 = 250; // [2,1000] Scale
DoubleSliderControl Amount2 = 0.5; // [0,1] Roughness
BinaryPixelOp Amount3 = LayerBlendModeUtil.CreateCompositionOp(LayerBlendMode.Normal); // Blend Mode
ReseedButtonControl Amount4 = 0; // [255] Reseed
#endregion

// Setup for calling the Render Clouds function
CloudsEffect cloudsEffect = new CloudsEffect();
PropertyCollection cloudsProps;

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

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

void PreRender(Surface dst, Surface src)
{
    cloudsProps = cloudsEffect.CreatePropertyCollection();
    PropertyBasedEffectConfigToken CloudsParameters = new PropertyBasedEffectConfigToken(cloudsProps);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.Scale, Amount1);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.Power, Amount2);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.BlendMode, Amount3);
    CloudsParameters.SetPropertyValue(CloudsEffect.PropertyNames.Seed, (int)Amount4);
    cloudsEffect.SetRenderInfo(CloudsParameters, new RenderArgs(dst), new RenderArgs(src));
}

// Here is the main render loop function
void Render(Surface dst, Surface src, Rectangle rect)
{
    // Call the Clouds function using Black and White
    cloudsEffect.Render(new Rectangle[1] {rect},0,1);

    // Now in the main render loop, the dst canvas has a render of clouds
    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];

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

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

 

Share this post


Link to post
Share on other sites
48 minutes ago, Pixey said:

@emyabdel Welcome to PDN :)

 

There are a number of ways to do this.

 

You could use Custom Mini Brushes and download Splatter Brushes from Brush easy, or you could also use Brush Factory.

 

I made a simple star with 'splats' by making a solid black star, using the Shapes Tool and then, on a new layer, added the splats - using Brush Factory.

 

star.png

thank you i will try this

Share this post


Link to post
Share on other sites
44 minutes ago, BoltBait said:

There's already a plugin that does this.  It's called "Make Dirty".  Here's the CodeLab script:

thank you but i'm newbie i don't understand coding could you give me this plugin to download

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this