Jump to content

Coornio

Members
  • Posts

    28
  • Joined

  • Last visited

Profile Information

  • Gender
    Male
  • Location
    Greece
  • Interests
    Programming mostly. I also dabble in image-messing-around and mapping-messing-around and messing-around-in-general.

Recent Profile Visitors

436 profile views

Coornio's Achievements

Explorer

Explorer (4/14)

  • First Post
  • Collaborator
  • Conversation Starter
  • Week One Done
  • One Month Later

Recent Badges

0

Reputation

1

Community Answers

  1. This is just Defender's way of saying "I don't even know why, but I don't like this." This is a heuristic detection that more often than not comes up flagging legit files. Look up the term if you're curious. I coded myself a Hangman game some months ago that kept getting flagged by Defender when compiled, it's pretty much brain-dead and/or paranoid.
  2. As is the usual after one posts a lengthy post requesting help, I managed to solve it with the help of another third party. For those curious: weightSrc = Asrc / 255; weightDst = 1 - weightSrc; Aout = min(Adst * weightDst + Asrc, 255); Rout = min(Rdst * weightDst + BLEND * weightSrc, 255); Gout = min(Gdst * weightDst + BLEND * weightSrc, 255); Bout = min(Bdst * weightDst + BLEND * weightSrc, 255); // where BLEND stands for the particular blend operation you require, // eg: Difference is: abs(Rsrc - Rdst) // eg: Multiply is: (Rsrc * Rdst) / 255 // eg: Additive is: min(Rsrc + Rdst, 255) // normal alpha blending in particular is easier Aout = min(Adst * weightDst + Asrc, 255); Rout = min(Rdst * weightDst + (Rsrc * Asrc) / 255, 255); Gout = min(Gdst * weightDst + (Gsrc * Asrc) / 255, 255); Bout = min(Bdst * weightDst + (Bsrc * Asrc) / 255, 255); I am not 100% sure if I haven't made any mistakes, but some rudimentary testing through the color picker in a comparison between paint.NET's blend and mine shows practically identical values, minus rounding differences.
  3. Hello there! It's been a while since I've been around these forums for anything, but I imagine it's at present my best bet of getting some relevant help on the topic. I apologize in advance if this may not be the most appropriate category to post, but it seemed the most relevant one. If needed, please feel free to move the thread elsewhere. To give a bit of a background, I am programming an emulator for MegaChip-8 (something probably few people know), and I wanted to add blend modes for its sprite drawing routine to its repertoire. That much is fine and all, but the only part I've actually managed to get working correctly is normal blending (with alpha) and opaque-only in other modes. To clarify on what I mean with opaque-only.. well, the results are only as expected when opacity of the source pixels is 1 (255). The lower it gets, the more inaccurate the output I get. I've been using paint.NET as my tool for authenticating the validity of the output pixels in my attempt to implement the various blend modes out there. The extension of this problem I'm facing however is the limited resources available in regards to coding blends in general. A lot of the stuff from Google is either straight up nonsense, or irrelevant to the search query. The free tier of chatgpt is also completely inept and incompetent at providing useful feedback. Understanding the process of handling color with opaque pixels is super easy, but when alpha is concerned, many of the formulas I see straight up crumble. One example would be the Difference blend, which in essence is |Src - Dst| and I got this working with opaque pixels, and also in alpha-blending mode at full opacity. The lower I go though, the less the result looks like what I get from paint.NET. So, given this place has a bunch of very knowledgeable people that have tackled color theory, blending, and programming with all those mixed in, I was hoping I might employ your assistance in figuring out how I'm supposed to be going about this in order to do it right. Fair warning however, I am absolutely terrible at figuring out how to read math-format formulas. I would appreciate any such suggestions if you could please translate them to pseudocode. My brain picks that up waaaay easier. Thanks to everyone who may participate! -------------------------------------------- Examples, for those interested. First picture depicts the expected result in paint.NET, and also what I'm getting when doing an opaque Difference blend in the emulator I'm writing: This next picture showcases the expected outcome at 0.5 alpha from paint.NET And this is what I get instead from the emulator under the same parameters:
  4. I have some textures that are baked onto a black background, which works for some situations where an app can properly blend the textures that way, but in others it's an issue. As such, I am looking for a way to convert a pixel's luminance value (HSV) to opacity. The closer to V=100 a pixel is, the closer to 255 alpha it gets basically. I need this applied to the entire texture of course, not on a per-pixel basis, in case it was misleading. Does anyone have any recommendations for me? It is imperative to maintain color information so the likes of "Black and Alpha+" or BoltBait's "Gray to Alpha" don't work for me. Neither is one called "Color to alpha" or another "AlphaSpace" (this one mostly works but also seems to dampen brightness and lose pixels below a threshold). Many thanks for any pointers!
  5. http://blogs.msdn.com/b/dorischen/archive/2014/11/12/microsoft-takes-net-open-source-and-cross-platform.aspx Could that mean that paint.net could eventually become cross-platform as well?
  6. Now that works. Weird how nobody tells you that it only appears to work through the numpad.
  7. Not quite: https://www.dropbox.com/s/3zbv56atdbelzky/Screenshot%202014-11-03%2002.31.29.png?dl=0 Told you, no icons. Also, i've read a lot about using ALT + numbers to type special characters. I've also realised that no matter what i do, it seems i'm not the chosen one. This "feature" never worked for me throughout 4 operating systems, from XP and Vista to Windows 7 and 8.1. It just doesn't do anything. Pressing the left ALT immediately highlights the menu bar of any application, and while the right one doesn't, it does not produce any symbols with a combination of numbers or letters either. Is there some kinda switch i'm supposed to flip in windows for this ability to activate or something?
  8. Didn't help. It only lists the standard + cyrilic characters as you'd expect from a standard font. I'm afraid i need a different way to import them.
  9. Very very interesting. Thanks for the help on all of them. This foundation font seems very nice, but i can't seem to figure how exactly i'll use its icons inside paint.net. Any pointers? Perhaps i have to make a sample website to render them all and then i'll just copy them as bitmaps
  10. I do something similar to that when i mess with icons. As long as you don't mind slight shadows making it into your alpha map, it should be simple for any images that have a transparent background. Otherwise, you may have to use the magic wand to cut parts out afaik. Take the picture, crank up the brightness and contrast to make it completely white, make a new layer below it, paint it black. Done. I'm no expert, so don't take my word for perfect success
  11. I hope there's an answer to either of these two questions 1) I'm pretty sure that many of you would like to be able to record a paint.net session and replay it step by step for another image. Just take a history chunk, pop it to another picture, boom, automated painting. It's what i'd like to do in my case for several icons of different colors. They all follow pretty much the same procedure but having to write it down, and note the colors and values of each plugin for every step is just tedious. So i'm wondering, is there a plugin that can do something like that i haven't heard of? Is the idea awesome enough for someone to attempt it? 2) I am also looking for any plugin or feature which may make working in tiles much better. In some cases i wish to line up textures in a sprite fashion, but that requires me first to make a sample checker board so i can use it to know that my selections are aligned perfectly with each other. Is there something that would let me operate in this fashion where the selection snaps in place every 64 pixels for example? 3) As i said, i work with icons. I'm making a mod in a game called Tesseract that is pretty much a replacement for the current UI (which is a much older version of my mod to begin with, long story) but i'm helpless. I won't lie, i've no real clue how to draw anything that isn't a shape, at least, not reliable enough so i can reproduce it a few months later if i decide to redo it for whatever reason. Bottom line is, i suck. So i'm using dingbat fonts like webdings and wingdings to render the symbols unto the canvas, and then i work a little coloration on them and boom, ready to go in my mod to pretty things up. There is, however, only so much the default fonts can provide and having to rely on free icons i find elsewhere is both disgraceful and difficult when i run out of options since i can't exactly mix and match sets from different people, there would be no consistency whatsoever. So this is my problem really. I'm looking for dingbat fonts which may be able to render icons in a style similar to this icon pack i found: https://www.iconfinder.com/iconsets/super-mono-reflection Not to the letter, but clean looking like those. I would also appreciate any tips anyone might be willing to give me so i can create my own icon templates to work on. Because i could tell you some basic things about how an image is put together to make the end result but my knowledge would only go so far when complex shapes, intricate gradients, shadows, reflections and glows are in play.. Bonus: screenie of the kind of icons i'm using in my mod for reference. EDIT: the "no" and "yes" thumbs icons are what i was talking about when i said about coloring dingbat font symbols. It's a bit of a roundabout way that i'm going, using the Black & Alpha plugin to turn the image "inside out" by attempting to make transparent pixels opaque and opaque pixels transparent. If you guys know of another plugin to do something like that, MUCH appreciated.
  12. It would appear that said attachment does indeed work without throwing errors. But at that place it's only natural not to see it It never was moved to the OP afterall.
  13. So is there any chance of this being updated? Ever since v4.0 it simply throws an error and does nothing.
  14. Personally i doubt this crash can be replicated. It's never happened before while following that procedure, it was wholly unexpected. Then again, a few hours later my computer froze for good, applications wouldn't close or respond, task manager wouldn't even show up; hell, i was holding the restart button and it refused to do anything! It could have been some weird memory corruption for all i know. In any case, i think it would be safe to call this closed for now, at least until it can be proven that this crash can happen again, and under normal circumstances.
  15. Sincerest apologies, i neglected to press the button to attach the log. But the file type .log isn't allowed? Oh well, it's in a .zip now.
×
×
  • Create New...