Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

sparkling texture?

Tere Karuna
Registered User
Join date: 4 Jul 2004
Posts: 159
09-06-2006 14:44
Other day I bought good friend a cute lil necklace. When she wore it I noticed the diamonds had illusion of sparkling like light fractured off them. At first I thought it was billions (ok not billions) of tiny prims that caused the illusion; but it wasnt. It was a single textured prim and only script in it was for bling (which was turned off.)

I know how make same effect with a texture flipping script or particles; but a project I got planned wont allow that. It has to be one single texture and no scripts.

I can make clothes and textures np but sadly Im not a artist :/ Every skill Ive picked up is cause wanted to do things in SL, so went and learned what needed. Could one ya artist out there direct me to a tutorial or even a pic I can study that will teach me how to pull off this illusion.
_____________________
"ooohhhh we didnt know what we had till it was gone;
they paved secondlife and put up a shoping mall,
oooooo, ba ba ba....."
Kris Ritter
paradoxical embolism
Join date: 31 Oct 2003
Posts: 6,627
09-06-2006 14:47
From: Tere Karuna
Other day I bought good friend a cute lil necklace. When she wore it I noticed the diamonds had illusion of sparkling like light fractured off them. At first I thought it was billions (ok not billions) of tiny prims that caused the illusion; but it wasnt. It was a single textured prim and only script in it was for bling (which was turned off.)

I know how make same effect with a texture flipping script or particles; but a project I got planned wont allow that. It has to be one single texture and no scripts.

I can make clothes and textures np but sadly Im not a artist :/ Every skill Ive picked up is cause wanted to do things in SL, so went and learned what needed. Could one ya artist out there direct me to a tutorial or even a pic I can study that will teach me how to pull off this illusion.


are you SURE it wasn't the bling script? because once a particle has a state, it's permanent, even if the script is not running, until you reinitialise the particle function with different settings in the same prim. You can even entirely delete the script.
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
09-06-2006 18:10
What Kris said. Particle emission is attribute of a prim, so once it's set the script which created it is obsolete.

If the necklace is copy/mod, you can test it by rezzing a copy, dropping a script inside that'll kill the particle emission from a prim (if there's still any), and see if the sparkle effect is still there. o.O

edit: a script to reset particle emitter:
CODE

default {

state_entry() {

llParticleSystem([]); //Stop making particles
llRemoveInventory( llGetScriptName() ); // remove this script automatically
}
}
Tere Karuna
Registered User
Join date: 4 Jul 2004
Posts: 159
09-06-2006 20:28
From: Kris Ritter
are you SURE it wasn't the bling script?


Sadly thats not the answer to the mystery. Tested to make sure and the bling particle is not culprit. If helps zero in on effect Im looking for... if place AV on a pose ball to prevent any movement the shimmer effect ends.
_____________________
"ooohhhh we didnt know what we had till it was gone;
they paved secondlife and put up a shoping mall,
oooooo, ba ba ba....."
Eispoo Vezina
Registered User
Join date: 6 Jul 2006
Posts: 26
09-06-2006 21:18
From: Tere Karuna
Other day I bought good friend a cute lil necklace. When she wore it I noticed the diamonds had illusion of sparkling like light fractured off them. At first I thought it was billions (ok not billions) of tiny prims that caused the illusion; but it wasnt. It was a single textured prim and only script in it was for bling (which was turned off.)


Sometimes when you place a gem texture on a prim (and the texture is actually made for oval or diamond face prim) it will not wrap the prim nicely. No matter how much you try and configure the Repeats per Face, Rotation, Offset....you wont get the same look of the actual texture your placed on it.

What I do is create a duplicate of the prim with same texture, and configure it slightly so that it covers the open areas that is shown on the 1st prim. I set it back in place making sure that you can't really see that theres actually 2 prims. So now I have a nicely covered prim. Since there are 2 prims covering the same area, you have a sparkle effect. You could essentially place several prims using this method to gain a desired effect.

If you want to be absolutely sure that this is the method the creator used, you'll have to count all the prims. When you click on the jewel, you'll only be able to click on 1, which will make it seem like theres only 1 there....since the duplicate is in the exact place using the exact texture.

Hope this helps ;)



EispoO
SunenRec Ayoob
Registered User
Join date: 29 Dec 2004
Posts: 61
Another possible solution
09-06-2006 21:23
I doubt this is the same method used in the object you're describing (as sitting on a poseball shouldnt make the effect stop) but it may be a solution you can use in the project you're planning.

It uses a single texture and a texture animation script (which can be removed after the animation has been started).

Here's the script...


CODE
 
default
{
state_entry()
{
llSetTexture("f54a0c32-3cd1-d49a-5b4f-7b792bebc204", ALL_SIDES); // Set all faces to transparent
llSetTexture("1268903b-1c4b-064a-dbe7-fcda510c4955", 0); // Set Face 0 to the sparkle animation texture
llSetTextureAnim(ANIM_ON | LOOP, 0, 4, 4, 0, 15, 24); // Cycle through the frames of the sparkle animation
}
}


The texture used is a solid white 256 x 256 image with an alpha channel that looks like the image below...



(the bottom half of the alpha channel is left blank to create a 'pause' between sparkles)

The above image was created in Photoshop using the Lens Flare filter at varying intensities to create a series of 64x64 images, then copying and pasting each of those into a single 256x256 image as a series of frames. You can use the Smudge tool along with a Sharpen filter/Brightness&Contrast to create a more spikey effect, or a little Gaussian Blur to create a softer 'glint' effect.

Hope this helps,

Sun.
Tere Karuna
Registered User
Join date: 4 Jul 2004
Posts: 159
09-06-2006 23:25
Thanx for all the suggestions :) I figured out the effect and want to kick myself for not seeing it sooner. I was really wearing my dunce cap. It was just combo of texture with shininess settings. Sadly wont work for what I wanted do; which was on add a shimmering effect on clothing.
_____________________
"ooohhhh we didnt know what we had till it was gone;
they paved secondlife and put up a shoping mall,
oooooo, ba ba ba....."