Jump to content


Photo

Light Rays (YMD:100714)


  • Please log in to reply
98 replies to this topic

#1 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:20

Posted 14 June 2007 - 12:37 PM

Light rays Effect Plugin

What's this?
Posted Image

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
Posted ImageHere is the DLLPosted Image

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
Posted Image

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

#2 Leif

Leif
  • Members
  • 672 posts
  • LocationDenmark
  • Reputation:0

Posted 14 June 2007 - 01:12 PM

Hey, that is really cool. This can bee a lot of fun. Thanks for the plugin Madjik.
Posted Image
My DA: http://leif-j.deviantart.com/
--------------
Some people seek justice so persistent, that they will do great injustice themselves.

#3 vobie

vobie
  • Members
  • 88 posts
  • Reputation:0

Posted 14 June 2007 - 01:31 PM

looks good but might i suggest a center chooser sort of like the zoom blur deluxe's: Posted Image
Posted Image

#4 The_Lionhearted

The_Lionhearted
  • Members
  • 2,613 posts
  • LocationSpringfield, MO
  • Reputation:1

Posted 14 June 2007 - 01:34 PM

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.

#5 Myrddin

Myrddin

    Former Moderator

  • Members
  • 4,155 posts
  • LocationSheffield, England.
  • Reputation:2

Posted 14 June 2007 - 02:00 PM

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

#6 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:20

Posted 14 June 2007 - 03:59 PM

looks good but might i suggest a center chooser sort of like the zoom blur deluxe's: Posted Image

I haven't choose this for two reasons:
- more complicate for me to program
- not as precise (in %) as sliders in pixels

#7 pyrochild

pyrochild

    Plugin Author of the Year 2012

  • Administrators
  • 11,240 posts
  • LocationColorado
  • Reputation:130

Posted 14 June 2007 - 04:42 PM

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

Posted Image
[I write plugins and stuff] [Follow my stupid brain on Twitter]

If you like a post, upvote it!


#8 BoltBait

BoltBait
  • Administrators
  • 8,907 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 14 June 2007 - 04:51 PM

Nice.

I'm thinking that aatwo is gonna like this one as well. :D
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#9 Ash

Ash

    Former Moderator

  • Members
  • 6,381 posts
  • Locationhttp://tinyurl.com/6kqz9v
  • Reputation:5

Posted 14 June 2007 - 05:09 PM

not as precise (in %) as sliders in pixels


Thanks for another cool plugin and agreed.

Posted Image
All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ]


#10 moc426

moc426
  • Members
  • 369 posts
  • Reputation:2

Posted 14 June 2007 - 06:21 PM

Cool, this can be useful.

#11 BoltBait

BoltBait
  • Administrators
  • 8,907 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 14 June 2007 - 06:24 PM

.Sorry no anti-aliasing available!


Could you use a transparent secondary color, then feather it?
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game

#12 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:20

Posted 14 June 2007 - 06:54 PM

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

#13 david.atwell

david.atwell

    Former Moderator

  • Members
  • 627 posts
  • LocationIndianapolis, IN (39°46′5.88″N 86°9′29.52″W)
  • Reputation:18

Posted 14 June 2007 - 11:15 PM

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.

Posted Image

The Doctor: There was a goblin, or a trickster, or a warrior... A nameless, terrible thing, soaked in the blood of a billion galaxies. The most feared being in all the cosmos. And nothing could stop it, or hold it, or reason with it. One day it would just drop out of the sky and tear down your world.
Amy: But how did it end up in there?
The Doctor: You know fairy tales. A good wizard tricked it.
River Song: I hate good wizards in fairy tales; they always turn out to be him.


#14 Bob

Bob
  • Members
  • 3,033 posts
  • LocationLyon, France
  • Reputation:3

Posted 14 June 2007 - 11:23 PM

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.

#15 barkbark00

barkbark00
  • Members
  • 3,336 posts
  • Reputation:2

Posted 15 June 2007 - 03:07 AM

^Agreed!
Posted Image
Take responsibility for your own intelligence. ;) -Rick Brewster

#16 MadJik

MadJik
  • Members
  • 2,428 posts
  • LocationLille;France
  • Reputation:20

Posted 15 June 2007 - 05:16 AM

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?

#17 Bob

Bob
  • Members
  • 3,033 posts
  • LocationLyon, France
  • Reputation:3

Posted 15 June 2007 - 05:04 PM

Sure.
The best way would be to provide both :D
http://getpaint.net/...enu.html#Resize

#18 cjmcguinness

cjmcguinness
  • Members
  • 641 posts
  • LocationDublin, Ireland.
  • Reputation:1

Posted 17 June 2007 - 12:52 AM

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.
Posted Image
Posted ImagePosted ImagePosted ImagePosted Image

#19 pyrochild

pyrochild

    Plugin Author of the Year 2012

  • Administrators
  • 11,240 posts
  • LocationColorado
  • Reputation:130

Posted 17 June 2007 - 12:55 AM

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

Posted Image
[I write plugins and stuff] [Follow my stupid brain on Twitter]

If you like a post, upvote it!


#20 BoltBait

BoltBait
  • Administrators
  • 8,907 posts
  • LocationCalifornia, USA
  • Reputation:103

Posted 17 June 2007 - 01:20 AM

...CodeLab does not give you anywhere near enough control over the interface to do that.

You say that like it's my fault. :(
Click to play:
Posted ImagePosted ImagePosted ImagePosted ImagePosted Image
Download: BoltBait's Plugin Pack | CodeLab | More... and how about a Computer Dominos Game