| 创新粒子效果,second life |
| 作者:梦翔儿 日期:2007-6-19 23:04:00 |
今天在sandbox看到有个家伙正在做把剑,拿上后,可以挥舞整套的剑法,太cool了。佩服地五体投地,什么时侯我才能达到这种水平啊!继续努力中。
=======================
Creating Particles - By Jopsy Pendragon - 2/15/2006
A Particle Display is comprised of:
一个粒子系统,包含:
a PRIM - any kind except trees 一个物品,除了树之外 a SCRIPT - which calls the llParticleSystem function 调用的是llparticleSystem函数 a TEXTURE (optional) - to be used for the particle 一个材质 an AVATAR - particles only exist if someone is there to see them. 一个可以看得见的形象 PRIMS: ROTATION affects some particle patterns. (Not all prims are created rotated the same way, SPHERE, TORUS, TUBE and RING are created turned sidways.) SIZE affects how far away a prim can be seen, big prims can be seen further away than small prims. A prim's particles won't be seen until the prim can be seen. 必须作用在可以看得见的物品上。
A prim can only have ONE particle display defined at a time. Adding another will just overwrite the previous display definition. 一个物元,只能加载一种效果,另一种效果将取代前一种效果
Particles are always created relative to the CENTER of their prim, 粒子效果,经常放在物元的中央
and for particles that are direction sensitive, the direction of spray is relative to "straight up" along the prim's Z axis. 具有方向敏感性
SCRIPTS:
llParticleSystem() is the main function that allows you to set any or all of the more than 20 different parameters that control particles. 这个主函数支持20多个参数去控制粒子效果
ting the script WILL NOT unset a prim's particle definition. You must a script to turn particles off, (or delete the prim) 必须创建一个脚本去停止粒子效果
The particle lab has a free script called "The Scrubber" that you can drop on prims to erase a particle definition. It will also reset/unset several other invisible attributes that a prim might have. PARTICLES are: FLAT - and are always perpendicular to the viewer's camera, never seen at an angle 变平?摄像垂直视角
PRIMS - they are not rezzed, physical or clickable TEMPORARY - each lasts up to 60 seconds 临时的,只能持继60'' RED/COLORED - like a side of a prim CLIENT-SIDE - they never create sim or network lag! (However, draw too many and they can slow down a player's computer) 然而多个效果的应用,将使玩家的电脑变慢
AVATARS: Avatars can only see around 4096 particles at a time total. (Not 4096 per prim!) Some avatars may see particles when other avatars do not! For a few reasons:
有一些形象可以看到效果,有一些不能,这是因为:
loser to a small prim with particles and sees it when the other player is too far away. 形象太小,看起来远了 e particles displays have an auto-off timer, which is can end up reset for some players but not others. More on this in the FLOW section. 有一个自动关闭时间,对有些人会自动reset,在动态的情况下。 |
