Alphapixel-Maker (draw images with antialiasing)
Community Forums/Showcase/Alphapixel-Maker (draw images with antialiasing)
| ||
I proudly present my new technology. Create alphapixel from 2 images!!!!! Create 2 identical images with antialiasing (use 3d-text in photoimpact or resample large image down) 1. image with white background, 2. image with black background. Start my program - load images and save created files. I added also a sample-code + sample-images. ULTRAFAST!!! princip of calculating alpha+rgb from 2 images: Download: http://www.blitzbase.de/downloads/alphamaker.zip Please note www.blitzbase.de in credits, if you use this tool! |
| ||
can you explain this a little closer? |
| ||
Yeah, the picture isn't really helping... |
| ||
I think I get it, but don't ask me what the picture is about. Anyway, you make two images and where there is a difference the transparency will equal to the difference, then the colour in the blackbackgrounded image is divided by the alpha value. Simple, but smart. Could you make your tool convert to png immediately? That would save even more time. |
| ||
i checked a png-dll long time ago, but this don't work... PNG support alpha-channel! But BB do not load alpha-channel. hm my english is not so good to explain this. You read a pixel from white image and another pixel from black image. If you have different colors (and not black/white) - you found a alpha-pixel. Delta1 is the difference to black color. Delta2 is the difference to white color. Draw line from "0 to color 1" and "255 to color2" in a graph - at the intersection of this lines, you find "true color" and you can reconstruct the alpha-value. Easier: If your color is 255 (from one channel) and alpha=50%. Your value on white-image don't change, but value on black-image lose 50% of intensity. It is easy to reconstruct the original value. |
| ||
But BB do not load alpha-channel. Did you remember to turn on alpha using the alpha flag? I'll test it myself. |
| ||
I mean LoadImage and not LoadTexture. LoadImage ignore alpha. |
| ||
Ah, that was what you talked about, anyway, for the 3D'ers, plz *puppy eyes* |
| ||
That diagram is really something... Seriously though, this sounds kind of clever. |