DB/ParticleColor: Difference between revisions

From wowdev
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
This table defines replacement colors for particles on creature and item models when specific appearances / textures are in use. For example, the model firefly.m2 has a default green glow on its abdomen, but values given in this table change the value to red (for Blacksting), blue, yellow etc. depending on which colour /textures the firefly is using.
This table defines replacement colors for particles on creature and item models when specific appearances / textures are in use. For example, the model firefly.m2 has a default green glow on its abdomen, but values given in this table change the value to red (for Blacksting), blue, yellow etc. depending on which colour / textures the firefly is using.


Particle colours are replaced if the model is using an appearance defined in [[CreatureDisplayInfo.dbc]] or [[ItemDisplayInfo.dbc]], and the ParticleColorID from those tables matches an ID value in a row of this database. Furthermore, the colour is only replaced on particles which have their ParticleColorIndex set to 11, 12 or 13. See [[M2/WotLK#Particle_emitters]]. A ParticleColorIndex of 11, 12 or 13 indicates whether the first, second or third Start, Mid and End colours in this table will be used by the particle.
Particle colours are only replaced if the model is using an appearance defined in [[CreatureDisplayInfo.dbc]] or [[ItemDisplayInfo.dbc]], and the ParticleColorID from those tables matches an ID value in a row of this database. Furthermore, the colour is only replaced on particles which have their ParticleColorIndex set to 11, 12 or 13. See [[M2/WotLK#Particle_emitters]]. A ParticleColorIndex of 11, 12 or 13 indicates whether the first, second or third Start, Mid and End colours in this table will be used by the particle.


The colours are supplied as 0xAARRGGBB encoded negative numbers. I do not believe (though not 100% certain) that the alpha values are relevant and the default alpha values of the particle may still be used.
The colours are supplied as 0xAARRGGBB encoded negative numbers. I do not believe (though not 100% certain) that the alpha values are relevant and the default alpha values of the particle may still be used.

Revision as of 15:16, 24 January 2016

This table defines replacement colors for particles on creature and item models when specific appearances / textures are in use. For example, the model firefly.m2 has a default green glow on its abdomen, but values given in this table change the value to red (for Blacksting), blue, yellow etc. depending on which colour / textures the firefly is using.

Particle colours are only replaced if the model is using an appearance defined in CreatureDisplayInfo.dbc or ItemDisplayInfo.dbc, and the ParticleColorID from those tables matches an ID value in a row of this database. Furthermore, the colour is only replaced on particles which have their ParticleColorIndex set to 11, 12 or 13. See M2/WotLK#Particle_emitters. A ParticleColorIndex of 11, 12 or 13 indicates whether the first, second or third Start, Mid and End colours in this table will be used by the particle.

The colours are supplied as 0xAARRGGBB encoded negative numbers. I do not believe (though not 100% certain) that the alpha values are relevant and the default alpha values of the particle may still be used.

Structure

Column Field Type Notes
1 ID Integer Corresponds to ParticleColorID in CreatureDisplayInfo.dbc or ItemDisplayInfo.dbc
2-4 StartColor Integer[3] 0, 1 or 2 used by particle depending on whether it has a ParticleColorIndex of 11, 12 or 13.
5-7 MidColor Integer[3]
8-10 EndColor Integer[3]

6.0.1.18179

struct ParticleColorRec {
  uint32_t m_ID;
  uint32_t m_start[3];
  uint32_t m_mid[3];
  uint32_t m_end[3];
};