|
Sofia Weir
Registered User
Join date: 5 Feb 2007
Posts: 26
|
06-17-2008 01:32
Hello
I am creating a HUD and I want the buttons to Glow when the user presses them. (Its a cool effect!) . I can adjust the Glow property of the prim when i edit it manually, but i havent found how to do this from a script. I mean you can control the alpha, the color but not the glow value..
Any ideas?...
Thanx
|
|
Atom Burma
Registered User
Join date: 30 May 2006
Posts: 685
|
06-17-2008 02:33
It's in the prim attributes, llsetglow I believe. I have been playing with the glow a lot, I made a 3 step neon sign using it. I think you may have to also use a texture switch as well, on touch. I really had to force the contrast on the 'on' and 'off' textures for the neon sign I made. And you really can't add more than a 8-12% on the glow, or it just turns into a big white blob. So it really is dependant on the contrast of the image it is glowing. So if you make a bright and dark version and throw in a switch it may be more effective. In fact you may not even have to script the glow on and off the difference may be so noticable just with an old fashioned texture switch.
|
|
Day Oh
Registered User
Join date: 3 Feb 2007
Posts: 1,257
|
06-17-2008 03:11
there is a constant, PRIM_GLOW, for use with llSetPrimitiveParams. If your compiler doesn't compile PRIM_GLOW, you can use 25 in its place Example From: someone default { touch_start(integer t) { llSetPrimitiveParams([PRIM_GLOW, ALL_SIDES, 1.0]); llSleep(0.5); llSetPrimitiveParams([PRIM_GLOW, ALL_SIDES, 0.0]); } }
|
|
Sofia Weir
Registered User
Join date: 5 Feb 2007
Posts: 26
|
Thanx
06-17-2008 05:45
Thanx guys that was really helpfull 
|
|
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
|
06-17-2008 08:10
Um, in the RC client, glow does not work on HUDs... does it?
|
|
Squirrel Wood
Nuteater. Beware!
Join date: 14 Jun 2006
Posts: 471
|
06-18-2008 00:18
Glow does *not* work on HUDs in the RC Client. At all. You can still set it though.
|