Particle SCALE ÑÌ»ðЧ¹ûµÄÁ¿
×÷Õß:ÃÎÏè¶ù ÈÕÆÚ:2007-6-24 20:52:00
Particle SCALE
ÑÌ»ðЧ¹ûµÄ¶ÈÁ¿
----------------
The script in this example is:
ÏÂÃæÊǸöÀý×Ó

default {
    state_entry() {    
        llParticleSystem( [
            PSYS_PART_START_SCALE,< 4.0, 0.1, 0>,
            PSYS_PART_END_SCALE,  < 0.1, 4.0, 0>,
           
            PSYS_SRC_BURST_PART_COUNT, 2, 
            PSYS_SRC_BURST_RATE, 3.00, 
            PSYS_PART_MAX_AGE, 5.0,
            PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_DROP,
           
            PSYS_PART_FLAGS, PSYS_PART_INTERP_SCALE_MASK
        ] );
    }
}

(Ignore the middle section with COUNT, RATE, AGE and PATTERN until later.)
¿ÉÒÔºöÂÔµÄÖмä±äÁ¿£¬ÔÚ¼ÆË㣬ÂÊ£¬ÄêÁäºÍͼ°¸£¬ÒÔºó¡£

SCALE:
        maximum:  < 4.00, 4.00, 0 >
        default:     < 1.00, 1.00, 0 >
        minimum:   < 0.04, 0.04, 0 >  (*)

The 'z' part of the vector is ignored because particles are flat!
ºöÂÔZÖáÊÇÒòΪÁ£×ÓЧ¹ûÊÇÆ½ÃæµÄ¡£

Particles in this example start wide/short and end tall/narrow.

The option to resize particles, like all flags, is OFF by default.
¶Ô¸Ä±ä´óСµÄÁ£×ÓÊôÐÔ£¬ÈçÆì×Ó¡£Ä¬ÈÏÊ**رյġ£
To enable it, you must include the PSYS_PART_INTERP_SCALE_MASK as one of the
ΪÁ˼¤»îËü£¬Äã±ØÐë°üº¬¡£¡£¡£¡£¡£¡£ÏòÉϱßÏÔʾµÄÄÇÑù
PSYS_PART_FLAGS as shown above.   (No other flags are used in this example so this is very simple.)
ÔÚÕâ¸öÀý×ÓÖÐûÓÐÆäËüÆì×Ó£¬ËùÒÔÊǷdz£¼òµ¥µÄ¡£
(*) - Particles shorter or narrower than 0.04m seem to not be drawn at all... UNLESS at some point in the particles life it is both wider and taller than 0.04m, your milage may vary.
Á£×ÓЧ¹û£¬µ±¶ÌÕ­ÓÚ0.04m£¬ÕâÊDz»³äÐíµÄ£¬³ý·ÇÁ£×ÓЧ¹ûÖеÄһЩµã°üÀ¨¿íºÍ¸ßÓÚ0.04m£¬ÄãµÄmilage¿ÉÄÜ»á±ä´ó¡£
  • ±êÇ©£ºsecond life lsl particle scale 
  • ·¢±íÆÀÂÛ£º

      ´óÃû£º
      ÃÜÂ룺 (ÓοÍÎÞÐëÊäÈëÃÜÂë)
      Ö÷Ò³£º
      ±êÌ⣺
    Powered by Oblog.