Jump to content
D33SS3

HELP: Creating a HUD with Texture Changing and Face Visibility Toggle Switch

Recommended Posts

Hello everyone!

[ My knowledge with LSL Scripting is at a beginner level, so please bare with me! :) ]

Recently, I purchased a texture changing script from Renderworks, I'm not having trouble with creating a HUD with texture changes.

However, I was wondering if it was possible to add to the script an option to control the visibility of a particular face of a mesh and/or combine two faces for one on and off toggle.

 

Share this post


Link to post
Share on other sites

Welcome aboard.

You will want to start becoming familiar with the LSL wiki, specifically the section on Functions.  In this case, study the entries for llSetTexture ( and llSetLinkTexture ) and for llSetAlpha ( and llSetLinkAlpha ).  They will show you the proper syntax for getting the right texture on the right face and determining whether it's visible of transparent.  

While you are just learning, the easiest way to think of accomplishing many  things at once is to collect them into the same scope, so that they are all handled by the same decision, as in

if ( iON == TRUE)
{
    // do this
    // and this
    // and this
}

There are more compact ways -- much better ones -- of doing this ( take a look at llSetLinkPrimitiveParams in the wiki ), but get comfortable with the basic method first.  

Share this post


Link to post
Share on other sites
2 minutes ago, Rolig Loon said:

Welcome aboard.

You will want to start becoming familiar with the LSL wiki, specifically the section on Functions.  In this case, study the entries for llSetTexture ( and llSetLinkTexture ) and for llSetAlpha ( and llSetLinkAlpha ).  They will show you the proper syntax for getting the right texture on the right face and determining whether it's visible of transparent.  

While you are just learning, the easiest way to think of accomplishing many  things at once is to collect them into the same scope, so that they are all handled by the same decision, as in


if ( iON == TRUE)
{
    // do this
    // and this
    // and this
}

There are more compact ways -- much better ones -- of doing this ( take a look at llSetLinkPrimitiveParams in the wiki ), but get comfortable with the basic method first.  

Yay, thank you!

I will be doing the research right now!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...