Jump to content

Hellfire010

Members
  • Posts

    672
  • Joined

  • Last visited

Everything posted by Hellfire010

  1. I'm not totally sure what the issue is. I've made some silly mistakes that may be relevant so, check to make sure these things are set properly: 1. Primary color is not fully (or mostly) transparent. 2. The layer you're writing to is not set to transparent OR set to invisible (unchecked) in the layers panel. 3. The region you're writing on that layer is not covered by an image on a layer above it. 4. You don't have a different region selected, cause then your text would only show up where you have it selected, and not at all if you're not writing in that selection.
  2. Should be able to. Just surround the url of the image by ubbc img tags. http://en.wikipedia.org/wiki/Bulletin_board_code
  3. I haven't been to this forum in a long time, but I'm probably gonna be around here more often. I knew about the new plugin, so I decided to check out if this thread was still pinned, out of curiosity. I didn't expect it to still be pinned AND have 29 pages! lol But, the idea of animating frame by frame still applies so I'll leave it as it is. I may edit it at some point to include animating with the plugin, though.
  4. It's definitely an interesting proposal, especially if it was implemented into the forum directly (which is not hard). Simon Brown does have a good point, though... people would probably try to resort to the IRC to get questions answered rather than trying to search, further corrupted our generation! err, I mean... uh... But also, it would probably decrease forum posting, and therefore actually have an adverse effect on the forum (hypothetically, anyway).
  5. I would probably use pyro's splatter, as boltbait said, make some on 2-3 layers, then add an outline to each. I did it very quickly:
  6. Plush - Stone Temple Pilots a little stp never hurt nobody
  7. 6/10 Although I really like the design, it seems very plane. No color and no style to the text.
  8. I kinda went inactive on this forum so it's hard for me to say, BUT I do know that I glimpse at your Polyptychs tutorial for something very recently, and going by post count, so I'll say "respectably famous." O.o
  9. Yep, it didn't show up the first time I put it there for some reason, which is why I asked, but it does now. Maybe I just overlooked it, idk.
  10. I just got Visual Studio 2010 Professional, and in the folder ...\Visual Studio 2010\Templates\ProjectTemplates there are three other folders (Visual Basic, Visual C#, Visual Web Developer) but I noticed that in the 2008 folder these three folders are not there, so do I put this template in ...\ProjectTemplates or in ...\ProjectTemplates\Visual C# ?
  11. Already did that ^_^ Just realized my school's free software section has VS 5 and 8, but I'm downloading 10 from DreamSpark now. Works for me. :o Thanks for that. I'll look into it when I have time... Unfortunately, I have a Calc II exam tomorrow so I need to get studying a bit. All in due time, though. But hey, no more copy/pasta from notepad++ Edit: Just sayin, after Java being my language of choice for quite a while, I read up on C# a bit today, and I think C# is starting to be my new choice... we shall see. O_o
  12. Free or discounted? Oo *downloading* Being a student has its perks!
  13. Still appreciated though! VS isn't free... sadface Hmm... would it be possible to tell WHEN the Render function is on the last row. Like, if rect.Bottom is equal to the bottom of the selection? Then, from there, set table back to null? *goes to try*
  14. Thanks Boltbait, I will look into those things. And thanks Pyrochild, but I already changed that in my most reason version. And yeah, when I saw the 7 I literally facepalmed quietly to myself. =P
  15. So... after much fiddling, I finally got it to work right. Not exactly optimized, but it works for now (cept changing settings in the UI doesn't update it right... trying to figure out why). #region UICode int Amount1 = 30; //[0,255] Rule Number bool Amount2 = true; // [0,1] Wrap bool Amount3 = false; // [0,1] Randomize #endregion private static bool[] ruleTable = new bool[8]; private static bool[,] table; private static void generateTable(int width, int height, bool rand, bool wrap) { table = new bool[width,height]; //Randomize a first row if(rand) { Random random = new Random(); for(int x = 0; x < width; x++) { if(random.Next(6) == 1) { table[x,0] = true; } else { table[x,0] = false; } } } //Creates first row with just a center pixel else { table[width/2,0] = true; } for(int y = 1; y < height; y++) { for(int x = 0; x < width; x++) { bool left = false, middle = false, right = false; //Determines the "neighborhood" from previous row if( (x != 0 && table[x-1,y-1]) || (wrap && x == 0 && table[width-1,y-1]) ) { left = true; } if(table[x,y-1]) { middle = true; } if( (x != width-1 && table[x+1,y-1]) || (wrap && x == width-1 && table[0,y-1]) ) { right = true; } //Use rule to determine the current pixel from the neighborhood //In comments: 'B' represents true, 'W' represents false ... (black/white) table[x,y] = false; if(left) //B-- { if(middle) //BB- { if(right) //BBB { if(ruleTable[0]) { table[x,y] = true; } } else //BBW { if(ruleTable[1]) { table[x,y] = true; } } } else //BW- { if(right) //BWB { if(ruleTable[2]) { table[x,y] = true; } } else //BWW { if(ruleTable[3]) { table[x,y] = true; } } } } else //W-- { if(middle) //WB- { if(right) //WBB { if(ruleTable[4]) { table[x,y] = true; } } else //WBW { if(ruleTable[5]) { table[x,y] = true; } } } else //WW- { if(right) //WWB { if(ruleTable[6]) { table[x,y] = true; } } else //WWW { if(ruleTable[7]) { table[x,y] = true; } } } } } } } //RENDER void Render(Surface dst, Surface src, Rectangle rect) { ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; //Determine rule ruleTable by converting Amount1 [0-255] to an array of bools (binary representation) int rule = Amount1; for(int place = 7; place >= 0; place--) { if(rule >= Math.Pow(2, place)) { rule -= (int)Math.Pow(2, place); ruleTable[7-place] = true; } } if(table == null) { generateTable(src.Width, src.Height, Amount3, Amount2); } ColorBgra CurrentPixel; for (int y = rect.Top; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = new ColorBgra(); //Set new pixel if(table[x,y]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } dst[x,y] = CurrentPixel; } } }
  16. Ignore this post. I got the code to work (see later in thread). Feel free to critique, of course. lol it is rather... err... iffy >_> http://en.wikipedia.org/wiki/Cellular_automaton or, more specifically, http://en.wikipedia.org/wiki/Elementary_cellular_automaton Basing this off of a Java program I wrote for a class last year. http://privatepaste.com/3718890fbf An example of "rule 30" Mostly, rule multiples of 15 produce interesting fractals. I have a lot of weird and interesting ideas to do with this once I get it working. It was like 1:00 am and it's my first attempt, I'm trying to figure out how these pluginamajiggies work x_x ...Oh, and is a bool or an array of bools in C# automatically set to false when created? Wasn't sure on that. But... this is my updated code. Something isn't working right. I think it's something to do with the ROI thing. So yeah, help appreciated. Oh, commented it a bit for you Rick, in case you're interested in this awful mess. Some pictures (random turned off) This is what it's suppose to look like, and on occasion, it will render this way. In fact, every time it runs at these settings it should look exactly like this. http://i172.photobucket.com/albums/w6/AndrewM16921/Random/right.jpg But, I often get results like these: http://i172.photobucket.com/albums/w6/AndrewM16921/Random/fail1.jpg http://i172.photobucket.com/albums/w6/AndrewM16921/Random/fail2.jpg http://i172.photobucket.com/albums/w6/AndrewM16921/Random/fail3.jpg http://i172.photobucket.com/albums/w6/AndrewM16921/Random/fail4.jpg (Code outdated - updated (and working) version in later reply) #region UICode int Amount1 = 30; //[0,255]Rule Number bool Amount2 = true; // [0,1] Wrap bool Amount3 = false; // [0,1] Randomize #endregion private static bool[] table = new bool[8]; private static bool[] prevRow, currentRow; private static int mostRecentRowCalculated = -1; private static void calcRow(int row, int width, bool rand, bool wrap) { if(mostRecentRowCalculated == -1) { //Randomize a first row if(rand) { currentRow = new bool[width]; Random random = new Random(); for(int x = 0; x < width; x++) { if(random.Next(6) == 1) { currentRow[x] = true; } else { currentRow[x] = false; } } } //Creates first row with just a center pixel else { currentRow = new bool[width]; currentRow[width/2] = true; } mostRecentRowCalculated++; } while(mostRecentRowCalculated < row) { prevRow = currentRow; currentRow = new bool[width]; for(int x = 0; x < width; x++) { //Again, idk if this is necessary in C# bool left = false, middle = false, right = false; //Determines the "neighborhood" from previous row if( (x != 0 && prevRow[x-1]) || (wrap && x == 0 && prevRow[width-1]) ) { left = true; } if(prevRow[x]) { middle = true; } if( (x != width-1 && prevRow[x+1]) || (wrap && x == width-1 && prevRow[0]) ) { right = true; } //Use rule to determine the current pixel from the neighborhood //In comments: 'B' represents true, 'W' represents false ... (black/white) currentRow[x] = false; if(left) //B-- { if(middle) //BB- { if(right) //BBB { if(table[0]) { currentRow[x] = true; } } else //BBW { if(table[1]) { currentRow[x] = true; } } } else //BW- { if(right) //BWB { if(table[2]) { currentRow[x] = true; } } else //BWW { if(table[3]) { currentRow[x] = true; } } } } else //W-- { if(middle) //WB- { if(right) //WBB { if(table[4]) { currentRow[x] = true; } } else //WBW { if(table[5]) { currentRow[x] = true; } } } else //WW- { if(right) //WWB { if(table[6]) { currentRow[x] = true; } } else //WWW { if(table[7]) { currentRow[x] = true; } } } } } mostRecentRowCalculated++; } } //RENDER void Render(Surface dst, Surface src, Rectangle rect) { ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; //Idk if this is necessary in C#. I know it's not in Java, but just in case I put it in for now... for(int i = 0; i < 7; i++) { table[i] = false; } //Determine rule table by converting Amount1 [0-255] to an array of bools (binary representation) int rule = Amount1; for(int place = 7; place >= 0; place--) { if(rule >= Math.Pow(2, place)) { rule -= (int)Math.Pow(2, place); table[7-place] = true; } } ColorBgra CurrentPixel; for (int y = rect.Top; y < rect.Bottom; y++) { calcRow(y, src.Width, Amount3, Amount2); for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = new ColorBgra(); //Set new pixel if(currentRow[x]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } dst[x,y] = CurrentPixel; } } }
  17. Ignore this post. I got the code to work (see later in thread). Feel free to critique, of course. I've never written a plugin before, so I thought I'd start with something simple... a cellular automaton... <_< I figured it might be useful for making textures or something. After writing this code, I finally got no errors to come up. I'm not really familiar with C# that much, so it took me like 15 minutes to figure out that Math.pow should be Math.Pow (I'm mostly use to java and actionscript). Anywho, when I run this code in codelab nothing happens, and I can't really seem to figure out why. Any help appreciated! Also, I know it's not optimized AT ALL (lol), I was just trying to get it to actually work first. Behold... my first of many crappy attempts at a plugin: (Code outdated - updated (and working) version in later reply) #region UICode int Amount1=30; //[0,255]Rule Number #endregion void Render(Surface dst, Surface src, Rectangle rect) { ColorBgra PrimaryColor = (ColorBgra)EnvironmentParameters.PrimaryColor; ColorBgra SecondaryColor = (ColorBgra)EnvironmentParameters.SecondaryColor; bool[] table = new bool[8]; for(int i = 0; i < 7; i++) { table[i] = false; } //rule [0-255] int rule = Amount1; for(int place = 7; place >= 0; place--) { if(rule >= Math.Pow(2, place)) { rule -= (int)Math.Pow(2, place); table[7-place] = true; } } ColorBgra CurrentPixel; //Randomize first row Random random = new Random(); for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,rect.Top]; if (random.Next(2) == 1) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } dst[x,rect.Top] = CurrentPixel; } for (int y = rect.Top+1; y < rect.Bottom; y++) { for (int x = rect.Left; x < rect.Right; x++) { CurrentPixel = src[x,y]; bool left = false, middle = false, right = false; if(x != 0 && dst[x-1,y-1] == PrimaryColor) { left = true; } if(dst[x,y-1] == PrimaryColor) { middle = true; } if(x != rect.Right && dst[x+1,y-1] == PrimaryColor) { right = true; } if(left) //B-- { if(middle) //BB- { if(right) //BBB { if(table[0]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } else //BBW { if(table[1]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } } else //BW- { if(right) //BWB { if(table[2]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } else //BWW { if(table[3]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } } } else //W-- { if(middle) //WB- { if(right) //WBB { if(table[4]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } else //WBW { if(table[5]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } } else //WW- { if(right) //WWB { if(table[6]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } else //WWW { if(table[7]) { CurrentPixel.R = (byte)PrimaryColor.R; CurrentPixel.G = (byte)PrimaryColor.G; CurrentPixel.B = (byte)PrimaryColor.B; CurrentPixel.A = (byte)PrimaryColor.A; } else { CurrentPixel.R = (byte)SecondaryColor.R; CurrentPixel.G = (byte)SecondaryColor.G; CurrentPixel.B = (byte)SecondaryColor.B; CurrentPixel.A = (byte)SecondaryColor.A; } } } } dst[x,y] = CurrentPixel; } } }
  18. PLUGIN INDEX? omg, so THAT'S what I've been missing! *checks it out* ...just spent like 2 hours going through all of the plugins and updating my personal collection of plugins... which is outdated by like... x years >_> WOOT xD
  19. Hey guys... been a while. Um, so I was checking out one tutorial on fire cause I needa make fire for somethin... and it says I need an "Average Blur" plugin. The link was broken, so I did a forum search. I found many other broken links, but have yet to find the actual plugin. I'd greatly appreciate it if someone can point me in the right direction. Thanks.
  20. Lol i like this xD I like it too. Very creative. Only thing I'd suggest is making it slightly slower - but not too much slower. =)
  21. Seen some cool stuff here recently. Here's a banner I've been working on for my Runescape clan. We just merged, got a new name, and now need a new banner. Any suggestions appreciated! ^Click for Full Size^
×
×
  • Create New...