|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
| {{LSL Header}}
| |
| == Object ==
| |
|
| |
|
| Creation of a hologram based on the persistence of particles
| |
|
| |
|
| |
| == Script ==
| |
|
| |
|
| |
| <lsl>
| |
| ////////////////////////////////////////////////////////////////////
| |
| //
| |
| // Hologram
| |
| // by Bey Root
| |
| // Originally Written 11/05/2011
| |
| // code released to the public domain.
| |
| //
| |
| ////////////////////////////////////////////////////////////////////
| |
|
| |
|
| |
| //==================================================================
| |
| // INSTRUCTIONS
| |
| //==================================================================
| |
| //
| |
| // -Create a cube
| |
| // -Drop this script
| |
| //
| |
| /////////////////////////////////////////////////////////////////////
| |
|
| |
| // Artemis "f81e6b36-7c87-9fff-cc1f-377b65aaa948"
| |
| // Colonne "bfdaef11-8401-b1b2-bb28-f4d93b00ea4e"
| |
|
| |
| list particle_parameters=[];
| |
|
| |
| default {
| |
| state_entry() {
| |
| llSetPrimitiveParams([ PRIM_SIZE, <0.01, 0.5, 3.0>,
| |
| PRIM_COLOR, ALL_SIDES, <1., 1., 1.>, 0.0 ]);
| |
|
| |
| particle_parameters = [
| |
| PSYS_SRC_TEXTURE,"f81e6b36-7c87-9fff-cc1f-377b65aaa948",
| |
| PSYS_PART_START_SCALE, <2.2, 3.0, FALSE>,
| |
| PSYS_PART_START_COLOR, <1.0, 1.0, 1.0>,
| |
| PSYS_PART_START_ALPHA, (float) 1.0,
| |
|
| |
| PSYS_SRC_BURST_PART_COUNT, (integer) 1,
| |
| PSYS_SRC_BURST_RATE, (float) 28.,
| |
| PSYS_PART_MAX_AGE, (float) 30.,
| |
|
| |
| PSYS_SRC_PATTERN, (integer) 1,
| |
|
| |
| PSYS_PART_FLAGS,
| |
| PSYS_PART_EMISSIVE_MASK
| |
| ];
| |
|
| |
| llParticleSystem( particle_parameters );
| |
|
| |
| }
| |
| on_rez(integer param) {llResetScript();}
| |
| changed(integer mask) {if(mask & CHANGED_OWNER) {llResetScript();}}
| |
| }
| |
| </lsl>
| |
| {{LSLC|Library|Hologram}}
| |