Sign in to follow this  
toe_head2001

Tartan v1.4 (Dec 12, 2016)

Recommended Posts

This is a great plugin, toe_head2001.     :D

 

I made you a little something....did it on my lunchbreak...not much time....

tartan_01.png

Edited by lynxster4
re-hosted image
  • Upvote 4

Share this post


Link to post
Share on other sites

Fabulous looking plugin! :star:

I have some Scottish ancestry. Reproducing my clan tartan would be cool - except that I'd have to re-enter it each time. How about an option to load & save patterns?

Share this post


Link to post
Share on other sites

... would be cool - except that I'd have to re-enter it each time. How about an option to load & save patterns?

 

Version 1.1 posted with Save & Load functionality. I must say, it was a lot easier than I thought it would be. I thought I would have to define a custom XML structure and everything, so it was great to see XMLSerializer just simply knew how to structure the XML based on the existing code. Button icons from Fugue Icons. I also added a link to the source code; which I had forgotten to do last week.

Here's an example tartan you can load. tartan-example.xml

 

I've found that using the 'Grain' plugin afterwards will give a decent fabric texture to the pattern. Does anyone have some other techniques for making the tartan patterns look more like fabric?

 

Sorry about the broken images on all of my posts. My domain name was unexpectedly suspended today for reasons unknown to me. Hopefully that will be sorted out within a few days.

Edited by toe_head2001
  • Upvote 3

Share this post


Link to post
Share on other sites

It is not easy to add texture to pixels. But I tried something. I created a tartan pattern then I removed the white area and made it transparent. I duplicated the layer, I applied the Reticulation effect at the minimum settings and then I did a Color Flip. Finally I did offset the layer. And it looks like this:

tartan-textured-4d460f9.png

 

This is a close-up and as you see, I think several colors are needed to have a textile texture. Perhaps a feature to create this type of patterns could be added to the effect.

tartan-textured-closeup-4d4660f.png

Edited by Eli
  • Upvote 2

Share this post


Link to post
Share on other sites

Version 1.1 posted with Save & Load functionality.

Bravo! Thank you.

I must say, it was a lot easier than I thought it would be. I thought I would have to define a custom XML structure and everything, so it was great to see XMLSerializer just simply knew how to structure the XML based on the existing code.

I'm really glad you figured it out ;)

Share this post


Link to post
Share on other sites

This is a really cool plugin! nice U.I. and useful. Thank you. :beer:
(Not a real tartan, just a first experiment)
NX6RYG7.png

Does this replace/supercede Gingham and Tattershall?
Perhaps a few .xml presets for tartans, tweeds etc. could be included in the first post ... just a thought.

By the way the first post screenshot image links seem to be broken. I should read more carefully!

Good images Eli! B)

 

Btw I used Furblur & Clipdisplace (I would, wouldn't I! :D), to soften/distort.

  • Upvote 1

Share this post


Link to post
Share on other sites

Does this replace/supercede Gingham and Tattershall?

Perhaps a few .xml presets for tartans, tweeds etc. could be included in the first post ... just a thought.

 

 While this plugin can do gingham and tattersall patterns, I would still recommend those plugins. If someone specifically wanted to create a gingham pattern, it is faster and less cumbersome to use the Gingham plugin.

 

If anyone wants to create some sample .xml files, they can send them to me a PM and I can add them to the first post. I only issue I foresee is that there currently is no way to edit the built lines (in the UI at least, one could manually edit the .xml file).

Share this post


Link to post
Share on other sites

One way to add texture is to use my Texture Shader plugin.

 

I generated a cloth-like texture by the following steps.

A grid, using BoltBait's Grid/Checkerboard plugin, with spacing 5 and line width 1.

A Gaussian blur of 1.

Pyrochild's Stitch plugin, with everything default, except a distance of 1.

The result was:

 

Cloth_Texture.png

 

I copied a tartan image to the clipboard, and used Texture Shader to produce:

 

Tartan_Textured.png

 

EDIT: Another idea that seems to work well to produce the cloth texture is to start with a checkerboard in place of a grid. Also, following the Stitch step, adding a bit of noise (with Color Saturation set to 0) and/or applying the Frosted Glass effect seems to give good results.

 

EDIT 2: Thanks for the positive response to my comment!

I originally neglected to write down the Texture Shader settings, so I thought I'd add them. Better late than never.

Mapping Method: Surface Offset 1 (default)

Texture Height Scale: 5.00

Texture Displacement Scale: 1.00 (default)

Intensity Increases with Height: Checked (default)

Use Alpha from Texture: Unchecked (default)

Ambient Light Color: 0, 0, 0

Directional Light Color: 255, 255, 255

Directional Light Direction: 0, -135, 45 (from upper-left)

Directional Light Intensity: 2.00

Apply Surface Color to Highlight: Unchecked (default)

Specularity: 0.35

Specular Concentration: 8 (default)

Antialias: Unchecked (default)

These are not necessarily the best values, and may not be exactly what I originally used.

  • Upvote 7

Share this post


Link to post
Share on other sites

Version 1.2 posted. Fixes two things:
-The effect would crash if the Tokens for the List Sets were updated while the render was in the middle of processing them. Had to wrap the relevant code in a try{ }
-The ending Y coordinate for the vertical lines was using the selection width rather than the height. This was only noticeable if you were working with a portrait selection/canvas .

  • Upvote 1

Share this post


Link to post
Share on other sites

Version 1.4 posted.

 

This updates the Color Wheel control to one that matches the one from IndirectUI, and fixes the plugin on HiDPI.

  • Upvote 4

Share this post


Link to post
Share on other sites

As they say about whisky, 'they're all good but some are better than others' (I'm looking at you, caol ila and lagavulin)
it's also true about tartans. Now I need to drag my tartan out and try to reproduce it with this plugin.
But first I'll look at your code, which I've learned a lot from.
toe_head2001, This is a great plugin and I appreciate the work that went into it.

Share this post


Link to post
Share on other sites
12 hours ago, welshblue said:

and the possibility of seeing @Ego Eram Reputo in his kilt :P  (Ok that bit is slightly weird)

 

I'm believe I'm a Campbell - so these are my clan colors

 

camptar.gif

 

I'd wear a kilt - y' got a problem w' tha' Jimmy?

  • Like 1

Share this post


Link to post
Share on other sites
7 hours ago, Ego Eram Reputo said:

 

I'm believe I'm a Campbell - so these are my clan colors

 

camptar.gif

 

I'd wear a kilt - y' got a problem w' tha' Jimmy?

 

A Campbell eh? Which branch, cousin?

 

After my mother's people left the Hardangerfjord, they married into the lords of the Orkney Islands--a sept of Campbell of Cawdor. Of course, we're also associated with Clan Stuart, but they don't like to admit to Maddad's children! ;)

 

Share this post


Link to post
Share on other sites

Actually I'm not sure which branch. The ones who fought the MacGregors (it's a long story - which I don't fully know).

Share this post


Link to post
Share on other sites
8 hours ago, Ego Eram Reputo said:

I'd wear a kilt - y' got a problem w' tha' Jimmy?

 

Nah.  No problem.  I don't want a Glesga Kiss.  In fact no sort of kiss from a man in a skirt. ;)

Joking aside I've worn a kilt a couple of times to weddings ... very liberating.  

 

@Seerose ... Thanks very much

Share this post


Link to post
Share on other sites

I started playing with this plugin again, and got some ideas for new features. I might release a new version within the next week or so. ;)

  • Like 2

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this