Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

"invisibility" (SL patent protest Richard Stallman style)

Antagonistic Protagonist
Zeta
Join date: 29 Jun 2003
Posts: 467
08-28-2003 14:40
I am a firm believer in Open Source and especially the GPL. Therefore, I submit this script as my first of many protests against "patents" in SL.


To make a "wall of invisibility" :
Step 1 - preparing the object

You will need a "blank texture". The easiest way to get one is by simply selecting "blank" from the texture selection tool and save it to your inventory. Then rename it to something like "blank" or invis1".



Step 2 - making it "invisible"
Copy and paste the following script and put it in the contents folder as well.
CODE

<-- cut below-->
// global variables
string texture_a="invis1"; // use a "blank texture here. The easiest
// way to get it is by selecting the "blank"
// from the texture picker and then copying
// it to your inventory. Either call it
// "invis1" or change the value for texture_a
// to be the name you choose.

key texture_b="ffffffff-ffff-ffff-ffff-ffffffffffff";
// The above is a key for an "image not available" texture which is
// globally available. I chose it because it is simple and easy for
// just about any client to load.


// gloabl functions

// This is the function that makes an object "invisible"
invis()
{
llSetTexture(texture_a,ALL_SIDES);
llSetAlpha(0.0,ALL_SIDES);
llScaleTexture(500.0,500.0,ALL_SIDES);
llSetTexture(texture_b,4);
llSetTexture(texture_a,4);
llSetTexture(texture_a,2);
llSetTexture(texture_b,2);
}


default
{
state_entry()
{
invis(); // call the invisibility function on entry.
}
on_rez(integer i)
{
invis(); // Call it upon being rezzed :-)
}

}
<-- cut above -->

edit[/]-Just added the code tag.

