llGetLinkPrimitiveParams bug

Tips and discussions about using OpenSim
User avatar
Zuza Ritt
Posts: 235
Joined: Mon Dec 24, 2012 10:25 pm
Has thanked: 204 times
Been thanked: 308 times
Contact:

Re: llGetLinkPrimitiveParams bug

Post by Zuza Ritt » Tue Feb 28, 2017 8:33 pm

I am no scripter, but I am used to do things effectively. Anyone who is willing read the manuals and use proper tools for desired functions and do things effectively too, can use this:

Code: Select all

llSetLinkAlpha (LINK_SET, 0.0, ALL_SIDES);


sets linked object to transparent and

Code: Select all

llSetLinkAlpha (LINK_SET, 1.0, ALL_SIDES);
sets linkset for non-transparent.

Full script could be:

Code: Select all

default

{
    
    state_entry()
    {
      llSetLinkAlpha (LINK_SET, 0.0, ALL_SIDES); //transparent when rezzed
      llSetText("I always RTFM", <1.0, 0.0, 0.0>, 1.0); 
    }

    touch_start(integer detected_number)

 {
      llSetLinkAlpha (LINK_SET, 1.0, ALL_SIDES); //non-transparent after click
      llSetText("What about you?", <1.0, 0.0, 0.0>, 1.0); 
    }


 }
    
Using PRIM_ALPHA_MODE, switching alpha modes for transparency of whole object is IMHO a mistake, because some creators (like me) create their "transparent" textures "fully colored," which means my texture is transparent in some parts and only in Alpha blending mode, and fully non-transparent in every other mode.
Feel free to try transparency with my trees and plants at 21strom.
It is best solution for me and my customers because it looks much much better and there are no blurry edges between transparent and non-transparent (technically non-existing:) part of texture.
I live among the trees. You are invited too:) Visit 21strom.
My Kitely Market. 21strom webpage.
User avatar
Mike Lorrey
Posts: 218
Joined: Sun Sep 04, 2016 5:40 pm
Has thanked: 52 times
Been thanked: 123 times

Re: llGetLinkPrimitiveParams bug

Post by Mike Lorrey » Wed Mar 01, 2017 1:27 am

Zuza Ritt wrote:I am no scripter, but I am used to do things effectively. Anyone who is willing read the manuals and use proper tools for desired functions and do things effectively too, can use this:

Code: Select all

llSetLinkAlpha (LINK_SET, 0.0, ALL_SIDES);
Okay I suppose I need to say this again: This isn't about a function to SET alpha, it is about a function to GET the current alpha of an object.
Post Reply