Shake script
|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
11-16-2009 09:54
I have some experience creating scripts in SL but I am at a lose on where to start making this one. I have created a tree and I want it to blow in the wind. I have seen this effect before in a tree and some called it a "shake" script. Can someone point me in the right direction to create this script or have a template I can look at?
Thanks, JulieAnne
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
11-16-2009 09:58
You sure it's a script and not flexies?
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!! - Go here: https://jira.secondlife.com/browse/SVC-3895- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
11-16-2009 10:00
From: Sindy Tsure You sure it's a script and not flexies? yes, I saw the script inside the prim....the prim I was looking at was the shadow of the tree and not the tree itself. If that makes a difference?
|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
11-16-2009 10:02
I like your comment "Will script for shoes!" saw it later on and made me laugh.
|
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
|
11-16-2009 10:10
I guess you could do something similar to how furry tails usually work. They're flexi and have a script that tweaks the position and/or rotation and causes them to twitch a bit. Not sure I'd call that blowing in the wind, though.. Dunno - maybe somebody else does here.. From: JulieAnne Rau I like your comment "Will script for shoes!" saw it later on and made me laugh. 
_____________________
Sick of sims locking up every time somebody TPs in? Vote for SVC-3895!!! - Go here: https://jira.secondlife.com/browse/SVC-3895- If you see "if you were logged in.." on the left, click it and log in - Click the "Vote for it" link on the left
|
Rolig Loon
Not as dumb as I look
Join date: 22 Mar 2007
Posts: 2,482
|
11-16-2009 10:21
You can certainly make the tree's prims flexi and give them a minimal response to wind to get a shake effect. It's fairly convincing. You could also put an animated texture on the prims so that the leaves and small branches appear to move in the breeze but the tree trunk doesn't.
_____________________
It's hard to tell gender from names around here but if you care, Rolig = she. And I exist only in SL, so don't ask....  Look for my work in XStreetSL at 
|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
11-16-2009 10:29
Thank Rolig, thats a good idea 
|
jeaniesing Trilling
Loves to animate & script
Join date: 21 Oct 2006
Posts: 61
|
11-16-2009 18:17
The shaking shadow is just a bit of a texture rotation now and again.... it have anything to do with the tree really...
I have created moving prims in trees by having child prims move away from their position and back.... distance and direction of the move (X and Y Axes only) is based on data from llWind grabbed in a timer event.... sculpted parts moved that way, flexis had "wind" influence..... but I never totally finished the script so I am of little use other than offering advice
_____________________
  Pinastri/113/171/30
|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
11-17-2009 10:35
ok, I never knew there was an llwind ... I guess I'll have to do more reading if no one can provide me a template. I appreciate everyones help  JulieAnne
|
JulieAnne Rau
Curious Girl
Join date: 21 Jun 2007
Posts: 201
|
11-18-2009 09:40
default {
state_entry() { llApplyImpulse(llWind(ZERO_VECTOR)/35,TRUE); llResetScript(); }
}
Here is my attempt to create the script I mentioned. It compile ok but I can't see any movement of wind?? Did I miss something? I am using a 2X2X0.02 box so that its flat and looks like a shadow, I thought it should move the box in the x axis at least some???
JulieAnne
|