Jump to content

Recommended Posts

Hi! Is it possible to animate light texture option in the features tab with script and how?

Not just flickering, I want to use gif texture.

Edited by ainst Composer

Share this post


Link to post
Share on other sites

You can manipulate the PRIM_GLOW value easily enough using llSetLinkPrimitiveParamsFast with the link number of what happens to be the bulb or light-emitting surface to simulate flickering, and most of the other items accessed on the features tab can also be set in this way. Play around on the features tab with different values until you know what you want to do with the values, then have a look at the function I described in the LSL Portal page of the wiki.

  • Like 1

Share this post


Link to post
Share on other sites
1 hour ago, Profaitchikenz Haiku said:

You can manipulate the PRIM_GLOW value easily enough using llSetLinkPrimitiveParamsFast with the link number of what happens to be the bulb or light-emitting surface to simulate flickering, and most of the other items accessed on the features tab can also be set in this way. Play around on the features tab with different values until you know what you want to do with the values, then have a look at the function I described in the LSL Portal page of the wiki.

So can I animate the texture of light or not? and where is the right wiki page? i dont want it to blink, i need to animate texture. like a cinema projector for example.

Edited by ainst Composer

Share this post


Link to post
Share on other sites

Interestingly, there is no way to specify the texture, FOV, Focus or Ambience other than by using the edit floater. Nothing on the right hand side of the point light section appears in the list of prim params that can be set by script.

GIF's aren't going to help here because SL doesn't support them. Animated Gifs have to be converted outside of SL into a single image comprising sections that a script then animates. I think you might have to raise a Jira on this and ask Linden if there are plans to make these elements of the features tab available to scripting.

Share this post


Link to post
Share on other sites

I haven't tried this but perhaps you could use the media on a prim texture as the light texture.

 

Edited:

I tried it but unfortunately it doesn't work'....

Edited by Christhiana

Share this post


Link to post
Share on other sites

I played around with it and was impressed, it projects whatever the texture is onto other surfaces. If LL do get round to making it accessible to scripting it will be most useful. The best workaround to achieve the OP's requirement has been posted by Qie in the scripting forum.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×