wizard Posted June 8, 2007 Share Posted June 8, 2007 Hi all. I'm quite new to the Paint.NET plugins business, but do development for a living. The first plugin I've tried to make is a generator for the glass orbs you see a lot nowadays, like this one: You can find a tutorial about how to make them by hand here. Well, I won't keep you waiting, here's the download...Enjoy... Link to comment Share on other sites More sharing options...
ncfan51 Posted June 8, 2007 Share Posted June 8, 2007 wow that's awesome! except for the bottom.. +_+_+_+_+_+_+_+_+_+_+_+ I am a disco dancer. +_+_+_+_+_+_+_+_+_+_+_+ Link to comment Share on other sites More sharing options...
The_Lionhearted Posted June 8, 2007 Share Posted June 8, 2007 And a little more blur on the top, imho... But looks good! I'll try it out over the weekend! EDIT: Or whenever I can download it from the link... :? My Gallery Link to comment Share on other sites More sharing options...
moc426 Posted June 8, 2007 Share Posted June 8, 2007 download broken Link to comment Share on other sites More sharing options...
Crazy Man Dan Posted June 8, 2007 Share Posted June 8, 2007 Yeah, the bottom part of the orb really isn't very good in my tutorial, is it... v_v I am not a mechanism, I am part of the resistance; I am an organism, an animal, a creature, I am a beast. ~ Becoming the Archetype Link to comment Share on other sites More sharing options...
someone2016 Posted June 8, 2007 Share Posted June 8, 2007 there is a hack (for the good of the PDN forum) go to http://home.orange.nl/steven.brom/download and click orb generator Link to comment Share on other sites More sharing options...
Yata Posted June 8, 2007 Share Posted June 8, 2007 ACK! It's very slow! Why not CJ's glass orbs? http://paintdotnet.12.forumer.com/viewtopic.php?t=4289 "Only two things are infinite, the universe and human stupidity, and I'm not sure about the former" [ dA Paint.NET Chat :: Yata on dA ] Link to comment Share on other sites More sharing options...
wizard Posted June 9, 2007 Author Share Posted June 9, 2007 Strange...I tried the download myself yesterday night, and that worked fine. But, good to see that you all found a workaround. Yeah, it's not great yet, but it's my first attempt on paint.net plugins and generating orbs. Does anyone have an example of doing a blur? Is that easy to apply for just the highlight? I'll try to see if I can make some like CJ's tutorial. I like those even more, but there a bit more work. Link to comment Share on other sites More sharing options...
Ash Posted June 9, 2007 Share Posted June 9, 2007 Nice plugin, please put it in Render if you can & if that's the correct place All creations Ash + Paint.NET [ Googlepage | deviantArt | Club PDN | PDN Fan ] Link to comment Share on other sites More sharing options...
BoltBait Posted June 9, 2007 Share Posted June 9, 2007 wizard, look at this post: http://paintdotnet.12.forumer.com/viewtopic.php?t=4085 You can use Blur just like I'm using Glow. In fact, download the Paint.NET source code and look at the Pencil Sketch effect. It uses blur. That's what I patterned my effect after. Click to play: Download: BoltBait's Plugin Pack | CodeLab | and how about a Computer Dominos Game Link to comment Share on other sites More sharing options...
moc426 Posted June 9, 2007 Share Posted June 9, 2007 this is pretty cool. but it does it based on the canvas size, if I do a selection it draws inside the selection but based on the canvas size so it draws the piece that would normally go if it was drawing on the full canvas. And yes it is slow, I think if you post your source code, you can get some help on it, I THINK you are doing a for x then for y loop and thats why it is slow. And yes if you can move it in render, it would be better, don't need another submenu for one item. Link to comment Share on other sites More sharing options...
wizard Posted June 9, 2007 Author Share Posted June 9, 2007 Thanks BoltBait, I'll look into that deeper when I have some spare time Here's a general question to other plugin developers: My OrbGenerator works like this now: I create a completely new bitmap, with the same size as the source Surface, derive Graphics from it, paint on it to create the orb, and then copy each pixel from my own Bitmap to the target Surface within the "for" loops shown in all the examples (and the Effect Template). This is not really quick (as someone mentioned). I would like to be able to draw directly on the target surface. Is that possible? Does that have any side effects, like totally ignoring any existing selections? Link to comment Share on other sites More sharing options...
moc426 Posted June 9, 2007 Share Posted June 9, 2007 pdn splits the image into small rectangles and runs them in parallel, you are having it run thru each pixel of the entire image, every time it calls the render function on the smaller rectangle. I believe that is why its performing slow. You can draw on the target surface directly. Look at the source code of some plugins posted here, and you can see how its done. The render function includes 2 parameters which are RenderArgs dstArgs, RenderArgs srcArgs. Rectangle selection = this.EnvironmentParameters.GetSelection(srcArgs.Surface.Bounds).GetBoundsInt(); // Loop through all the pixels for (int y = selection.Top; y < selection.Bottom; y++) { for (int x = selection.Left; x < selection.Right; x++) { ColorBgra* srcPtr = srcArgs.Surface.GetPointAddress(x, y); CurrentPixel = *srcPtr; // you can use the current pixel and then set it on the target or destination surface // and then set the target surface pixel to the that, this is just copying the pixel over. *dstArgs.Surface.GetPointAddress(x, y) = CurrentPixel; .... Thanks BoltBait, I'll look into that deeper when I have some spare time Here's a general question to other plugin developers: My OrbGenerator works like this now: I create a completely new bitmap, with the same size as the source Surface, derive Graphics from it, paint on it to create the orb, and then copy each pixel from my own Bitmap to the target Surface within the "for" loops shown in all the examples (and the Effect Template). This is not really quick (as someone mentioned). I would like to be able to draw directly on the target surface. Is that possible? Does that have any side effects, like totally ignoring any existing selections? Link to comment Share on other sites More sharing options...
wizard Posted June 15, 2007 Author Share Posted June 15, 2007 Hmmm, I dove into the way the Render method works, and finally grasped the idea Took a while... Although it's excellently thought out for effects that alter the existing image, or those effects that draw a new image based on some translation of X and Y coordinates, it seems that the current method can't be used (efficiently) for the stuff I'm trying with my Orb Generator. My calculations are not based on X or Y coordinates, just on the size of the surface or users selection. Anyway, I did find a way to fix this, although I'm not sure if this is how it should be done. I've created a static Bitmap variable, so I only draw the bitmap once onto that. After that, during each Render call, it only copies the correct part to the target surface. That works like a charm. Now I only have to find out how to determine the size of the complete user selection (since it still uses the size of the TargetSurface, and not the bounding rectangle of the users selection). Is that possible? (I found some requests on this topic, but couldn't find a good answer). Link to comment Share on other sites More sharing options...
Bjerre Posted June 23, 2007 Share Posted June 23, 2007 I think its a great plug-in, but i dont like the bottom. To remove the bottom, I have made a little guide(no pictures). 1. Select ALL pixels in the bottom circle(also the little grey ones around it), by using the magic wand at about 50%. Maybe its easier to use the ellipse seletion tool(depends on the orb color). 2. Move the selection(NOT the pixels) up, just then it dosn't select the circle edges(you'll have to move it a little to the left), and press CTRL+C. 3. Now press CTRL+V to paste the copied area, and place it on the bottom circle. It should cover the grey pixels perfectly, otherwise you should start over. 4. Go to adjustments>levels(CTRL+L), hit reset, and change the middle number in the output section from 1,00 to someting like 1,50(depends on the orb color). 5. Now use the feather plug-in, set to amount 1 and shrink, to soften the edge of the bottom circle(not necessary, but looks good). You're done! ROFL Warning: you may get pwned Link to comment Share on other sites More sharing options...
surgency Posted June 25, 2007 Share Posted June 25, 2007 @ Bjerre i used a method much simpler. you can still see a little gray and it looks more like a pot than an orb. and, it changes the colors to a bit more dark. 1. duplicate image 2. on the top image, set blending mode to color burn heres my "work" after my mini tut: Touched up: Link to comment Share on other sites More sharing options...
blooper101 Posted July 18, 2007 Share Posted July 18, 2007 I like this render. I made a pool ball with it I selected the coloured part, the bottom white part, recreated the gradient. Then I made another layer, writing "5" 25 pixels-ish from the bottom line of the top white part. Then I used MKT's Shape3D to make the "5" more asjusted to the pool ball. And there it is Note:You need to have the exact same number of pixels for your height and your width. Edit: I just saw the post above, and I like my method better 8) Link to comment Share on other sites More sharing options...
The Red Effect Posted July 19, 2007 Share Posted July 19, 2007 Can someone just fix the download link? Link to comment Share on other sites More sharing options...
Scyphrex Posted July 31, 2007 Share Posted July 31, 2007 Nice plugin. This actually would look better if u used more blur but hey only my opinion. My Sitehttp://z4.invisionfree.com/blackskydesigns Link to comment Share on other sites More sharing options...
blooper101 Posted July 31, 2007 Share Posted July 31, 2007 However, with blur... you wouldn't be able to do this: (I thumbnailed it, 'cause it was big.) I selected the white to do this. However, with blurred edges, it's going to be a bit difficult. Which is why I think that if our dear plug-in maker fixes it with a blur, he should make it so that we can have both the plug-ins. Link to comment Share on other sites More sharing options...
Geoff Posted August 1, 2007 Share Posted August 1, 2007 Download Broken! 1/08/2007 (D/M/Y) Link to comment Share on other sites More sharing options...
LamptonWorm Posted August 3, 2007 Share Posted August 3, 2007 Hi, Try here... http://home.wanadoo.nl/steven.brom/download/ Cheers, LW. Link to comment Share on other sites More sharing options...
Geoff Posted August 4, 2007 Share Posted August 4, 2007 Hi,Try here... http://home.wanadoo.nl/steven.brom/download/ Cheers, LW. Thank you very much for providing this external link to Orb Generator This successfully worked Geoff Link to comment Share on other sites More sharing options...
slashviper Posted August 6, 2007 Share Posted August 6, 2007 When I try to download it, it comes up with a spanish or french orange network site Link to comment Share on other sites More sharing options...
Paint_boy Posted August 7, 2007 Share Posted August 7, 2007 EDIT: Wow! This is fantastic! I might try to make a new FX theme with this. Beautiful. Thanks! This is great especially for a new guy :wink: Wizard, I'd love to see you make some new plugins. Possibly one that makes iamges look brushed like in my tut nah JK but I would love to see some new ones because this is great for a first one. EDIT: Ahh! It doesn't work when you do it on a 8000 x 8000 px canvas. Link to comment Share on other sites More sharing options...
Recommended Posts