Hello everyone! I need some advice for a little trouble I have using math operators. Right now I am developing an interface which uses a distorted hotspot as a nadir logo, but, because it is somewhat distracting I just want it to appear completely (alpha="1") when camera looks at nadir, fading away as camera looks away from nadir. Right now I'm trying with this code:
<events
onviewchange="set(hotspot[nadirlogo].alpha, get(view.vlookat));"
/>
It changes alpha as view.vlookat varies but doesn't give me the alpha values I need. I'd like to divide "get(view.vlookat)" by 90, so it coincides with alpha = "1" when looking at nadir, I've already tried:
set(hotspot[nadirlogo].alpha, div(get(view.vlookat),90)));
But it's not working, I think I'm not using the correct syntax for the divide operator, so, any of you have an idea of how can I make this idea work??
Thanks a lot pals!!
Luis Erantzcani