| | Announcing Bitsticker
|
|
I'd like to announce the availability of a little script I wrote that converts small bitmap images (JPG, PNG, GIF) to "stickers" that you can use in your LDraw models. The script is called Bitsticker and there's nothing to download: just visit (URL) (...) (18 years ago, 1-Mar-07, to lugnet.announce, lugnet.cad, FTX) !!
|
|
| | Re: Announcing Bitsticker
|
|
(...) That is very cool. I'm even going to spotlight it to get it above my post about getting pretty things on the NXT... ;-) Actually, if I upload the graphics I used on the NXT to your script I can make them appear on the display screen of Philo's (...) (18 years ago, 1-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker
|
|
(...) That is pretty clever, by the way. It reminds me of grayscale on graphing calculators (like (URL) or (URL) this>). That gives me a silly idea. LDraw on a TI-92. (...) Cool! That is a great application for it. Let me know how it goes. Jim (18 years ago, 1-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker
|
|
You might want to add the following two lines to the tops of your generated files: 0 UNOFFICIAL PART 0 BFC CERTIFY CW Adding the above two lines will enable BFC processing. The first line is needed because most models don't contain a 0 BFC CERTIFY (...) (18 years ago, 1-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker
|
|
(...) No sooner said than done! Thank you for the suggestion. I figured it would be good to wind the polygons consistently but I didn't think to declare it with BFC. Doing so is clearly beneficial. Jim (18 years ago, 2-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker
|
|
You might consider adding an option to use color 16 (or perhaps the "paper" color) for fully transparent pixels in uploaded PNG files. --Travis (18 years ago, 2-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker
|
|
(...) Thanks for pointing this out, I just realised (URL) txt2dat> does not include any header at all. I'd better fix that :) ROSCO (18 years ago, 2-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker
|
|
(...) Another excellent idea. You'll have the option to use the paper color for transparent pixels, and then you can set the paper color to anything you want (including 16). I'm tempted to throw it in right now, but I've actually just started (...) (18 years ago, 2-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker (and other txt/bit-to-dat utilities)
|
|
(...) Hey, txt2dat is cool! It looks like it should build on the Mac, too, so I'm puttering with rewriting the Makefile to make that happen. (The triangle library builds fine with the -DLINUX switch turned off.) It's part of my new crusade to get (...) (18 years ago, 2-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker (and other txt/bit-to-dat utilities)
|
|
(...) Hey, that'd be great! The makefile is a bit of a rat's nest, because I borrowed it from the freetype library, and modified it. The main reason I did that was for cross-platform compatability, but I've never had a Mac to try on. If you can get (...) (18 years ago, 2-Mar-07, to lugnet.cad, FTX)
|
|
| | txt2dat on Mac OS X (was Re: Announcing Bitsticker)
|
|
(...) Hi Ross, It works! I just built it by hand, so I'll write a simple makefile for it tomorrow. Only issue is that the version of Freetype 2 that comes with OS X doesn't seem to know about FTOrientation, so I just ifdeffed out the few bits that (...) (18 years ago, 2-Mar-07, to lugnet.cad, lugnet.cad.dev.mac, FTX)
|
|
| | Re: txt2dat on Mac OS X (was Re: Announcing Bitsticker)
|
|
(...) Hmmm, interesting. txt2dat is currently compiled against 2.1.9, I haven't tried upgrading since txt2dat is the only thing I use it for. But the API doc at the freetype site still documents (URL) FTOrientation API>. Also, version 2.3.1 (which I (...) (18 years ago, 2-Mar-07, to lugnet.cad, lugnet.cad.dev.mac, FTX)
|
|
| | Re: txt2dat on Mac OS X (was Re: Announcing Bitsticker)
|
|
(...) I believe it is freetype 2.1.4 (based on the major/minor/patch definitions in freetype.h). The headers are last dated 2002, and a look at more recent freetype changelogs suggests that predates the introduction of "FTOrientation." It's annoying (...) (18 years ago, 2-Mar-07, to lugnet.cad, lugnet.cad.dev.mac, FTX)
|
|
| | Re: txt2dat on Mac OS X (was Re: Announcing Bitsticker)
|
|
(...) Here is my rudimentary makefile for building txt2dat on my Mac and a linux machine. No guarantees it will work for anyone else but hopefully it could be helpful. Also a copy of txt2dat.c containing my quick checks to get around the lack of (...) (18 years ago, 2-Mar-07, to lugnet.cad, lugnet.cad.dev.mac, FTX)
|
|
| | Minor Bitsticker update
|
|
(...) I realized that Bitsticker would generate really long output filenames resembling the path to the original image when used with browsers like Internet Explorer 6. I've fixed it so that the output filename should be derived only from the (...) (18 years ago, 7-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker (and other txt/bit-to-dat utilities)
|
|
--snip-- (...) Unfortunately I got too busy with other things and kind of let is slide. With a rewrite in a compiled language and using a decent triangulation (such as the one Ross uses) and vectorisation algorithm I suspect it could be made to work (...) (18 years ago, 19-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker (and other txt/bit-to-dat utilities)
|
|
(...) Hmmm. It would appear that using the Potrace API and the Triangle API would do almost all the difficult work for software of this sort. I might look into restarting the project although I'm not sure how far I could get with it. Of course if (...) (18 years ago, 19-Mar-07, to lugnet.cad, FTX)
|
|
| | Re: Announcing Bitsticker (and other txt/bit-to-dat utilities)
|
|
(...) Neat. I have also (URL) used> (URL) autotrace>, a similar program. I haven't used either enough to recommend one over the other, but for some reason I do recall preferring potrace's output. (I've only used the programs, not programmed with (...) (18 years ago, 19-Mar-07, to lugnet.cad, FTX)
|