Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
|
07-08-2007 00:08
Wow, I can't believe there's still people digging up this thread! Guess the SL forums aren't quite dead after all. Random, you can pick it up at the location that Maddarya pointed out, at Lusk (142, 164, 27). The current version is 1.1b (very slight modification from 1.1a). Also, I've included the notecard and script right here (sorry about the lack of script formatting - I really hope they get tags working again on the forum). From: someone INVISIBILITY PRIM PUBLIC v1.1b by Beatfox Xevious last updated Mar. 22, 2006 -------------------------------------------------------------------------------- This script is free for anyone to copy and edit as they please. You can credit me if you really feel like it, but you don't have to by any means. I'm providing this because I occasionally hear of requests for such an item, and I know there's people out there who would charge exorbitant L$ for something that really isn't that hard to make (if you know how).
How It Works
SL has a few special system textures that are only accessible by UUID key and that possess properties which no other textures do. Namely, a prim using one of these textures is capable of rendering whatever avatar textures and textures containing alpha channels are inside or behind it completely invisible. Normal textures that do not contain alpha channels will remain untouched. This is useful for hiding part or all of an avatar while keeping non-alpha attachments visible. Great for creating digitigrade legs, skeletons, Rayman -- the sky's the limit!
Note that water and trees are alpha textures, and as such will be hidden by invisibility prims. Also, the sky behind such a prim may appear just a tad discolored. As of this writing, shiny/bumpy objects render correctly when behind invisiprims that use this script (this was not always the case).
How to Use
Simply place the "Invisibility Prim Public" script in whatever prims you want to make into invisiprims. It may take up to a minute for the invisibility effect to activate. Any copies you make of the prims will also contain the script automatically.
About the Refresh Script -- CHANGED IN v1.1
The invisibility textures can be a little quirky, and frequently they will make more than just avatars and alpha textures invisible. Something to do with the texture loading order -- I don't fully understand it myself. Anyway, the refresh script fixes that by automatically alternating between 2 different invisibility textures every 30 seconds. It's synchronized to the SL clock so that all copies of this prim (Invisibility Prim Public v1.1, NOT v1.0) will refresh at the same time. It's a good idea to leave the script unmodified, since if there are any other invisiprims in the current render-area that use the same invisibility textures but do not have the default refresh timing, the refresh may not work properly.
Have fun!
-Beatfox
// Invisibility Prim Public v1.1b // by Beatfox Xevious // last updated Mar. 22, 2006
init() { llSetPrimitiveParams([PRIM_BUMP_SHINY, ALL_SIDES, PRIM_SHINY_NONE, PRIM_BUMP_BRIGHT]); llOffsetTexture(0.468, 0.0, ALL_SIDES); llScaleTexture(0.0, 0.0, ALL_SIDES); llSetAlpha(1.0, ALL_SIDES); }
refresh() { llSetTexture("38b86f85-2575-52a9-a531-23108d8da837", ALL_SIDES); llSleep(30); llSetTexture("e97cf410-8e61-7005-ec06-629eba4cd1fb", ALL_SIDES); }
default { state_entry() { init(); llSetTimerEvent(5); } on_rez(integer start_param) { init(); }
timer() { if ((integer)llGetWallclock() % 60 < 10) { refresh(); } } }
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).
"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)." - mysterious system message I received after making off with Pony Linden
|
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
|
07-09-2007 07:48
From: Beatfox Xevious you can pick it up at the location that Maddarya pointed out, at Lusk (142, 164, 27). The current version is 1.1b (very slight modification from 1.1a). Beatfox, just curious how the invisibility prim interacts with occlusion culling? Back when 1.10 first came out with occlusion culling, I tried the invisibility prim with it and got unsatisfying results. With occlusion culling, the invisibility prim was invisible, but the viewer still recognized it as an object that could occlude other objects. As a result, nothing behind it was displayed. Did this get fixed in later versions of SL?
_____________________
Prim Composer for 3dsMax -- complete offline builder for prims and sculpties in 3ds Max http://liferain.com/downloads/primcomposer/
Hierarchical Prim Archive (HPA) -- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools. https://liferain.com/projects/hpa
|
Kyrah Abattoir
cruelty delight
Join date: 4 Jun 2004
Posts: 2,786
|
07-10-2007 02:28
nope cause it's how it's supposed to work.
_____________________
 tired of XStreetSL? try those! apez http://tinyurl.com/yfm9d5b metalife http://tinyurl.com/yzm3yvw metaverse exchange http://tinyurl.com/yzh7j4a slapt http://tinyurl.com/yfqah9u
