Sign in to follow this  
MadJik

Light Rays (YMD:100714)

Recommended Posts

MadJik    162

Light rays Effect Plugin

What's this?

lightrays1.png

 

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 MadJik's All plugins package is available !

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

Light_Rays_UI.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!

_________________

 

Some examples

lightrays2.jpg

 

nuke.png

 

rays.png  cube2.gif

 

Voilà !

Edited by MadJik
refresh UI and rehosted images

Share this post


Link to post
Share on other sites
Myrddin    4

^^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.

Share this post


Link to post
Share on other sites
MadJik    162
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

Share this post


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

Thanks for another cool plugin and agreed.

Share this post


Link to post
Share on other sites
BoltBait    1,234
.Sorry no anti-aliasing available!

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

Share this post


Link to post
Share on other sites
MadJik    162
.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!

Share this post


Link to post
Share on other sites
david.atwell    281
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.

Share this post


Link to post
Share on other sites
Bob    3

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.

Share this post


Link to post
Share on other sites
MadJik    162
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?

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.

Share this post


Link to post
Share on other sites
pyrochild    297

@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.

Share this post


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

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

Share this post


Link to post
Share on other sites
pyrochild    297

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...

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