载入中。。。 'S bLog
 
载入中。。。
 
载入中。。。
载入中。。。
载入中。。。
载入中。。。
载入中。。。
 
填写您的邮件地址,订阅我们的精彩内容:


 
Particle COLOR 粒子的颜色
[ 2007/6/24 21:10:00 | By: 梦翔儿 ]
 

Particle COLOR
----------------

The script in this example is:

default {
    state_entry() {    
        llParticleSystem( [
            PSYS_PART_START_COLOR,< 0.0, 1.0, 0.0 >,
            PSYS_PART_END_COLOR,  < 1.0, 0.0, 0.0 >,
           
            PSYS_PART_START_SCALE,< 3.0, 3.0, 0 >,
            PSYS_SRC_BURST_PART_COUNT,2, 
            PSYS_SRC_BURST_RATE,5.2, 
            PSYS_PART_MAX_AGE,5.0,  
            PSYS_SRC_PATTERN,PSYS_SRC_PATTERN_DROP,
           
            PSYS_PART_FLAGS, PSYS_PART_INTERP_COLOR_MASK 
        ] );
    }
}

(Ignore the middle section with SCALE, COUNT, RATE, AGE and PATTERN until later.)

COLOR < red, green, blue >:
        maximum:  <  1, 1, 1 >   (white, the default)
        minimum:   < 0.0, 0.0, 0.0 >  (black)
       

Particles in this example start green and end red.
例子中的粒子效果,从绿色开始到红色结束
The option to re-color particles, like all flags, is OFF by default.
改变色彩的粒子效果,默认�**乇盏摹�
To enable it, you must include the PSYS_PART_INTERP_COLOR_MASK as one of the PSYS_PART_FLAGS as shown above.   (No other flags are used in this example)
Particle color CAN be affected by nearby light sources.
粒子色彩效果,可能会影响周围的光源。
One of the most common particle options causes particles to
be 'full brightness'.   To add it to this script you would change the
flags line to be:
一个最常用的粒子效果,能使粒子成为高亮,用下面的命令,改变旗子:

            PSYS_PART_FLAGS, PSYS_PART_INTERP_COLOR_MASK  | PSYS_PART_EMISSIVE_MASK

See the example on FLAGS and MASKS for an explanation.
看例子中的旗子与蒙板效果
If you're not familiar with color vectors, it's helpful to know that:
red is <1,0,0>, green <0,1,0>, blue <0,0,1>
yellow is <1,1,0>, cyan <0,1,1> and magenta <1,0,1>
Pink is <1,0.5,0.75>, etc...
这个色彩值和网页中的定义是一样的呵。。。。
 
 
  • 标签:Particle COLOR second life lsl 
  • 发表评论:
    载入中。。。

     
     
     

    梦翔儿网站 梦飞翔的地方 http://www.dreamflier.net
    中华人民共和国信息产业部TCP/IP系统 备案序号:辽ICP备09000550号

    Powered by Oblog.