I'm missing a few more math operations like math.floor, math.ceil, abs and maybe sqrt and pie? And maybe you could incorpate the math stuff of anoeben too :) or anoeben incorps these
more math
-
-
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).
-
i just tried your game, it is really nice, though i couldn't understand the language :p
great effort -
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).
So Math.Floor from my example @ arguments etc lesson, need help
would be:
Codediv(tmp_div, get(i), get(columns)); sub(tmp_sub, tmp_div, 0.49999); roundval(tmp_sub,0); mul(y_offset, tmp_sub, 80);
?
PS. Don't mess with my PIE it will come a round and hit you in the face
-
i just tried your game, it is really nice, though i couldn't understand the language :p
great effortHow far did you get :P Found all 10 hidden relics? or stuck at the menu screen :P
-
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);?
i put it here and it seams to work.. (?)
http://www.virtualtuur.com/krpano/simple/6/so yes i should say, when i'm right
Tuur
-
Hi,
there are now more math functions available directly in krpano:
https://krpano.com/download/beta/#2011-05-20best regards,
Klaus -
Wohoo, awesome! I'll drink one to the demise of the current misc plugin
-
Did you really need an excuse to drink something :P We dutchmen can drink whenever we want :D
But thanks Klaus!
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!