Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

how to make blinking stars in a picture

Ron Spitteler
Registered User
Join date: 30 Jan 2007
Posts: 165
03-21-2008 06:32
I have a picture (texture on a prim) on which i would like to add blinking star in the sky.

I suppose i need a script for it .... does anyone know where to get it?

Or are those jewelry-blibk scripts suitable for it?
Mrc Homewood
Mentor of Randomness
Join date: 24 Feb 2007
Posts: 779
03-21-2008 11:58
what you can do is kinda like a pic like a .gif but a sl version, i cant think of what the event is right now but it is a type of texture animation.

ill look in my scripts once i get on or im me in sl and ill give you an example


EDIT:

CODE

default
{
state_entry()
{
llSetTextureAnim(ANIM_ON | LOOP, ALL_SIDES,0,X,1,0,Z);
}
}

x = how many pics you have
Z = Speed
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-21-2008 15:47
the other method I sugested in your other thread of a second single layer containing only the bliking stars (the rest alpha) you would manipulate the transparency of the new layer like so

CODE

integer vBooOff;

default{
state_entry(){
llSetTimerEvent( 3.0 );//-- change to suit your speed
}

timer(){
llSetAlpha( vBooOff = !vBooOff, ALL_SIDES );
}
}

the first method is probably better, especially with different stars blinking in different 'frames'.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
ArchTx Edo
Mystic/Artist/Architect
Join date: 13 Feb 2005
Posts: 1,993
03-23-2008 13:14
You could do that with a particle script, place an invisible prim at the locations where you want the blinking star to be. I have a jewelry particle script that does this I can send you if you send me an IM.
_____________________

VRchitecture Model Homes at http://slurl.com/secondlife/Shona/60/220/30
http://www.slexchange.com/modules.php?name=Marketplace&MerchantID=2240
http://shop.onrez.com/Archtx_Edo
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-23-2008 19:20
another suggestion was made in the other forum with a similar threadt that I liked... create transparent spots on the main image for the twinkling stars and run another animated texture behind it, with patches of white, as they scroll behind it they'll create a (possibly cascading) twinkle, similar to some of the waterfall pictures seen in some Asian restaraunts... they were big in the seventies. to avoid alpha sorting problems the background animated patch should be centered on the same prim but slightly smaller
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -