Sign in to follow this  
TechnoRobbo

TR's Strange Attractors v1.1.3 - August 8th, 2014

Recommended Posts

TechnoRobbo's Strange Attractors

 

A Mathematical Curiosity

Strange Attractors are the perfect storm born out of chaos.

Where randomness comes together to create order.

 

"When the present determines the future, but the approximate present does not approximately determine the future."

-Edward Lorenz 

 

http://mathworld.wolfram.com/StrangeAttractor.html

http://en.wikipedia.org/wiki/Attractor

http://en.wikipedia.org/wiki/Chaos_theory

 

Menu: Effects-> Render

 

StrangeAttractorMenu.png?raw=1

 

 

Play with the sliders and wait for the 20 Million points to render

Not all settings will render an image. This phenomena is virtually unpredictable so it's all trial and error.

Trackbars can be fine tuned with arrow keys.

 

Updates

 

Version 1.1.4 fixes a timing conflict with The Plugin browser

[hide][/hide]

 Version 1.1.3 Add Algorithm G ,tweaks Algorithm F and enables Color Wheel Transparency

Version 1.1.2 fixes re-entry bug in 1.1.1

Version 1.1.1 adds Color Curves

Version 1.1.0 adds 2 new complex algorithms and form transparency

Version 1.0.9 adds to new color schemes B&W and W&B

Version 1.08 Introduces Auto - Redo to insure a useable render everytime

Turn Off Auto-Redo to do manual settings

4th Algorithm Added

-----

Version 1.0.7 null object bug fix

Version 1.0.6 Instant color variations!!!!

Version 1.0.5 2 more chaos algorithms, Transparency Mode added.

Version 1.0.4 Fixes a loss of focus bug

Version 1.0.3 fixes a multiple events bug

v1.0.2 adds Randomizer Button

Update v1.01 adds progress bar and custom colors, density adjustment 

 

 

 

 

 

 

music by technorobbo

 

Some images below merge 2 layers using the Screen Blending Mode.

 

StrangeAttractorMenu.png?raw=1

 

StrangeAttractor2.png?raw=1

 

StrangeAttractor1.png?raw=1.

  

 

AlgorithmB.png?raw=1

 

Algorithmc.png?raw=1

 

 

The Plug-In

TRsStrangeAttractor.zip

 

The VS Source Code for Programmers

https://www.dropbox.com/s/0ddf6znlqunuqy3/TRsStrangeAttractorSrc.zip?dl=0

 

How it Works

Trigonometric and exponential functions are randomly set in motion to recursively change the location of a point. The point is free to wander a 2 dimensional plane as the progam captures a time-lapse image of the process. Sometimes the results are unuseable but sometimes beautiful patterns start appearing. These are the Strange Attractors. 

Edited by TechnoRobbo
  • Upvote 8

Share this post


Link to post
Share on other sites

This is lots of fun to play with.  I'm strangely attracted  :lol:

 

I'd love a randomize button as playing with the sliders is quite hit and miss.

 

Brilliant idea to include the color schemes!  Any chance we can add our own?

  • Upvote 1

Share this post


Link to post
Share on other sites

Thanks TR - this is great!
Well done. :beer: B)
An ideal starting point for smokey/nebulous effects -
(reminds me a little of 'Chaoscope' but more Pdn user friendly).

Strange attractors are a fascinating and profound subject -

I greatly admire your programming skills in translating this into a useful Pdn plugin.
 

  • Upvote 2

Share this post


Link to post
Share on other sites

 

I'd love a randomize button as playing with the sliders is quite hit and miss.

Brilliant idea to include the color schemes!  Any chance we can add our own?

Thanks Ego , I started out with randomized buttons but the odds of accidentally hitting a combination that creates an attractor wasn't very good. That doesn't mean I won't add that button, maybe I should with a caveat. So far this was constructed in Code-Lab in order to have random buttons I have to migrate to VS, which is OK since I was going to do that to add keywords and a preview image anyways.

 

Color Pickers are completely do-able and a good Idea.

 

Thanks Red, I just checked out Chaoscope(thanks again), I'll have to add more chaos algorithms in the future.

Edited by TechnoRobbo

Share this post


Link to post
Share on other sites

Another amazing Plugin thank you :D .  It always feels like Christmas when I get to try out a new one  ;) .

 

Herewith my try with a little Mirror to get a shape.

 

Fr1eYFx.png

  • Upvote 4

Share this post


Link to post
Share on other sites

Great plugin TR. I was just wondering though, would you say there is a minimum recommended spec for PC`s using this? Like having dedicated graphics and a decent CPU.  I only ask because my laptop has an i7 chip but only integrated graphics and while I do occasionally get some different results moving the sliders for the most part I just get a black screen. I know you said it does not render every time and it is trial and error but I just get the feeling that my graphics can`t cope.

 

There is no point in having a plugin that won`t work ( not a criticism of yours you understand, only of my feeble laptop).

Share this post


Link to post
Share on other sites

 

 

I only ask because my laptop has an i7 chip but only integrated graphics and while I do occasionally get some different results moving the sliders for the most part I just get a black screen. I know you said it does not render every time and it is trial and error but I just get the feeling that my graphics can`t cope.

 

I don't think it's your processor. The strange attractors are are a subset of a chaotic number set that find their own niche and are unpredictable. In order to actually see a result the code goes through 20 million iterations - even then there might not be enough repetition  to reveal a pattern (if any exist). Sometimes moving a slider 1 or 2 notches is enough to cause a pattern to appear or disappear. When they do appear , it's amazing, when they don't you move on. 

 

I do have an idea on how to speed up the process look for an update in the future.

Edited by TechnoRobbo

Share this post


Link to post
Share on other sites

 

 

