|
Adam Ramona
Registered User
Join date: 5 Jan 2005
Posts: 56
|
02-09-2007 23:39
Transparency, in the editor, is measured 0 - 100, with 100 being fully transparent (I know the editor caps at 90). In script, llSetAlpha, or its llSetPrimitiveParams equivalent, use 0-1, with 0 being fully transparent. In other words, the ranges are flipped or inverted - is that the correct term?. What is the math for inverting my data similarly. For example, I get a number in the range 0 - 100, eg, 80 which is quite transparent, I divide it by 100 to get it in the 0 -1 range which gives 0.8 which is quite opaque - the opposite of what I want. How do I invert the range once it's been normalised to the 0-1 range? So that 0.9 becomes 0.1, 0.1 becomes 0.9 and so on? Apologies if this is a completely stupid question, my mind was "elsewhere" at school  Adam
|
|
Seifert Surface
Mathematician
Join date: 14 Jun 2005
Posts: 912
|
02-10-2007 00:59
1 - x
_____________________
-Seifert Surface 2G!tGLf 2nLt9cG
|
|
Adam Ramona
Registered User
Join date: 5 Jan 2005
Posts: 56
|
02-10-2007 01:44
Thankyou!
|
|
Lee Ponzu
What Would Steve Do?
Join date: 28 Jun 2006
Posts: 1,770
|
02-10-2007 08:48
Adam, Seifert has left the details as an exercise for the student. For example, 1 - 90 will not give you 0.1 as you might hope. (Details left as exercise for the student.) PS I used to teach high school math. If only I could go back and find all the artistic types who whined, "Why would I ever need math in real life.) 
|
|
Adam Ramona
Registered User
Join date: 5 Jan 2005
Posts: 56
|
02-10-2007 17:48
Thanks Lee, I am pretty stupid, but even I got what he meant  I know what you mean though. My son is going through that at the moment. Thing is, he gets it no problem, he just thinks it is "stupid". I keep telling him how I wish I'd paid attention now that I'm working in 3D and audio. Naturally, he loves music, and I keep telling him "math is music is math" but he doesn't believe me. He wants to drop it as soon as he can  It's more about recognising patterns, I guess, and exercising that thought process. Since I never did that, I have enormous trouble being able to extrapolate a simple formula from a simple pattern, such as the question I asked. As soon as someone like Seifert shows me the pattern, I'm like "aaah, of course" 
|