Jump to content

Pratyush

Members
  • Posts

    249
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Pratyush

  1. You should use PNG format which is a lossless format.
  2. I messed that part. I took x64 DLL from x64 folder & deleted all other dll and folder and from from native Binaries. After putting dll in X64 folder in NativeBinaries. Now it is working fine. I placed DLL.
  3. @Seerose I have made only one plugin.
  4. Do you have update of the effect. It is not working on PDN v.4.0.20.
  5. Please, make a codelab tutorial part 7/8/9 ( whichever number is correct.) It's an important feature and users should be aware of this.
  6. Hi, I just remembered that I didn't thanked you for all that work. In next version I will use that code. Thank you very much.
  7. Hi everyone, Can we do from codelab, that checking one of checkbox will uncheck or disable other UI element?
  8. @Ego Eram Reputo By the way I love how the new editor for the forum software has turned out, last few days I am playing with quotes feature and love WYSIWYG features image posting and features that recovers last thing in editor. For being locked out of forum for a year, I never got any chance to appreciate that.
  9. Yes, I love new searchable Index. Very beautiful, it feels very soothing on eye, It is very friendly as a user who want to search a plugin. @SodiumEnglish should be awarded for making such a beautiful tool. Hi @Ego Eram Reputo, what's your experience regarding to this tool?
  10. If there, Since I am learning to use codelab. Codelab is plugin which you can use to program and write plugin. Apart from the tutorial and programming lessons, you come learn many things from experience and by asking questions. As I am learning things here, I think I should compile these little bits which in course of programming, I am learning here.. Best place would be this forum, because here it is mostly related to codelab and C# programming. List is likely to increase with time. #001 - Sum of scaling factors should equal to divisor. Explanation: When you are using linear extrapolation between two variable to get intermediate values, you should make sure that divisor should be equal to sum of scaling factors. Mistake in this can result in lesser values or less values or boundary condition not matched. Issue: Reason: I don't think that's quite correct. Your scaling factors are (n - i) and (i - 1), and your divisor is n. But in situations like this, the sum of the scaling factors should equal the divisor, which it doesn't. I assume i runs from 0 to (n - 1), in which case you want (n - 1 - i) and i as the scaling factors and (n - 1) as the divisor. #002 - rect.Width is width of ROI. You can't use to for rectangle of selection or rectangle of canvas. Explanation: Using rect.Width will lead to some issues, it's not analogus to rect.Height. For these issue you can try this (suggested by MJW). Issue: Reason: #003 - Codelab has Autocomplete tool tips which can tell you about signature, returntype of functions. Explanation: Not much Explanation is needed. If only we had something in CodeLab to inform us... oh, wait, we do! At least 3! - AutoComplete tooltips - Editor tooltips - F12 to lookup on docs.microsoft.com #004 - Use Math class for mathematical calculation. Explanation: Math class provides constants and static methods for trigonometric, logarithmic, and other common mathematical functions. It is part of .NET framework and comes under namespace system. Link of Documentation. #005 - Methods for Unit Conversion between radians and degrees for angles. Explanation: Math.Sin() and Math.Cos()an use radians so you need to conversion from degree to radians, radians are all needed for mathematical functions and calculation, and degree we may need from UI point of view. A little help on this..... Write yourself a couple of helper functions to do the conversions public double DegreeToRadians(double angle) { return (Math.PI / 180) * angle; } private double RadianToDegrees(double angle) { return angle * (180.0 / Math.PI); } You can call these from your code like this... double angle = Math.Cos(DegreeToRadians(45)); #006 - Be careful while naming the version number in DLL as it won't replace older versions. Explanation: Version number field: #007 - Code for Increment all channels. Explanation: Sometime you need all channels be incremented and reduced with same value, you may need a function to do that. Necessity: Invention: #008 - Limitations in calling internal effects like blur in Codelab. Explanation: While it is possible to call blur effect in codelab, but it depends on the code itself. Query: Resolution: #009 - Find the error. Issue: I don't understand what is happening here, I want declare a method and call it. How to make it work? Reason: #010 - How to use radiobuttons in Codelab. Question: Answer: RadioButtonControl Amount4 = 0; // [1] To do|Cool Thing| Cooler Thing| More Cooler Thing| Coolest Thing #010 - <Template for next point>. Explanation: Issue: Reason:
  11. Is there a way I can call blur effect after doing all that render? so that I can soften rough edges. .
  12. Hi Boltbait, can you combine all these selection tool i.e. outline, bevel, shadow, feather, gradient fill together as a single plugin. they can be very useful under name of styles.
  13. I don't understand this error. what is missing?
  14. Feather plugin is part of Bolbait's plugin pack. https://forums.getpaint.net/topic/120037-boltbaits-plugin-pack/ His link has installer which will ask which plugins to install.
  15. Posterize is not giving desired result. Thanks everyone for suggestion. I will use x^2(3-2x) which gives very good approximation of sin(pi x\2)^2 for the range [0,1]
  16. @toe_head2001 what's return type of this function?
  17. Hi is there any way to use mathematical functions in code lab, I want to use sin and cos functions.
  18. @BoltBait, @lynxster4 I think this happens because the plugin tries to make stripe according to varying width of selection. Following I drew with square, eclipse, trapezoid and rectangle selection. Stripes are interesting if the selection is inside out. It seems if complex selection is used the stripes resemble snake skin. Looks like stripes can be used to make artwork. Maybe I will add a smoothing function.
  19. @MadJik there is hell lot to learn. I will change that DLL version number. I will see what went wrong.
  20. @lynxster4 Thanks. I have made this plugin for special purpose. That's when it will come handy. Thanks @Pixey . Almost all of the work done with help of forum members. To make it's just i threw myself in water tried to wade. I didn't used visual studio but just codelab and botbait's tutorial. I needed this effect for some important work, but can't request developers to make it for me as they are busy with their work. So, I myself tried to make it. After working a lot made the plugin. forum members pointed out (something obvious) I was getting wrong and gave up after trying a lot. I was very proud of myself that I managed to make stripe with three loops but someone did it in two loops only using some clever mathematics.
  21. Thanks @IRON67 . You make beautiful images of spaceships. just curiosity, do you make drawing for games?
  22. Can you hint me how can gradient tool be used for shading. magic wand tool is used to select area.
×
×
  • Create New...