Sepcot Posted September 12, 2006 Share Posted September 12, 2006 I have finally got around to creating the "Clouds" plugin I promised. Cloud Effect Configuration Dialog (version 1.1): DLL Download Link (version 1.1): <broken link removed by EER> (Unzip - Drop the CloudEffect.dll file into your Paint.NET\Effects folder) Source Download Link (version 1.1): <broken link removed by EER> Edit: Updated to version 1.1 Changes made (v1.1): 1. Added random numbers to the dialog box for the user to set if they like. 2. Set default random numbers - same cloud pattern will appear with each invocation (until reseeded) 3. Moved the GUI around - simple options at the top to more advanced at the bottom Left to do: 1. Optimize the noise function Download >> CloudsEffect.zip (Note: DLL recompiled by @Ego Eram Reputo from original source on GitHub. HDPI fixes by @ReMake May 2022). Plugin can be found under the Effects > Render > Clouds Quote Link to comment Share on other sites More sharing options...
Illnab1024 Posted September 12, 2006 Share Posted September 12, 2006 Nice! Thank you oh so much. Quote ~~ Link to comment Share on other sites More sharing options...
barkbark00 Posted September 12, 2006 Share Posted September 12, 2006 Awsome!!!! Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
trickman Posted September 12, 2006 Share Posted September 12, 2006 Could you tell me what do the values do? Quote Link to comment Share on other sites More sharing options...
Born2killx Posted September 12, 2006 Share Posted September 12, 2006 Someone post a screenshot! Quote I built my first computer at age 11! Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 13, 2006 Share Posted September 13, 2006 Yeah the screenshot is timing out or 404'ing or something Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Sepcot Posted September 13, 2006 Author Share Posted September 13, 2006 Could you tell me what do the values do? These values are inputs to a Perlin Noise function which generates psudeo random values that determine the look of the clouds. Frequency gives you number of noise values defined between each 2-dimensional point. Persistence is a constant multiplier adjusting our amplitude in each iteration. Octaves define the number of iterations over the noise function for a particular point. With each iteration, the frequency is doubled and the amplitude is multiplied by the persistance. Amplitude is the maximum value added to the total noise value. Those variables act within the perlin noise function to generate a cumalative total. There are two other user adjustable variables that act upon the total after the noise function that help in defining the finished look of your scene. Cloud Coverage is a constant that gets added (or subtracted) to each total. The default value is zero, meaning that the total should not be altered. Adding values will increase the size of the clouds, while subtracting will reduce them. Cloud Density is a constant that gets multiplied with the total to increase or decrease the apparent thickness of the clouds. The default value is 1, meaning the total should not be altered. Any number between 0 and 1 will reduce the apparent density (making the clouds appear more like fog). More information on the Code Lab implementation can be found in my blog entry at: http://www.sepcot.com/blog/2006/08-2006-PDN-PerlinNoise2d.shtml Quote Link to comment Share on other sites More sharing options...
Rick Brewster Posted September 13, 2006 Share Posted September 13, 2006 A couple of things, from looking at the source code: * You should probably put the random seed values r1, r2, and r3 into the token. You cannot assume that your configuration dialog was ever called before your Effect, and it looks like you're relying on it to set these values. For example, if I'm using this effect outside of Paint.NET, or if I'm relying on the Effect->Repeat... menu item, your configuration dialog will never have existed and these values will be 0 and we'll have some (presumably) boring looking clouds. * The "Random" class, from what I recall, is not thread safe. You can work around this by putting the [ThreadStatic] attribute on it. For performance sake, only retrieve this field once in your Render() method and store it into a private method variable. You can check out our Add Noise effect's code to see what we do here. (By the way I'm serious about the performance -- performance went up 10x with the retrieve-the-field-once optimization.) Quote The Paint.NET Blog: https://blog.getpaint.net/ Donations are always appreciated! https://www.getpaint.net/donate.html Link to comment Share on other sites More sharing options...
Sepcot Posted September 13, 2006 Author Share Posted September 13, 2006 Thanks Rick, I will take a look at my code and see what I can do. Quote Link to comment Share on other sites More sharing options...
B1lancer Posted September 13, 2006 Share Posted September 13, 2006 Just had a little play with the effect, you can create some awesome effects using multiple cloud layers! Thanks! Quote Link to comment Share on other sites More sharing options...
RiVaL_SSJ Posted September 23, 2006 Share Posted September 23, 2006 Wow... after trying this you can make some cool effects with it :o Nice work! Quote Signature Link to comment Share on other sites More sharing options...
Sepcot Posted October 21, 2006 Author Share Posted October 21, 2006 * You should probably put the random seed values r1, r2, and r3 into the token. You cannot assume that your configuration dialog was ever called before your Effect, and it looks like you're relying on it to set these values. For example, if I'm using this effect outside of Paint.NET, or if I'm relying on the Effect->Repeat... menu item, your configuration dialog will never have existed and these values will be 0 and we'll have some (presumably) boring looking clouds. Fixed in version 1.1 - moved random seed values into the token (and GUI). * The "Random" class, from what I recall, is not thread safe. You can work around this by putting the [ThreadStatic] attribute on it. For performance sake, only retrieve this field once in your Render() method and store it into a private method variable. You can check out our Add Noise effect's code to see what we do here. (By the way I'm serious about the performance -- performance went up 10x with the retrieve-the-field-once optimization.) Added [ThreadStatic] to the Random class called when the "Reseed Noise" action is triggered. I am only calling the Random class once (per click) as of version 1.0. The Noise function in CloudEffect.cs could still be optimized... Looking into it... Quote Link to comment Share on other sites More sharing options...
Picc84 Posted October 21, 2006 Share Posted October 21, 2006 This is the best pluginn yet, haha, i love it, expically for things i do... I use it constatly... Thank you! Quote Link to comment Share on other sites More sharing options...
42nt1 Posted October 21, 2006 Share Posted October 21, 2006 I haven't gotten to try this one yet, new action pack subscription came in a couple weeks ago and i'm waiting to rebuild the computer, but its on my list of going to try soon:) Quote Link to comment Share on other sites More sharing options...
jake2k Posted November 18, 2006 Share Posted November 18, 2006 Thanks man, I'm freakin addicted to this plugin haha. Quote ^Click to visit my Flickr Gallery^ Link to comment Share on other sites More sharing options...
aprilnmarcus Posted January 4, 2007 Share Posted January 4, 2007 I like this plug in. Good job!! Quote Link to comment Share on other sites More sharing options...
m2lucky Posted January 5, 2009 Share Posted January 5, 2009 wow I need this thanks Quote Music Brings color to the world Photobucket Sucks! My Gallery|Frozen Text|Snowy Font|MSNBC Effect Link to comment Share on other sites More sharing options...
Maximilian Posted January 28, 2017 Share Posted January 28, 2017 I use this plugin quite frequently and I've just noticed the download links are broken, so I'm creating this post in order to fix the problem should anyone else need it. Here's the zipped DLL: <removed> 3 Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 29, 2017 Share Posted January 29, 2017 Many thanks Max! I'll pop a link into the first post. Edit: what do you know - it's one of my compilations 1 Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
MJW Posted January 29, 2017 Share Posted January 29, 2017 If the source code is available, I wish this could be moved to the Render submenu. EDIT: I see that the head post says that's where it is, but it actually seems to be under the main Effects menu. 1 Quote Link to comment Share on other sites More sharing options...
toe_head2001 Posted January 29, 2017 Share Posted January 29, 2017 35 minutes ago, MJW said: If the source code is available... If you still want it, it's here: https://github.com/msepcot/pdn-plugins/tree/master/CloudEffect/Source 1 Quote June 7th, 2023: Sorry about any broken images in my posts. The underlying DNS issue should be resolved soon. My Gallery | My Plugin Pack Layman's Guide to CodeLab Link to comment Share on other sites More sharing options...
MJW Posted January 29, 2017 Share Posted January 29, 2017 Thanks. If I get a chance soon, I'll modify the submenu it's in. Quote Link to comment Share on other sites More sharing options...
Maximilian Posted January 29, 2017 Share Posted January 29, 2017 Yes, the version I have is the one under the main Effects menu, whose title reads as “Clouds” 1 Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted January 29, 2017 Share Posted January 29, 2017 Knew I couldn't trust Max! I'll upload my version tonight - it is definitely located in Effects > Render Quote ebook: Mastering Paint.NET | resources: Plugin Index | Stereogram Tut | proud supporter of Codelab plugins: EER's Plugin Pack | Planetoid | StickMan | WhichSymbol+ | Dr Scott's Markup Renderer | CSV Filetype | dwarf horde plugins: Plugin Browser | ShapeMaker Link to comment Share on other sites More sharing options...
Maximilian Posted January 30, 2017 Share Posted January 30, 2017 18 hours ago, Ego Eram Reputo said: Knew I couldn't trust Max! 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.