Re: llGetLinkPrimitiveParams bug
Posted: 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:
sets linked object to transparent and
sets linkset for non-transparent.
Full script could be:
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.
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);
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);
}
}
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.