ID:180471
 
well, im working on a dbz game, is there some way to make some icons transperent? i want an aura (bright glowing thing that surrounds ur body when powered up) is there any way this is possible?
On 6/4/01 9:30 pm Sariat wrote:
well, im working on a dbz game, is there some way to make some icons transperent? i want an aura (bright glowing thing that surrounds ur body when powered up) is there any way this is possible?

You could use dithered overlays for semi transparent effects. Dithering is a little hard to explain (or maybe I just lack the vocabulary. Graphics are not my forte.) so I'll try to show you examples:

For a 50% dither, make 50% of the pixels transparent:
o.o.o.o.     o = a set pixel (i.e. color of your aura)
.o.o.o.o     . = a transparent pixel
o.o.o.o.
.o.o.o.o


You must make sure to space your pixels properly, or you just get striping. Experiment with it and you'll see what I mean.

The drawback to dithering is that you lose some detail in your icons.

There is also an option for adding color to your icons, but I have not been very satisfied with the results of my experiments with icon arithmetic.
In response to Shadowdarke
Where would i put that code?
In response to Sariat
On 6/5/01 8:26 am Sariat wrote:
Where would i put that code?

That wasn't code, I was just trying to show an example of dithering in an icon. I suppose I could make a few demo icons and upload them, but is it worthy of a demo?

Would that be helpful?
In response to Shadowdarke
In other words, no, you can't.

In response to Foomer
On 6/5/01 9:59 am Foomer wrote:
In other words, no, you can't.
it would be helpful
In response to Sariat
On 6/5/01 10:08 am Sariat wrote:
On 6/5/01 9:59 am Foomer wrote:
In other words, no, you can't.
it would be helpful

So would different icon sizes :o)

But Icons don't seem to have a whole lot of possibilities right now. Maybe we should just wait until it becomes the next thing on the "list" to add.
Try making the aura animated... in frame 1 it's there, in frame 2, it isn't, then lather, rinse, and repeat. Voila! Flickering transparency.

On 6/4/01 9:30 pm Sariat wrote:
well, im working on a dbz game, is there some way to make some icons transperent? i want an aura (bright glowing thing that surrounds ur body when powered up) is there any way this is possible?
well, im working on a dbz game, is there some way to make some icons transperent? i want an aura (bright glowing thing that surrounds ur body when powered up) is there any way this is possible?

You might consider using the rgb() proc to alter the icon's color.

Also, as someone else wrote, dithering can be a good solution for transparency if done well... check out the exclamation points in DMT for an example done well (in my humble opinion).
In response to Gughunter
Also, as someone else wrote, dithering can be a good solution for transparency if done well... check out the exclamation points in DMT for an example done well (in my humble opinion).

Humble. IMHO, bah! ;-)
In response to Sariat
On 6/5/01 10:08 am Sariat wrote:
On 6/5/01 9:59 am Foomer wrote:
In other words, no, you can't.
it would be helpful

It's uploaded in the Tutorials section as Dithered Transparencies. If there is anything you don't understand, please let me know. I'll improve the tutorial in any way I can.
In response to Shadowdarke
On 6/5/01 5:13 pm Shadowdarke wrote:
On 6/5/01 10:08 am Sariat wrote:
On 6/5/01 9:59 am Foomer wrote:
In other words, no, you can't.
it would be helpful

It's uploaded in the Tutorials section as Dithered Transparencies. If there is anything you don't understand, please let me know. I'll improve the tutorial in any way I can.

Hmm, I couldn't get it to work at all.
In response to Foomer
thank u, well, now, its off to making some icons!
In response to Foomer
On 6/5/01 6:59 pm Foomer wrote:

Hmm, I couldn't get it to work at all.

I'm trying to figure out the nuances of using HTML pages in BYOND. As soon as I do, I'll fix this tutorial. If you really want to read the documentation, you can view the dither.html file that is in the directory you download the tutorial to.

The rest of the code should work for you, showing you simple dithered overlays of varying degrees when you use the change_aura() verb.
In response to Shadowdarke
The Dithered Transparencies tutorial should work properly with release 292. Let me know if it doesn't.