About Store Forum Documentation Contact



Post Reply 
Particles colours
Author Message
AndrewBGS Offline
Member

Post: #1
Particles colours
I'm having a hard time convincing particles to behave as I want them to.

Worst of all, they don't get the colour I want them to have.
They always seem to bee too "yellowish". Complete while looks like yellow in game, and now I'm trying a dark brown, but it's still some kind of yellow i'm getting.

I thought it's ambient or sun light, but changing those didn't make my particles less yellow. (blue and red worked well. But I can't get brown and white).

Any idea what I'm missing? Or if someone has those colours looking good in-game, could you tell me how you achieved that?

Edit: Why can't you have black particles? (or if you can, how?)
(This post was last modified: 12-08-2013 01:24 PM by AndrewBGS.)
12-08-2013 01:05 PM
Find all posts by this user Quote this message in a reply
Tottel Offline
Member

Post: #2
RE: Particles colours
I noticed something similar, and managed to change the colours by setting the Renderer.color_pallete to a custom texture.

However, even though the particles now have a different colour, I'm not sure what such a color_pallete texture is supposed to look like. Nor do I know how it's internally handled.. The texture that it uses by default seems to be embedded in the engine, and we can't see what it looks like.

Maybe Esenthel could give some extra info about this?

EDIT: Also, for the black particles: As far as I can tell, the particle colours get added when they overlap. So, you'll never get pure dark, if I'm not mistaken.

Again, can you provide some info, Esenthel? pfft
(This post was last modified: 12-08-2013 03:25 PM by Tottel.)
12-08-2013 03:24 PM
Find all posts by this user Quote this message in a reply
SamNainocard Offline
Member

Post: #3
RE: Particles colours
For getting color you want, black included,
make sure you uncheck "Palette Mode" in editor or Particles.palettle(false);

Also, check Color alpha.

Edit:
After engine update, my rain particle got yellow color too. I have set to Color(153,153,153,116) which is grey.

I'm using DrawParticle(), DrawParticleBegin(), DrawParticleEnd() by the way. Also it seems that DrawParticle()'s angle parameters seems to stutter with Time.time() after some minute.

Edit 2:
It seems Yellow Color Rain Particle is caused by D.hpRt(true); both in after and before update.
Still no idea about angle stutter.
(This post was last modified: 12-08-2013 06:07 PM by SamNainocard.)
12-08-2013 04:14 PM
Find all posts by this user Quote this message in a reply
AndrewBGS Offline
Member

Post: #4
RE: Particles colours
Big thanks to both of you, I'll try it out when I get home.
I would like to get black particles too actually... maybe Esenthel can help us out with that. But thanks a lot for the ideas!
12-09-2013 08:16 AM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #5
RE: Particles colours
Please try using blend mode for particles and not palette based.
12-10-2013 09:55 AM
Find all posts by this user Quote this message in a reply
Post Reply