Game Development Community

PC_COLOR_KEYS or PC_SIZE_KEYS ?!?!?!?!?

by Anthony Rosenbaum · in Torque Game Engine · 10/22/2001 (12:49 pm) · 4 replies

Every since I made a mods for tribes 2 I wondered about the the particle systems how limited they are.
I see in the ParticleData class that the variable for the arrays is as followed:
ColorF colors[ParticleEngine::PC_COLOR_KEYS];
F32 sizes[ParticleEngine::PC_SIZE_KEYS];
F32 times[4];

now I see the limit on how many "times" can hold, by the way, would changing 4 to a bigger number for a longer effect mess up any thing?, but I can't find where PC_COLOR_KEYS or PC_SIZE_KEYS is defined. . .I am new to programming but if some one could tell me where it is at and if I could alter those?
Thansk Anthony

#1
10/22/2001 (10:22 pm)
bump
#2
10/23/2001 (9:02 am)
The particle constants are defined in game/fx/particleEngine.h (1.1). Pretty easy to find... just do a global search. You need to get some better tools Anthony :)

Took a quick look at the code and didn't see any reason why you couldn't increase those numbers. The code needs to be cleanup up though, I noticed a number of places where it was ignoring the constants and using hard-coded numbers (like looping 0 -> 3). Very lame... another item for the task list.
#3
10/23/2001 (11:04 am)
yeha I found it earlier too . . .I do need a some better tools . . . but increasing it would be bad. . .like the number doesn't have to be power of 2
#4
10/23/2001 (2:20 pm)
I didn't see any problems with increasing it to non-power of two values. You would have to correct the hard-coded references though.