Sign in to follow this  
Followers 0
MadJik

Light Rays (YMD:100714)

105 posts in this topic

Light rays Effect Plugin

What's this?

sunray.jpg

This is a Render Effect plugin as requested several times.

Starting from the center (that you could offset) it will draw alternated triangles as rays.

It uses the Primary and Secondary colors.

Tip:Use transparent colors

Download it!

Plugin LightRays.dll

ar.pngHere is the DLLal.png

The source is available with the plugins package!

http://forums.getpaint.net/index.php?showtopic=7186

How to install

Close Paint.net

Unzip and (re)place the DLL in your Effect folder usually: C:/Program Files/Paint.NET/Effects

The User interface

lightraysui-3e1bd1.png

.Number of rays in the circle (1,2000,dft=50):

__It works well in the range 4 to 200. Less than 4 give nothing or strange triangles. More than 500 gives strange figures and requires CPU...

.Center X % offset (-100,100,dft=0):

__Negative value to move left, positive to move right. 100% is the width of the image, 0% is at the center, 50% is on the edge of the image.

.Center Y % offset (-100,100,dft=0):

__Negative value to move up, positive to move down. 100% is the height of the image, 0% is at the center, 50% is on the edge of the image.

.Length of the ray (1,300,dft=100):

__Allows you to reduce/increase the length of the ray. It's in %, not in pixel.

.Internal radius (1,300,dft=100):

__Allows you to reduce/increase the center point/circle. It's in %, not in pixel.

.Ratio of the rays (-100,100,dft=0):

__Allows you to change the ratio of the rays to have one thick one thin and so on.

.Gradient radius (-300,300,dft=0):

__The gradient is based on the extrem limits of the triangle but here you could change the limits to make a repeatable gradient.

.Random factor (-300,300,dft=0):

__This factor is here to set the strength of the randomess. 0 is no random effect.

.Reseed:

__Give another start to the random genetator.

.Fast position:

__This is a group of nine small rays to quickly set the standard positions.

.Anti-alias:

__Check/Uncheck to choose as you like.

.Filled:

__Check/Uncheck to choose as you like, filled or empty triangles. The lines are drawn with the actual brush width.

.Alpha gradient:

__ ( Function disabled )The rays are filled with a gradient from color to transparent.

.Color gradient:

__The rays are filled with a gradient from primary color to secondary color.

.Swap color:

__As it says!

.Swap gradient:

__Invert the direction for the gradients.

.Gradient as rays:

__As it says! Check the box you will understand.

.Use random:

__Check the box to add some chaos!

_________________

Voilà !

0

Share this post


Link to post
Share on other sites

Hey, that is really cool. This can bee a lot of fun. Thanks for the plugin Madjik.

0

Share this post


Link to post
Share on other sites

looks good but might i suggest a center chooser sort of like the zoom blur deluxe's: example.png

0

Share this post


Link to post
Share on other sites

Excellent Madjik! I used to do this by using Interlace at full strength and then a rect to polar! :D

Don't worry about anti-aliasing...a quick zoom blur deluxe should clear that up.

0

Share this post


Link to post
Share on other sites

^^Agreed on both the greatness of the plugin and using zoom-blur. To be honest I don't mind it not having AA because it give me a chance to try out other blurs which in turn created something very funky.

Thanks Madjik.

0

Share this post


Link to post
Share on other sites
looks good but might i suggest a center chooser sort of like the zoom blur deluxe's: example.png

I haven't choose this for two reasons:

- more complicate for me to program

- not as precise (in %) as sliders in pixels

0

Share this post


Link to post
Share on other sites

Oooooh very nice MadJik! Yousa gonna be sharin' da source? Mesa curious!

0

Share this post


Link to post
Share on other sites

Nice.

I'm thinking that aatwo is gonna like this one as well. :D

0

Share this post


Link to post
Share on other sites
not as precise (in %) as sliders in pixels

Thanks for another cool plugin and agreed.

0

Share this post


Link to post
Share on other sites
.Sorry no anti-aliasing available!

Could you use a transparent secondary color, then feather it?

0

Share this post


Link to post
Share on other sites
.Sorry no anti-aliasing available!

Could you use a transparent secondary color, then feather it?

Yes but (...) Hey guys, lot of tuts to create! Let's go!

0

Share this post


Link to post
Share on other sites
Oooooh very nice MadJik! Yousa gonna be sharin' da source? Mesa curious!

Well, no, NOW he's not...Jar Jar...

In other news, I LOVE this plugin. MadJik is my new favorite person.

EDIT: It's a plugin, not a tut.

0

Share this post


Link to post
Share on other sites

The good thing with % is there are infinite.

If you make a 10000*10000 canvas, 50% still works, you're not limited to 600px.

M2c.

0

Share this post


Link to post
Share on other sites
The good thing with % is there are infinite.

If you make a 10000*10000 canvas, 50% still works, you're not limited to 600px.

M2c.

Note for myself : Future version should change the sliders mini/maxi depending on the picture size

The error margin is greater then... 1% of 10000 is how many pixels?

0

Share this post


Link to post
Share on other sites

Madjik

Just wanted to say I love this plugin; great for backgrounds; nice job.

One small point, though, regarding the "Number of rays in the circle" slider (and this is not a criticism, just an observation).

You cannot render an odd number of rays, yet your slider/arrows and the text entry box allow for selection/entry of odd numbers.

Would there be any way you could get the slider/arrows to go up/down in increments of two?

Maybe I am being a bit picky! Probably just jealousy as I'd love to be able to write plugins.

0

Share this post


Link to post
Share on other sites

@CJ: Not unless MadJik decides to convert this into a "normal" plugin, as CodeLab does not give you anywhere near enough control over the interface to do that.

0

Share this post


Link to post
Share on other sites
...CodeLab does not give you anywhere near enough control over the interface to do that.

You say that like it's my fault. :(

0

Share this post


Link to post
Share on other sites

wellllll it wouldn't be hard to add an option to override the CreateConfigDialog() function....

EDIT: and technically it is your fault, as you're the one who added UI creation to CodeLab in the first place...

0

Share this post


Link to post
Share on other sites

Don't make him angry! You won't like him when he's angry... :evil:

0

Share this post


Link to post
Share on other sites

Really? I actually like most people better when they're angry... Maybe it's the lovely shade of red their faces turn.

0

Share this post


Link to post
Share on other sites

Lol Pyro. Offtopic; where can I get the font in your avatar? I don't want to copy it as most have done, just use it for some other stuff

0

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  
Followers 0