|
Solanghe Sarlo
Gypsy Free Thinker
Join date: 19 Jul 2006
Posts: 644
|
11-06-2007 10:37
I posted a problem I'm having with a flame script but didn't really get any help so I'm gonna try again....
I am trying to make a simple candle flame. The flame script I have makes the texture on the prim wick spin. I was just told by a scripter that I need a different type of script?
So, can someone please tell me where I can aquire a copy/trans script. Or, if anyone is interested, I would be willing a reasonable fee for someone to create if for me.
Please help!
Thanks,
Sol
_____________________
The key to a contented life: Figure out who you are, what you are, fix what you can and make peace with the rest.
|
|
Pale Spectre
Registered User
Join date: 2 Sep 2005
Posts: 586
|
11-06-2007 11:15
I'm no expert with animating textures but I'll give it a stab.  Does your texture carry several frames? For the sake of example lets assume it has 5 horizontal frames and 1 vertical frame. This is your script from before with all its original comments taken out and mine put in: integer animOn = TRUE; list effects = [LOOP]; // I have removed SMOOTH from here as this makes the frames slide past rather than step past. integer movement = 0;
integer face = ALL_SIDES; integer sideX = 5; // 5 horizontal frames integer sideY = 1; // 1 vertaical frame float start = 0.0; float length = 0.0; float speed = 10.0; // this is the speed or FPS (frames per second)
initAnim() { if(animOn) { integer effectBits; integer i;
for(i = 0; i < llGetListLength(effects); i++) { effectBits = (effectBits | llList2Integer(effects,i)); }
integer params = (effectBits|movement); llSetTextureAnim(ANIM_ON|params,face,sideX,sideY,start,length,speed); }
else { llSetTextureAnim(0,face,sideX,sideY,start,length,speed); } }
default { state_entry() { initAnim(); } }
Without the flame texture you're using no one else can test this for you but it works for me on a ply-wood textured cube - looks rubbish as a candle flame though.  Reference: llSetTextureAnim:  Original post: 
|
|
Solanghe Sarlo
Gypsy Free Thinker
Join date: 19 Jul 2006
Posts: 644
|
11-06-2007 13:09
*HUGS PALE* Thank you for your help! I will try it later and will let you know how it goes.  Also, thank you for the Wiki reference too!
_____________________
The key to a contented life: Figure out who you are, what you are, fix what you can and make peace with the rest.
|
|
Solanghe Sarlo
Gypsy Free Thinker
Join date: 19 Jul 2006
Posts: 644
|
11-06-2007 17:04
Hi Pale, Well, it didn't work.  *sigh* Thank you for your help though. = ) Sol
_____________________
The key to a contented life: Figure out who you are, what you are, fix what you can and make peace with the rest.
|
|
CCTV Giant
Registered User
Join date: 2 Nov 2006
Posts: 469
|
11-07-2007 06:58
I have a circular rotation texture script that I can give you in world -- I am EST US if you want to hit me up after work 
|
|
Mereille Despres
Registered User
Join date: 5 Sep 2007
Posts: 79
|
11-07-2007 11:43
Hi CC, I managed to meet up with Solanghe last night. It turns out that the effect he was really wanting wasn't a rotating texture at all. The candle he wanted to duplicate was actually a particle system textured with a single-frame flame texture.
I have him on the right track now I think.
|