Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Water boiling particles?

Laki Beaumont
Registered User
Join date: 11 May 2009
Posts: 1
06-10-2009 12:19
Hey, would anyone happen to know how to create particles that I can put in a can (or whatever) 'filled with water' to make it look like the water is boiling?
Please respond asap. I need it for a lab experiment I'm creating.
Thanks.
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
06-10-2009 13:03
Steam is pretty easy. There is ''mist'' in the library.

For bubbles, you might want to use temp rez objects instead of particles.
_____________________
So many monkeys, so little Shakespeare.
Jesse Barnett
500,000 scoville units
Join date: 21 May 2006
Posts: 4,160
06-10-2009 14:18
And for everything you could possibly want to know about particles do a search for Particle Laboratory in world and pop in there.
_____________________
I (who is a she not a he) reserve the right to exercise selective comprehension of the OP's question at anytime.
From: someone
I am still around, just no longer here. See you across the aisle. Hope LL burns in hell for archiving this forum
Ryker Beck
Photographer & Designer
Join date: 23 Feb 2007
Posts: 57
06-10-2009 23:12
You could place a prim inside the can that has a water texture on it, stick a texture animation script inside (one that rotates the texture maybe?), and then another particle script that will emit a bubble texture.

Here's a link that might help: http://people.cc.ku.edu/~grobe/intro-to-LSL/index.html#texture
_____________________
Basement Desade
Registered User
Join date: 14 Jul 2006
Posts: 91
Boiling water
06-15-2009 00:58
Then there's always the old Siggy Romulus scripts. Might take a little tweaking, or you could just size/shape your container appropriately. Please note there are two scripts here; one for the bubbles, and one to turn them on and off. Oh, and you probably want to put the "in the pot" script in its own prim, inside the pot.


In the pot:
CODE


//=========================================================================================
// Bubble Jets for Super Hottub 1.1 --- Siggy Romulus Get_Toe() Scripts
//=========================================================================================
// Variables
//-----------------------------------------------------------------------------------------

integer JETS_CHANNEL = 55; //Channel for jets to communicate on
integer JETS_STATE = 0; // State of jets - 0 = off, 1 = on

key target;

//=========================================================================================
// Particle Systems
//-----------------------------------------------------------------------------------------


JetsOn()
{
llParticleSystem([
PSYS_PART_FLAGS, PSYS_PART_FOLLOW_SRC_MASK | PSYS_PART_FOLLOW_VELOCITY_MASK |
PSYS_PART_TARGET_POS_MASK | PSYS_PART_INTERP_SCALE_MASK | PSYS_PART_INTERP_COLOR_MASK,

PSYS_SRC_PATTERN,PSYS_SRC_PATTERN_ANGLE_CONE,

PSYS_SRC_BURST_RATE, 0.06,
PSYS_SRC_BURST_PART_COUNT, 8,
PSYS_PART_MAX_AGE, 3.00,
PSYS_SRC_ACCEL, <0.00, 0.00, 0.05>,
PSYS_SRC_BURST_RADIUS, 0.20,
PSYS_SRC_BURST_SPEED_MIN, .50,
PSYS_SRC_BURST_SPEED_MAX, 1.00,
PSYS_SRC_TARGET_KEY, target,
PSYS_SRC_INNERANGLE, 2.1,
PSYS_SRC_OUTERANGLE, 0.44,
PSYS_SRC_OMEGA, <8.00, 1.60, 1.00>,
PSYS_SRC_MAX_AGE, 0.0005,
PSYS_PART_START_SCALE, <0.03, 0.03, 0.03>,
PSYS_PART_END_SCALE, <.30, .30, .30>,
PSYS_PART_START_COLOR, <0.50, 0.50, 1.00>,
PSYS_PART_END_COLOR, <1.70, 1.70, 1.70>,
PSYS_PART_START_ALPHA, 1.0,
PSYS_PART_END_ALPHA, .0,
PSYS_SRC_TEXTURE, "132d4c1c-851e-4ef9-a382-7fdfad091bc7"
]);

llSay(JETS_CHANNEL, "JETS ON");
}
//---------------------------------------------------------------------------------------
JetsOff()
{
llParticleSystem([]);
llSay(JETS_CHANNEL, "JETS OFF");
}
//=========================================================================================
default
{
state_entry()
{
llListen(0,"","","");
llListen(JETS_CHANNEL,"","","");

llSay(JETS_CHANNEL,"get target"); // Request Key for the water object

JetsOff(); // Jets should start off
JETS_STATE = 0;

}

listen(integer channel, string name, key id, string msg)
{
// Water giving it's Key
if (0 == llSubStringIndex(msg, "waterobject "))
{
target = (llGetSubString(msg, 12, -1));
}

else if (msg == "jets off") // Direct commands to turn on / off
{
JetsOff();
JETS_STATE = 0;
}
else if (msg == "jets on")
{
llSay(JETS_CHANNEL, "get target");
JetsOn();
JETS_STATE = 1;
}

if (msg == "JETS CHANGE") //switch command
{
if (JETS_STATE == 0) // Jets are off
{
llSay(JETS_CHANNEL, "get target"); // request key from water
JetsOn();
JETS_STATE = 1;
}
else if (JETS_STATE == 1) // Jets are on
{
JetsOff();
JETS_STATE = 0;
}

}
}
}


The switch:

CODE


//=====================================================================
// simple script to turn on jets -- requests jets change on and off.
//=====================================================================


integer JETS_CHANNEL = 55;

default
{
state_entry()
{
llSetColor(<0.4, 0.4, 0.0>, ALL_SIDES);
llListen(JETS_CHANNEL, "", "", "");
}

touch_start(integer total_number)
{
llSay(JETS_CHANNEL, "JETS CHANGE");
llSetColor(<0.9, 0.9, 0.0>, ALL_SIDES);
}

listen(integer channel, string name, key id, string msg)
{
if (msg == "JETS ON")
{
llSetColor(<0.6, 0.6, 0.0>, ALL_SIDES);
}

if (msg == "JETS OFF")
{
llSetColor(<0.4, 0.4, 0.0>, ALL_SIDES);
}
}
}