particles in front of white

Posted By: Denn15

particles in front of white - 09/27/13 14:56

particles in front of something white seems to turn invisible like in this screenshot:

http://imageshack.us/photo/my-images/43/511r.jpg/

thats a bit of a problem since most of the textures in my game are compoletely white, so i jsut wanted to know if there is a way to make the particles not turn invisible in front of white textures.
Posted By: sivan

Re: particles in front of white - 09/27/13 15:02

maybe you set its BRIGHT flag that results in additive blending, thus it can't be not white over white background.
Posted By: Denn15

Re: particles in front of white - 09/27/13 16:35

that fixed it. however now the particles are very dark in the edges and it doesnt look as good.

http://imageshack.us/photo/my-images/62/5aaj.png/

is there a way to make it look like before without the BRIGHT flag?
Posted By: sivan

Re: particles in front of white - 09/27/13 16:56

set their TRANSLUCENT flag and tweak their alpha to fade out.
Posted By: Denn15

Re: particles in front of white - 09/27/13 17:13

the TRANSLUCENT flag is already set and it is also fading out. is there anything else that can be done?

here is my code if it can help

Code:
function part3(PARTICLE* p)
{
	p.green = 0;
   p.red = 255;
   p.blue = 0;
   set(p, MOVE | LIGHT | TRANSLUCENT);
   p.alpha = 100;
   p.size = 30;
   p.gravity = 0;
   p.skill_a = 16; // fade factor
   p.event = p_fade;
}

Posted By: Superku

Re: particles in front of white - 09/27/13 17:27

Then you have to create a better particle bmap, for instance as follows


(probably not free to use)

and control the transparency with the alpha channel (do not add black to the flame texture).
Posted By: Dooley

Re: particles in front of white - 11/07/13 21:10

I'm wondering if there is a way to set a particle's draw layer. The sample in the manual seems to appear in front of everything else on my level...
Posted By: Nems

Re: particles in front of white - 11/07/13 21:29

overlay might help, it takes the first pixel top left and turns all of the same color transparent.
Posted By: Feindbild

Re: particles in front of white - 11/08/13 14:34

Don't use overlay. Use an alpha mask.
Posted By: Anonymous

Re: particles in front of white - 11/08/13 16:55

Like -Feindbild said just use a alpha channel. Here is my test scene and the particle tga I made for it.
https://drive.google.com/file/d/0B9Yxi-SUaV6QMEU0aG9LNExlUTg/edit?usp=sharing - Download to see no preview of .tga files
https://drive.google.com/file/d/0B9Yxi-SUaV6QUE5lTWVoWXV0SXc/edit?usp=sharing
https://drive.google.com/file/d/0B9Yxi-SUaV6QSTNoNEVSdk9oVXM/edit?usp=sharing
https://drive.google.com/file/d/0B9Yxi-SUaV6QZUZfbFdSdmtvQ2M/edit?usp=sharing

https://drive.google.com/file/d/0B9Yxi-SUaV6QLU8xZUxPd0lKcm8/edit?usp=sharing I Larger view

Un tweeked gimp file
https://drive.google.com/file/d/0B9Yxi-SUaV6QbnNPQW1Vd0w4R28/edit?usp=sharing
© 2024 lite-C Forums