A little stylistic shading, and here is the result. I like to think that my skills of an artist have improved in the intervening years as well. If the spec doesn't support this use case, it's a shame I can think of a number of cases where it would be neat to generate a file from client-side JS. Although the DnD spec specifically asks for a File, maybe it would be happy with an arbitrary Blob instead I don't know, and I haven't yet tried. While it's definitely possible to build a pure-JS PNG encoder, I don't see any way to synthesize a File object. ![]() Of course, in order to do that, I need to be able to generate the PNG bytestream, as well as synthesize a File object in the browser. All I need is to use the DnD API to make the canvas a valid drag source. I would love to output the results to a canvas element instead of an image. Fortunately, Chrome has no problems with the image at my target resolution (1920x1080).īecause this extremely long data URL feels pretty sketchy, I looked to see if there was a way around it. However, when I was working with the original 17 megapixel image, I found that dragging the output image out of my browser would immediately crash the Chrome tab. Even though the data URL is ridiculously long, it correctly displays on the screen. This is great I can then drag the image off the page and onto my desktop (something that the canvas element doesn't automatically do). I end up doing a lot of work against a scratch canvas before finally dumping the output into an image element using the HTMLCanvasElement toDataUrl method. It wasn't too hard to allow dropping an image file onto the page. I'll probably clean it up and get it posted to GitHub. Many hours later, I have something that basically works. I figured that, between the drag-and-drop API, canvas, and a high-performance JS engine like V8, I could probably get away with it. Because I'm a masochist, I decided to do it with HTML and Javascript. That's not even the interesting part of the story. I'm sure that there are a lot of image to ASCII generators out there, but I can't shy away from a chance to learn something, so I decided to try to write my own. All I need to do is to scale that down, generate the ASCII half, blend them, and Bob's your uncle. Fortunately, in the GoG re-release, they included a ludicrously high resolution 5100x3338 pixel render. Unfortunately, screen resolutions have increased quite a bit in the intervening years, and a pixelated Shodan simply won't do. In any case, I wanted to commemorate the recent GoG re-release of SS2 by inviting Shodan to adorn my desktop yet again. Yeah, I was pretty pleased with myself back in the day. Ultimately, my only creative contribution to the world of Shock was to combine two wallpapers that were floating around the net into one of my very own: I had all kinds of ideas for case mods (even though I had neither the money nor the tools to make it happen). My favorite co-op experience of all time was when my dorm roommate and I played SS2 together. Virtual and Physical Prototyping, 5(2), 89–98.ĪSTM, E 23–96, Standard test methods for notched bar impact testing of metallic materials.Back when I was in college, I was a big System Shock 2 fan. Charpy impact testing of metallic selective laser melting parts. Mechanical properties of lightweight 316L stainless steel lattice structures fabricated by selective laser melting. Metallography, Microstructure, and Analysis, 2(6), 388–393. Effect of single and duplex stage heat treatment on the microstructure and mechanical properties of cast Ti-6Al-4V alloy. Crack path-engineered 2D octet-truss lattice with bio-inspired crack deflection. In: Proceedings of the 16th International Symposium on Electromachining (ISEM XVI). (2010) Part and material properties in selective laser melting of metals. P., Badrossamay, M., Yasa, E., Deckers, J., Thijs, L., & Van Humbeeck, J. Procedia Structural Integrity, 13, 2065–2070. Impact toughness of components made by GMAW based additive manufacturing. Waqas, A., Xiansheng, Q., Jiangtao, X., Chaoran, Y., & Fan, L. Manufacturing and characterization of Ti6Al4V lattice components manufactured by selective laser melting. D., Caiazzo, F., Cardaropoli, F., & Sergi, V. ![]() Damage-tolerant architected materials inspired by crystal microstructure. S., Liu, C., Todd, I., & Lertthanasarn, J. ![]() Evaluation of topology-optimized lattice structures manufactured via selective laser melting. ![]() Xiao, Z., Yang, Y., Xiao, R., Bai, Y., Song, C., & Wang, D. Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences, 364(1838), 15–30. Laser powder bed fusion additive manufacturing of metals Physics, computational, and materials challenges. Journal of Alloys and Compounds, 541, 177–185. Heat treatment of Ti6Al4V produced by selective laser melting: Microstructure and mechanical properties.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |