Transparent and shiny
|
|
Broccoli Curry
I am my alt's alt's alt.
Join date: 13 Jun 2006
Posts: 1,660
|
01-09-2008 12:29
Is there any way to get these two effects together?
I've tried using a window frame texture with an alpha channel, and it has the same effect as turning a blank prim slightly transparent - shiny disappears completely.
I have an idea that requires both reflectivity and semi-transparency... but can't figure out how to get them.
Has anyone achieved the effect?
_____________________
~ This space has been abandoned as I can no longer afford it.
|
|
Robin Sojourner
Registered User
Join date: 16 Sep 2004
Posts: 1,080
|
01-09-2008 13:07
Yep. As mentioned before, it requires a script.
IM me in world, and I'll drop a copy on you.
_____________________
Robin (Sojourner) Wood www.robinwood.com"Second Life ... is an Internet-based virtual world ... and a libertarian anarchy..." Wikipedia
|
|
Xhawkx Holden
Registered User
Join date: 1 Nov 2006
Posts: 86
|
01-09-2008 17:22
I just simulate the shiny in the texture itself...
|
|
Broccoli Curry
I am my alt's alt's alt.
Join date: 13 Jun 2006
Posts: 1,660
|
01-09-2008 23:16
From: Robin Sojourner Yep. As mentioned before, it requires a script.
IM me in world, and I'll drop a copy on you. I have a 'transparent and shiny' script that I think Torley dropped on me a while back. It worked fine until trying it on the latest Windlight client, and then the screen went completely nuts and I couldn't even log in unless I logged in with an old client to remove the prim. I'm not talking about a 'shiny texture' (already have one of those), I want the shiny reflective that Windlight gives - if that makes sense.
_____________________
~ This space has been abandoned as I can no longer afford it.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-10-2008 01:33
my understanding is that enabling prim transparency disables shiny... perhaps making the texture itself with a degree of transparency would overcome that, not sure. if doing it by script I assume they'd both have to be applied in the same call llSetPrimitiveParams( [PRIM_BUMP_SHINY, ALL_SIDES, 2, 0, PRIM_COLOR, ALL_SIDES, <1.0, 1.0, 1.0>, 0.5] );
you could change 2 to 0, 1, 2, or 3 (the shiny level) you can change 0.5 to any value between 0.0 and 1.0 (in scripts this is the level of opacity, NOT transparency)
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Broccoli Curry
I am my alt's alt's alt.
Join date: 13 Jun 2006
Posts: 1,660
|
01-10-2008 02:49
The script version didn't work, sorry  Opacity cancelled out the shiny just as if doing it manually. I've tried a texture I have with an alpha layer (a window frame) and that does just the same - ignore shiny. I'm trying to make a semi-reflective glass building. The closest I've gotten so far is the semi-transparent outside frame, then a plain shiny prim inside which gives the effect I'm looking for ... except you can't see through the plain shiny prim to inside, which is my goal. Is there a technical reason why you can't have transparent and shiny on the same surface, or is it just something that LL didn't think anyone would want so they decided for us that you couldn't, in a similar way to the 'Linden water reflection' being usable on prims?
_____________________
~ This space has been abandoned as I can no longer afford it.
|
|
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
|
01-10-2008 14:03
when you say script version, do you mean the one you had, or my quick call above? I may have made an assumption on how to go about it that wasn't true (I did say it was an assumption)... if it's the other one, nevermind.
as for a technical reason... maybe because they used a shared space for the alpha and shiny features? pure speculation. it could just be that openGL wants an opaque surface for addid shiny to..
_____________________
| | . "Cat-Like Typing Detected" | . This post may contain errors in logic, spelling, and | . grammar known to the SL populace to cause confusion | | - Please Use PHP tags when posting scripts/code, Thanks. | - Can't See PHP or URL Tags Correctly? Check Out This Link... | - 
|
|
Broccoli Curry
I am my alt's alt's alt.
Join date: 13 Jun 2006
Posts: 1,660
|
01-10-2008 14:26
From: Void Singer when you say script version, do you mean the one you had, or my quick call above? I may have made an assumption on how to go about it that wasn't true (I did say it was an assumption)... if it's the other one, nevermind. Your one doesn't do it, sorry. The one I had previously does NOT work in Windlight, and actually kills your viewer. DO NOT TRY unless you have a non-Windlight viewer to log in afterwards and delete your test prim, or are in a sandbox area with a fairly quick auto-return. I do not know what effect it has on those around you. **Edited - I removed the script because, after testing, discovered it had potential as a griefting tool with Windlight**
_____________________
~ This space has been abandoned as I can no longer afford it.
|