|
Senuka Harbinger
A-Life, one bit at a time
Join date: 24 Oct 2005
Posts: 491
|
07-10-2007 13:19
From: Shack Dougall Beatfox, just curious how the invisibility prim interacts with occlusion culling? Back when 1.10 first came out with occlusion culling, I tried the invisibility prim with it and got unsatisfying results.
With occlusion culling, the invisibility prim was invisible, but the viewer still recognized it as an object that could occlude other objects. As a result, nothing behind it was displayed. Did this get fixed in later versions of SL? This is the intended function of the invisiprim. to hide avatars (and unintentionally hide anything with an alpha channel on the texture) if you just want to make a prim transparent use llSetAlpha(0.0,ALL_SIDES); in a script and it will make the prim completely transparent.
_____________________
My SLExchange shopTypos are forgiven; desecrating the english language with reckless abandon and necrophilic acts is not. The function is working perfectly fine. It's just not working the way you wanted it to work.
|
Shack Dougall
self become: Object new
Join date: 9 Aug 2004
Posts: 1,028
|
07-10-2007 14:58
From: Senuka Harbinger This is the intended function of the invisiprim. to hide avatars (and unintentionally hide anything with an alpha channel on the texture)
No, you misunderstood me. Before 1.10, if you made a 10x10x10 invisiprim, you could see non-alpha textures behind it. But in 1.10, I tested it and you could no longer see anything behind it because they were being clipped by the object occlusion algorithm.
_____________________
Prim Composer for 3dsMax -- complete offline builder for prims and sculpties in 3ds Max http://liferain.com/downloads/primcomposer/
Hierarchical Prim Archive (HPA) -- HPA is is a fully-documented, platform-independent specification for storing and transferring builds between Second Life-compatible platforms and tools. https://liferain.com/projects/hpa
|
Beatfox Xevious
is THOUSANDS OF PEOPLE
Join date: 1 Jun 2004
Posts: 879
|
10-04-2007 15:09
Sorry for the late response, Shack - I hardly ever read these forums anymore. Invisiprims will always apply occlusion culling, because they are actually treated as non-alpha textures by the renderer. This is why they're able to mask out alphas in the first place, as a matter of fact: they're drawn onto the Z-buffer along with all other non-alpha objects, so that when alpha textures are drawn at a later stage, the renderer doesn't draw them where an invisiprim (or any other non-alpha object) is shown to be "closer" in the Z-buffer. I doubt LL will change the occlusion behavior of invisiprims, since a) invisiprims are not an officially supported feature in the first place, and b) there's people out there who actually make use of this occlusion behavior as a way of "erasing" unwanted objects from their view. Besides, the vast majority of invisiprims seem to be fairly small in size, being used for high-heel shoes and other av-body-part-hiding applications, and thus their occluding behavior doesn't typically come into effect unless the camera is moved up very close to them.
_____________________
My Beatworks: Zephyr Chimes wind chimes, the KanaMaster Japanese kana tutor, and the FREE Invisibility Prim Public. Look for them at the Luskwood General Store in Lusk (144, 165).
"You have been frozen. You cannot move or chat. A pony will contact you via instant message (IM)." - mysterious system message I received after making off with Pony Linden
|