And there you have it. Feel free to copy and distribute under the terms of the GPL ( http://www.gnu.org/copyleft/gpl.html )


SOFTWARE PATENTS = BAD IN RL = BAD IN SL
Rysidian Rubio
Ruby Red Head
Join date: 14 Jan 2004
Posts: 263
03-16-2004 17:57
wouldn't just uploading a blank texture (full alpha for whole image) and applying the texture to a prim work? does for me.

and it's alot easier...

unless i'm missing something here.
Remo Yossarian
Registered User
Join date: 15 Feb 2004
Posts: 121
03-23-2004 08:01
I think Antagonist is working on his (?) obfus'imacated skils, while denouncing software patents.

Ant,

Don't you need a debug state to call your texture_B?

maybe and if/else: if there is no texture A use texture B?

I see why you don't see more invisible objects out there: they are just too complicated to script.
The Hannibal
Junior Member
Join date: 25 Mar 2004
Posts: 5
03-29-2004 04:01
Or you could just use this script.

CODE

default
{
state_entry()
{
key owner = llGetOwner();
llWhisper(0,"Cloaking ready");
llListen(0,"",owner,"");
}

listen( integer channel, string name, key id, string message )
{
if( message == "cloak" )
{
llSetStatus(STATUS_PHANTOM, TRUE);
llWhisper(0,"Cloaking");
llSetAlpha(0,ALL_SIDES);
}
if( message == "uncloak" )
{
llSetStatus(STATUS_PHANTOM, FALSE);
llWhisper(0,"Uncloaking");
llSetAlpha(1,ALL_SIDES);
}
}
}
Ming Chen
Here since 0.4.1!
Join date: 3 Sep 2003
Posts: 524
03-31-2004 15:56
Sorry to tell you this "The Hannibal" But llSetAlpha Doesnt make it truelly invisible. still a 5 % transparancy. Last Time I Checked At Least. Correct Me If Im Wrong Please.
-=- Ming
_____________________
Jake Cellardoor
CHM builder
Join date: 27 Mar 2003
Posts: 528
04-07-2004 12:23
FYI, Antagonistic's script does more than simply create an invisible prim. The "cloak" trick makes a prim that renders the _things behind it_ invisible; if you are standing behind the prim, people in front of the prim can no longer see you. Objects behind the prim are hidden as well; a cloaking prim allows you to look "through" buildings at the ground beneath/behind.
Amandir Beckenbauer
Registered User
Join date: 22 Feb 2004
Posts: 18
04-12-2004 05:44
How does antagonistic's script do more? Unless it was considered a bug and fixed recently, all it does it make a prim invisible. Something that I can easily do with an all alpha texture. Standing behind, inside, or viewing myself from any angle through it doesn't change anything. Myself and objects are in full view.

edit. I witnessed an invisibility wall last night that hid avs and trees behind it. With renewed confidence I played with the script some more. No luck still. There is a texture named invis1 that's in the contents folder of the prim. All alpha image from gimp. What I see when it is rezzed/reset is a quick flash between the texture not found and the invis texture a few times as I would expect from viewing the invis() function. After that it settles on the invis texture for all sides but one, which still has the "texture not found" texture. Still no invisibility though.
Remo Yossarian
Registered User
Join date: 15 Feb 2004
Posts: 121
Re: "invisibility" (SL patent protest Richard Stallman style)
04-16-2004 12:27
From: someone
Originally posted by Antagonistic Protagonist

string texture_a="invis1"; // use a "blank texture here. The easiest
// way to get it is by selecting the "blank"
// from the texture picker and then copying
// it to your inventory. Either call it
// "invis1" or change the value for texture_a
// to be the name you choose.



I tried this last night, but I could not figure out how to copy the blank texture to my inventory. I also tried using "Blank Texture" (and some varients) but this diddnt work either.

How do you copy a texture from the texture picker?
Amandir Beckenbauer
Registered User
Join date: 22 Feb 2004
Posts: 18
04-26-2004 20:48
You don't. I'm not sure if you used to be able to or not. Just make an image in photoshop/psp/gimp that's all alpha. That worked for me in making a prim invisible at least, though not hiding things behind it.
Julian Fate
80's Pop Star
Join date: 19 Oct 2003
Posts: 1,020
04-28-2004 12:08
Some textures, depending on the permissions, can be copied from the picker. Make sure it shows the texture you want and to to the top menu. Select File > Save to Disk. I might have the exact labels wrong because I can't look at SL right now. After you save it, upload.

Caveat: This will not work with most textures you don't own but the Linden default blank texture (selectable with a button in the picker) should work fine for you.
Amandir Beckenbauer
Registered User
Join date: 22 Feb 2004
Posts: 18
04-30-2004 06:13
Interesting, thanks julian.
Maerl Underthorn
i love almonds
Join date: 27 Jun 2003
Posts: 370
05-03-2004 03:34
does this script work now since the updates? Ive tried many times, getting the prim to be invisible, but not cloaking everything behind it ..when i first started Sl darwin had a script that did this, but doesnt seem to want to work for me..is there something i missed?
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
05-03-2004 20:32
I never got the point of the script... I have a texture you just set on a prime that will blank out everything at least a little bit alpha behind it (including AV's).
Davo Greenstein
Dag from Oz
Join date: 22 Dec 2003
Posts: 150
05-03-2004 21:32
I'm pretty sure that the cloaking aspect of this thread was a bug that got fixed..I remember seeing suck windows where the av's were hidden but it is a distant memory.

I have a texture called aaaclear which is my most useful texture. I hate seeing what i call alpha lines onthe edges of prims that have areas of Alpha in them.

I constantly make side faces of picture frames etc clear to avoid the hated stepped default texture line.

And

If people see that they have fuzzy prim edges on wreas they thought were clear try setting the texture to 99.99 tiling to leave off the last pixel or 2 which SL engines seem to have trouble with.
Julian Fate
80's Pop Star
Join date: 19 Oct 2003
Posts: 1,020
05-04-2004 13:20
Texture invisibility still works (1.3.5) but I don't think this particular method has worked in quite a while.
Davo Greenstein
Dag from Oz
Join date: 22 Dec 2003
Posts: 150
05-05-2004 00:18
well just saw a sphere that rendered any av contained within invisible except for the attachments ??

is this the same thing...
Julian Fate
80's Pop Star
Join date: 19 Oct 2003
Posts: 1,020
05-05-2004 15:11
No, that's the working method. :)
McWheelie Baldwin
Registered User
Join date: 9 Apr 2004
Posts: 154
Working Method?
05-13-2004 06:55
Any hints or advice as to how the "working method" actually works? I have seen several objects in world that do this, but am curious as to how it works. I unserstand if it's a guru level secret. ;)

McW
Raphael Rutherford
Resident Resident
Join date: 26 Mar 2004
Posts: 236
05-26-2004 09:53
The invisibility trick still works !

On beautiful Kritana (sp?), there's a tube close to the telehub that causes the avatar to be invisible when entering. Looking from the inside out, objects outside has disappered. Funny enough, avatar attached objects is still visible.

I have to no avail tried the script listed here, and has neither been able to obtail any invisibility, other than a clear prim.

It would be nice if anyone could spread some light over this.

/RR
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
05-28-2004 07:33
you will note taht it also hides alpha prims.
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Remo Yossarian
Registered User
Join date: 15 Feb 2004
Posts: 121
06-03-2004 06:48
Apparently Invisibility is a closely guarded secret.

I know someone who is selling a few working Invis bubbles, I think he said he was charging 10k or so for them.

These do have the potential to be put to evil use (and they have been lol), which perhaps is a reason people are reluctant to make these publicly available here.
Antagonistic Protagonist
Zeta
Join date: 29 Jun 2003
Posts: 467
06-04-2004 12:08
Bah I thought they fixed the bug that made this possible. I'll figure out what the problem is and post the solution here when I do.
Baron Grayson
Vote for Pedro.
Join date: 23 May 2004
Posts: 43
06-07-2004 18:06
From: someone
Originally posted by Strife Onizuka
you will note taht it also hides alpha prims.



Do Av Detectors work at showing who is around though people may be invisible? This is offtopic but reading that it could be put to bad use inspired this as I love my privacy. I assume that all avs still show stats with detection devices.

Thank you,

Baron
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
06-14-2004 07:06
this invisibility trick is only visual it do not affect the info that a scan can gather (aaah if only...)
Julian Fate
80's Pop Star
Join date: 19 Oct 2003
Posts: 1,020
06-15-2004 10:41
Yes, Baron. Scanners and such will still pick them up, you can still walk into them or hear them, they will be a dot on your map, etc.

It's more like Predator-style invisibility. If they are still, and the surroundings are right, they will be very hard to see. However, there are still visual cues that can give them away and if they move they are easier to spot.
1 2