Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

SCC sequinprim() texture effect. make gems and SHINY GLASS!!!!!

Chrysala Desideri
Scarlet Scriptrix
Join date: 4 Mar 2007
Posts: 65
02-14-2008 07:07
Happy accident while tring to make a "broken tv" texture anim with my neon texture.

trying different params, I noticed that my "CRT" had gone shiny inside with a certain setting.

Tried it on a sphere and was bown away.
^ ^
:::=O.o=:::
WW

Have fun making gems for your loved ones, right on valentines!

Love is the law, love under will.


EDIT: animating the texture is completely unneccessary, the simple ratio of repeats does the trick.


CODE



//Serious Cybernetics Corp. sequinprim() texture effect:


//makes flat, alpha'd surfaces shiny!
//makes the facets of rounded meshes shiny!
//wowzah!


//Hai2u! Heppi val'n'tain!
//dis be mah tecstur thang. dis be wehr de majik hapn!

sequinprim()
{
//i has a nee-ahn tecstur!

llSetPrimitiveParams ([PRIM_TEXTURE, ALL_SIDES, "34fce735-317f-f67e-6546-fc714e9a2d28", <100,0,0>, <0,0,0>, (DEG_TO_RAD*65.0)]);

//oh noes! dey be stealin' mah nee-ahn tecstur!

//discovered to be irrelevant to the effect// llSetTextureAnim(ANIM_ON | SMOOTH | LOOP, ALL_SIDES,0,0,1.0, 1,2.25);

}



default
{

state_entry()
{
//shinyshiny, happyhappy.
sequinprim();
//n-joy.

}


}




Chrysala Desideri
Scarlet Scriptrix
Join date: 4 Mar 2007
Posts: 65
02-14-2008 07:16
obviously, line breaks inserted by forum. ykwtd.

oh yeah, to really see how cool it is make it on a sphere, color it red or something and give it a slow llTargetOmega rotate.


Disco Never Died!

gonna try grayscaling (not grayscale, that other b/w deal.. forget the name) my neon tex to see if i can make it fully colorable... is blue as it stands.

hope this isn't just a fluke of my vid card!
Winter Ventura
Eclectic Randomness
Join date: 18 Jul 2006
Posts: 2,579
02-14-2008 08:32
It's not doing anything for me. Nothing "weird" anyways. Just the aliasing from the texture repeating so tightly.

I made a sphere, I made it hollow, hell I even tried setting it manually alpha... I'm just not seeing anything "shiny" about it. (even tried turning shiny on)

So far, the only way I know to make "Shiny transparency" is to make a shiny invisiprim.
_____________________

● Inworld Store: http://slurl.eclectic-randomness.com
● Website: http://www.eclectic-randomness.com
● Twitter: @WinterVentura
Chrysala Desideri
Scarlet Scriptrix
Join date: 4 Mar 2007
Posts: 65
02-14-2008 10:05
oh bleah. it does depend on vid card, and therefore useless.

ah well back to the drawing board.