I was just wondering though, would you say there is a minimum recommended spec for PC`s using this? Like having dedicated graphics and a decent CPU. 

.No, I don't think it's your processor. Strange attractors are a subset of a set of chaotic numbers. It takes 20 million iterations to see a pattern (if one actually exists) Some patterns may take millions more iterations(than exists in the plugin) to appear and some settings will yield no pattern.  Just a 1 or 2 notch adjustment can create or destroy a pattern. 

 

I do have a plan to accelerate the plugin and add more iterations - keep a lookout for the next version of this plugin.

Share this post


Link to post
Share on other sites

Thanks TR - this is great!

Well done. :beer:B)

An ideal starting point for smokey/nebulous effects -

(reminds me a little of 'Chaoscope' but more Pdn user friendly).

Strange attractors are a fascinating and profound subject -

I greatly admire your programming skills in translating this into a useful Pdn plugin.

 

 

Agree with Red on all counts. Thanks so much TR!

Share this post


Link to post
Share on other sites

 

EER - 

Brilliant idea to include the color schemes!  Any chance we can add our own?

done!!!

 

 

GoodFella- 

OK thanks TR, I`ll keep a lookout for the update.  ;)

stop looking. I added a progess bar - it helps a lot.

 

V1.0.1 is now ready.

Edited by TechnoRobbo

Share this post


Link to post
Share on other sites

 

EER- 

I'd love a randomize button as playing with the sliders is quite hit and miss.

It was actually a very good idea - thanks Ego

V 1.02 uploaded with randomizer

  • Upvote 1

Share this post


Link to post
Share on other sites

It was actually a very good idea - thanks Ego

V 1.02 uploaded with randomizer

:mrviolet:

Thanks for the button! Very happy.

 

Edit:  Added this

 

yhsjjie-2332.png

Share this post


Link to post
Share on other sites

Updated to latest version. Works great! The Randomize button is a great addition. Thanks TR. Good work. ;)

 

Have a beer - I`m sure you need it!  :beer:

Share this post


Link to post
Share on other sites

Version 1.0.3 Uploaded - fixes a multiple event bug identified by Red Ochre (Thanks Red!)

Edited by TechnoRobbo

Share this post


Link to post
Share on other sites

Version 1.0.5 - Uploaded

2 more Attractor Algorithms added (3 Total Algorithms)

Transparency Mode added  for layering.

 

Algorithm B

AlgorithmB.png?raw=1

 

 

Algorithm C

Algorithmc.png?raw=1

 

 

Transparency Mode

transparency.png?raw=1

Edited by TechnoRobbo

Share this post


Link to post
Share on other sites

Love the latest version with the transparency. Many thanks for the update and another doodle that looks pretty much like a Fractal.

A774clS.png

  • Upvote 1

Share this post


Link to post
Share on other sites

Cool Image Pixey, very organic!

 

- Technically, Stange Attractors are considered a form of fractals

 

To all programmers -the source code is now available.

Edited by TechnoRobbo

Share this post


Link to post
Share on other sites

Sorry for posting so soon but this is a Major Change!!!!

v 1.0.6 - instant color variations - once the attractor has been rendered colors can be changed quickly without re-rendering

Share this post


Link to post
Share on other sites

I don't understand this. Do you draw a shape or use a picture ? All I get is a coloured squiggly line no matter what I try it on :/ 

Share this post


Link to post
Share on other sites

All those images are created by the plugin with out human interaction. Basically, It's a fractal generator that works on Choas Theory. The results can be used as a background , overlay or picture element (Layer Blend mode "Screen" works best). The best thing is to press Randomize. let it render, when it creates a pleasing effect tweek a little with the sliders. Every slider adjustment causes a recalculation.

 

Colors can be tweaked in version 1.0.6 with out having a recalculation occur.

 

Sometimes the settings will not create an image , but that's Chaos for you, not very reliable. Just randomize again.

 

 

I haven't gotten around to making a video, thats my next step.

Edited by TechnoRobbo

Share this post


Link to post
Share on other sites

I have just tried again on an empty canvas 800x600 and PDN crashed giving me this:

File: C:\Program Files\Paint.NET\Effects\TRsStrangeAttractor.dll
      Name: TRsStrangeAttractor.EffectPlugin
      Version: 1.0.6.0
      Author: TechnoRobbo
      Copyright: ©2014 TechnoRobbo
      Website: http://www.technorobbo.com/
      Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at TRsStrangeAttractor.EffectPlugin.MyRender(Surface dst, Surface src, Rectangle rect)
   at TRsStrangeAttractor.EffectPlugin.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length)
   at PaintDotNet.Effects.Effect.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois) in D:\src\pdn\pdn_3_5_11\src\Effects\Effect.cs:line 211
   at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction() in D:\src\pdn\pdn_3_5_11\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 167
   --- End of inner exception stack trace ---
   at PaintDotNet.Effects.BackgroundEffectRenderer.DrainExceptions() in D:\src\pdn\pdn_3_5_11\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 374
   at PaintDotNet.Effects.BackgroundEffectRenderer.Join() in D:\src\pdn\pdn_3_5_11\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 365
   at PaintDotNet.Effects.BackgroundEffectRenderer.Abort() in D:\src\pdn\pdn_3_5_11\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 329
   at PaintDotNet.Effects.BackgroundEffectRenderer.Start() in D:\src\pdn\pdn_3_5_11\src\PaintDotNet\Effects\BackgroundEffectRenderer.cs:line 276
   at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClass1d.<>c__DisplayClass21.<RunEffectImpl>b__10() in D:\src\pdn\pdn_3_5_11\src\PaintDotNet\Menus\EffectMenuBase.cs:line 827
 
So again, do I need to draw something or use an image before I open the plugin ? 

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