MadJik Posted February 23, 2008 Share Posted February 23, 2008 Mazes Effects Plugins What's this? Having a discussion with Ego Eram Reputo (EER): EER: "I'm using a modified Prim maze algorithym http://en.wikipedia.org/wiki/Maze_generation_algorithm http://en.wikipedia.org/wiki/Prim%27s_algorithm which creates strings of cells." Digging these links, I've found some ascii programs creating mazes with / or \ and | or _ As for now EER kindly made me some suggestion for these plugins, and permitted me to post them. Thanks Ego Eram Reputo! These plugins are added to the menu Effects, submenu Render. ___________________________________________________ Downloads: Plugin Random Maze1.dll Here is the DLL for Maze 1 Plugin Random Maze2.dll Here is the DLL for Maze 2 The MadJik's All plugins package is available ! http://forums.getpaint.net/index.php?showtopic=7186 ___________________________________________________ How to install Close Paint.net Classic version of Paint.net Unzip and (re)place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects Microsoft Store version of Paint.net Unzip and (re)place the DLL in your Effect folder usually: /My Documents/paint.net App Files/Effects/ You have to adapt for your language My Documents ___________________________________________________ MAZE 1: MAZE 1: http://homepages.cwi.nl/~tromp/maze.html I must admit I don't understand very well the all logic of this code. It doesn't use a table for the whole maze, and it could create maze without closed area. It means every randomized maze could be solved. Spot a green circle somewhere in the maze for the start point and a red circle elsewhere (far enough) for the end point and you could be sure a path exists! The User interface Quantity of cells: set the size in cell of the maze. Same size for height and width. Margin: set the margin in pixel from the top-left corner. Brush width: set the width of the walls. Select the ends of the lines: choose the finition of the walls. Reseed: generate another maze. Anti-aliasing: as it says! Show Start/End: off: the maze is closed; on: the corners (top-left & bottom-right) are open! Square maze: on: the maze is square; off: the maze fits with the image size, but the quantity of cells is still the same for height and width! Example: ___________________________________________________ MAZE 2: MAZE 2: http://www.edepot.com/algorithm.html see the section: Simplest (and smallest code size) Maze Generator This one is more a graphical plugin than a maze generator. It just draw randomly diagonal walls. There are a lot of closed areas, no path could be certain. But I like the result. And the use of the end-caps for the lines could give some good texture as like as electronic card, maze (of course), etc... The User interface Cell size X: set the horizontal size in pixel for one cell of the maze. Cell size Y: set the vertical size in pixel for one cell of the maze. % Chance for a wall: increase/dicrease to have more/less walls. Brush width: set the width of the walls. Select the ends of the lines: choose the finition of the walls. Reseed: generate another maze. Anti-aliasing: as it says! Example: Voilà ! 1 Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
vista? Posted February 23, 2008 Share Posted February 23, 2008 Thanks Madjik - this is pretty cool! You can create some weird mazes depending on the settings chosen! Quote Link to comment Share on other sites More sharing options...
Ego Eram Reputo Posted February 25, 2008 Share Posted February 25, 2008 As for now EER kindly made me some suggestion for these plugins, and permitted me to post them. Thanks Ego Eram Reputo! (we could expect some good stuff sooner or later from EER...) (Completely humbled)MadJik certainly deserves all the praise for these excellent plugins. His code is not only elegant but extremely fast too. I really like the UI's as well. Thanks MadJik. 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...
Martje Posted February 29, 2008 Share Posted February 29, 2008 MadJik, it is pretty cool. You always deliver good job! Quote My own DeviantART gallery Link to comment Share on other sites More sharing options...
MadJik Posted February 29, 2008 Author Share Posted February 29, 2008 MadJik, it is pretty cool. You always deliver good job! Thank you for this comment. I hope I won't have to way the next 29 Fev for more comments Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
oma Posted March 6, 2008 Share Posted March 6, 2008 I love this plug in Madjik. any idea on how to make this into a round maze, guessing perhaps a chain algorithm function? 1 Quote My Deviant Art Gallery Oma's Paint.Net gallery Link to comment Share on other sites More sharing options...
Dalton Posted March 6, 2008 Share Posted March 6, 2008 Thanks Madjik! It's awesome! =] Quote MyBB Tutorials, check out my site. Link to comment Share on other sites More sharing options...
thehamster Posted April 16, 2008 Share Posted April 16, 2008 In PDN 3.30 i get the message File: C:\Program Files\Paint.NET\Effects\Random Maze2.dll Effect Name: RandMaze2Effect.RandMaze2Fx Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.DivideByZeroException: Attempted to divide by zero. at RandMaze2Effect.RandMaze2Fx.RenderRI(Surface dst, Surface src, Rectangle rect) at RandMaze2Effect.RandMaze2Fx.OnRender(Rectangle[] rois, Int32 startIndex, Int32 length) at PaintDotNet.Effects.Effect`1.Render(Rectangle[] renderRects, Int32 startIndex, Int32 length) at PaintDotNet.Effects.Effect`1.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length) at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction() --- End of inner exception stack trace --- at PaintDotNet.Effects.BackgroundEffectRenderer.Join() at PaintDotNet.Effects.BackgroundEffectRenderer.Start() at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClassa.b__8(Object sender, EventArgs e) White canvans 600x800. When cell size on Random Maze 2 Y is set to zero. PC Config: XP home edition, SP2, 512 RAM, 2.40 GHz. Quote my deviant art~~~~~my gallery Link to comment Share on other sites More sharing options...
Ash Posted April 16, 2008 Share Posted April 16, 2008 Confirmed When Y=0 and move X slider. File: C:\Program Files\Paint.NET\Effects\Random Maze2.dll Effect Name: RandMaze2Effect.RandMaze2Fx Full error message: PaintDotNet.WorkerThreadException: Worker thread threw an exception ---> System.DivideByZeroException: Attempted to divide by zero. at RandMaze2Effect.RandMaze2Fx.RenderRI(Surface dst, Surface src, Rectangle rect) at RandMaze2Effect.RandMaze2Fx.OnRender(Rectangle[] rois, Int32 startIndex, Int32 length) at PaintDotNet.Effects.Effect`1.Render(Rectangle[] renderRects, Int32 startIndex, Int32 length) at PaintDotNet.Effects.Effect`1.Render(EffectConfigToken parameters, RenderArgs dstArgs, RenderArgs srcArgs, Rectangle[] rois, Int32 startIndex, Int32 length) at PaintDotNet.Effects.BackgroundEffectRenderer.ThreadFunction() --- End of inner exception stack trace --- at PaintDotNet.Effects.BackgroundEffectRenderer.Join() at PaintDotNet.Effects.BackgroundEffectRenderer.Start() at PaintDotNet.Menus.EffectMenuBase.<>c__DisplayClassa.b__8(Object sender, EventArgs e) Quote All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ] Link to comment Share on other sites More sharing options...
MadJik Posted April 16, 2008 Author Share Posted April 16, 2008 Bug fixed for y=0... Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
9ale7 Posted July 4, 2008 Share Posted July 4, 2008 really a-maze-ing Quote Link to comment Share on other sites More sharing options...
RyuinfinityPDN Posted July 4, 2008 Share Posted July 4, 2008 Nice plugin! I use this for fun while I'm bored! Quote -- Make an Explosion in Space-- Link to comment Share on other sites More sharing options...
Eli Posted January 7, 2018 Share Posted January 7, 2018 @MadJik This is the first time that I am trying this effect. It is just Fun. It may not be possible but could the maze be fitted inside different shape selections? Quote Link to comment Share on other sites More sharing options...
MadJik Posted January 7, 2018 Author Share Posted January 7, 2018 @Eli this plugin is using an algorythm for regular form (square, rectangle). You could cut complex shapes into smaller squares and link them manually. 1 Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Eli Posted January 7, 2018 Share Posted January 7, 2018 15 minutes ago, MadJik said: You could cut complex shapes into smaller squares and link them manually. Thanks Madjik, It is a great work around. Quote Link to comment Share on other sites More sharing options...
AndrewDavid Posted January 7, 2018 Share Posted January 7, 2018 (edited) @Eli Have you tried 1 Create your maze 2 copy to clipboard 3 select your shape 4 Use Paste from clipboard to resize accordingly? Saves you from repeated patterns Edited January 7, 2018 by AndrewDavid Quote Link to comment Share on other sites More sharing options...
Eli Posted January 7, 2018 Share Posted January 7, 2018 (edited) @AndrewDavid I thought about it but the puzzle is no longer playable . @MadJik I noticed that the Entrance and the Exit are always in the same position. Could it be possible to add options to select the position of the Entrance and the Exit? Edited January 7, 2018 by Eli Quote Link to comment Share on other sites More sharing options...
MadJik Posted January 7, 2018 Author Share Posted January 7, 2018 The opposite corners ensure a longer path. You could choose to hide the exits and then make your own. To make a patchwork of mazes you still could use rotate/flip/mirror https://forums.getpaint.net/topic/28801-tolis-effects-for-v40/ Quote My DeviantArt | My Pictorium | My Plugins | Donate via Paypal Link to comment Share on other sites More sharing options...
Eli Posted January 7, 2018 Share Posted January 7, 2018 1 hour ago, MadJik said: You could choose to hide the exits and then make your own. I will do that. 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.