Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

particles PSYS_SRC_PATTERN_DROP not working?

Anna Gulaev
Registered User
Join date: 25 Oct 2006
Posts: 154
05-11-2007 12:12
I tried to change this particles code, which uses PSYS_SRC_PATTERN_ANGLE but doesn't actually specify an angle...

CODE
llParticleSystem([PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK | PSYS_PART_FOLLOW_VELOCITY_MASK | PSYS_PART_INTERP_COLOR_MASK,
PSYS_PART_START_ALPHA, 1.,
PSYS_PART_END_ALPHA, 0.,
PSYS_PART_START_SCALE, <.15,.6,0>,
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE,
PSYS_PART_START_COLOR, <red, green, blue>,
PSYS_PART_END_COLOR, <red, green, blue>,
PSYS_SRC_BURST_SPEED_MIN, 0.01,
PSYS_SRC_BURST_SPEED_MAX, 0.01,
PSYS_SRC_BURST_RATE, 0.04,
PSYS_PART_MAX_AGE, 4.]);


to this, which uses PSYS_SRC_PATTERN_DROP and omits the burst speed...

CODE
llParticleSystem([PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK | PSYS_PART_FOLLOW_VELOCITY_MASK | PSYS_PART_INTERP_COLOR_MASK,
PSYS_PART_START_ALPHA, 1.,
PSYS_PART_END_ALPHA, 0.,
PSYS_PART_START_SCALE, <.15,.6,0>,
PSYS_SRC_PATTERN_DROP,
PSYS_PART_START_COLOR, <red, green, blue>,
PSYS_PART_END_COLOR, <red, green, blue>,
PSYS_SRC_BURST_RATE, 0.04,
PSYS_PART_MAX_AGE, 4.]);


And now I get these script errors:

PSYS error: rule 5 error, PSYS_PART_START_COLOR needs vector data

It doesn't matter where in the list I put PSYS_SRC_PATTERN_DROP. The error is with that rule (if I move it to be rule #7, the error is for rule 7), but complains about PSYS_PART_START_COLOR, which of course still has it's vector data.

Change back to PSYS_SRC_PATTERN_ANGLE and there's no error.

Any clues?

Edit: I'll bet it's because I forgot PSYS_SRC_PATTERN. Will test that...

Another Edit: Yep, it was the missing PSYS_SRC_PATTERN. Unfortunately, I still get no particles. No error, but no particles, either.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
05-11-2007 12:39
Yep. You omitted the rule ID in the second script.
Anna Gulaev
Registered User
Join date: 25 Oct 2006
Posts: 154
05-11-2007 15:59
I fixed the error by inserting the missing PSYS_SRC_PATTERN. Unfortunately, I get no particles out of this. No errors but no particles.

CODE
llParticleSystem([PSYS_PART_FLAGS, PSYS_PART_EMISSIVE_MASK | PSYS_PART_FOLLOW_VELOCITY_MASK | PSYS_PART_INTERP_COLOR_MASK,
PSYS_PART_START_ALPHA, 1.,
PSYS_PART_END_ALPHA, 0.,
PSYS_PART_START_SCALE, <.15,.6,0>,
PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_DROP,
PSYS_PART_START_COLOR, <red, green, blue>,
PSYS_PART_END_COLOR, <red, green, blue>,
PSYS_SRC_BURST_RATE, 0.04,
PSYS_PART_MAX_AGE, 4.]);
Anna Gulaev
Registered User
Join date: 25 Oct 2006
Posts: 154
05-13-2007 12:35
Bump.

Any clue why I'm not getting any particles out of the fixed script?