. Untill then, there's workarounds. I'll consider adding proper ceil and floor to the misc plugin. You can simulate .floor and .ceil by subtracting resp. adding 0.49999 to the value before doing roundVal(). Sqrt can be done using pow(val, .5). Abs is available in my misc plugin:
Misc plugin; for loops and more
But yeah, I'ld welcome all of these in krpano. Untill then, there's workarounds. I'll consider adding proper ceil and floor to the misc plugin.
PS: Pie? Yum. I'ld like me some... PI = 3.141592 (that's how far I come without looking it up).
|
|
Quellcode |
1 2 3 |
div(tmp_div, get(i), get(columns)); js(floor(get(tmp_div))); mul(y_offset, get(floor), 80); |
|
|
Quellcode |
1 2 3 4 |
div(tmp_div, get(i), get(columns)); sub(tmp_sub, tmp_div, 0.49999); roundval(tmp_sub,0); mul(y_offset, tmp_sub, 80); |
i just tried your game, it is really nice, though i couldn't understand the language :p
great effort
Benutzerinformationen überspringen
Wohnort: Netherlands
Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer
Zitat
div(tmp_div, get(i), get(columns));
sub(tmp_sub, tmp_div, 0.49999);
roundval(tmp_sub,0);
mul(y_offset, tmp_sub, 80);
?

: https://pame.virtualtuur.com