barkbark00 Posted November 14, 2006 Share Posted November 14, 2006 I know we have the Rectangular to Polar Conversion plug-in Thanks to Programmerman. but what I need is the opposite... a polar to rectangular effect. Maybe BoltBait could tackle this one. Anyway, It would be really awesome! Thanks in advance. Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
TinSoldier Posted November 14, 2006 Share Posted November 14, 2006 Yeah, I wondered about that one... Quote Link to comment Share on other sites More sharing options...
BoltBait Posted November 14, 2006 Share Posted November 14, 2006 Heh. Don't ask me to write an effect... I'm terrible at it. And, the worst part about it, if I did write one, I wouldn't know how to put a UI on it. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 14, 2006 Share Posted November 14, 2006 Well, you could always learn how ... it's just code. 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...
BoltBait Posted November 14, 2006 Share Posted November 14, 2006 If only there was a tutorial on the basics of changing a codelab script (with an input or two) into an effect DLL. I don't even know where to begin. Besides the compiler (which one?) what else do I need on the system in order to make an Effect DLL? What kind of project should it be? etc. I know my questions sound pretty basic, but all the C# coding I do is for the web. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
barkbark00 Posted November 14, 2006 Author Share Posted November 14, 2006 I know my questions sound pretty basic, but all the C# coding I do is for the web. Yeah, but your lightyears ahead of me. Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
BoltBait Posted November 14, 2006 Share Posted November 14, 2006 I know my questions sound pretty basic, but all the C# coding I do is for the web. Yeah, but your lightyears ahead of me. That may be... but that still doesn't mean I can do what you want. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game Link to comment Share on other sites More sharing options...
barkbark00 Posted November 14, 2006 Author Share Posted November 14, 2006 Thats ok. Maybe someone else can do it then. Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 14, 2006 Share Posted November 14, 2006 If only there was a tutorial on the basics of changing a codelab script (with an input or two) into an effect DLL.I don't even know where to begin. Besides the compiler (which one?) what else do I need on the system in order to make an Effect DLL? What kind of project should it be? etc. I know my questions sound pretty basic, but all the C# coding I do is for the web. None of those are very difficult problems to figure out. Try writing an effect from scratch. Dissect the CodeLab source code and project files -- it's just an effect plugin itself. Look at the source code for the effects that are built-in to Paint.NET. Once you do that, you have all the pieces you need. 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 November 14, 2006 Share Posted November 14, 2006 Hey BoltBait, After writing my Cloud Effect, I have started writing up my development process... I'm still working on it, but it might be a good place for you to start. I have created a Project Template in Visual Studio 2005 that might be a good starting place... http://www.sepcot.com/blog/2006/11-2006-PDN-EffectPluginTemplate.shtml Quote Link to comment Share on other sites More sharing options...
barkbark00 Posted November 14, 2006 Author Share Posted November 14, 2006 Not having looked at the code(Rectangular to Polar Conversion) would it be easy to just reverse it? Quote Take responsibility for your own intelligence. -Rick Brewster Link to comment Share on other sites More sharing options...
Rick Brewster Posted November 14, 2006 Share Posted November 14, 2006 Hey BoltBait,After writing my Cloud Effect, I have started writing up my development process... I'm still working on it, but it might be a good place for you to start. I have created a Project Template in Visual Studio 2005 that might be a good starting place... http://www.sepcot.com/blog/2006/11-2006-PDN-EffectPluginTemplate.shtml Hey Sepcot, a few notes about your template: 1) Please make the default namespace something other than PaintDotNet.Effects. This is generally the namespace for effects that are built-in to Paint.NET, or that the Paint.NET team has released. Plugins authors should have their own namespace ... like maybe BoltBait.PdnEffects or something. 2) The line of code for, "if (selectionRegion.Visible(x, y))" is redundant. The 'rois' parameter only contains rectangles that are within the selected region (or the entire canvas if there is no selection). * As an aside: the effect must only render to the areas in dstArgs that are designated by the Rectangles in the 'rois' array that are within the range [startIndex, startIndex+length-1]. This is an absolute requirement. Drawing anywhere else will lead to undefined behavior and may cause children to weep fiercely. You can read from any pixels in srcArgs however. 3) System.Data and System.Xml are not required references. (afaik) Otherwise, cool stuff. 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...
BoltBait Posted November 14, 2006 Share Posted November 14, 2006 cool stuff. Agreed. Thanks! Maybe I'll give it a go. Quote Download: BoltBait's Plugin Pack | CodeLab | and a Computer Dominos Game 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.