Hi vvvvsers,
i am a little bit confused about the usage of the MathRound (value) node that comes with the addonpack…
Can somebody explain that behaviour to me ?
https://vvvv.org/sites/default/files/imagecache/large/images/Unbenannt_0.png
Is it a feature or is it a bug ?? ;)
Thanks,
TwoBe
Ahhh, understand…
i dont like the bankers, so i build my own rounding node ;)
Thanks bjoern…
BTW: i dont think that the most user of vvvv would expect such a behaviour ?!
joreg
October 8, 2014, 11:25pm
4
instead of creating your own consider adding the a Midpoint Rounding enum to the node and contribute your change back to the addonpack.
sebl
October 9, 2014, 12:33am
5
http://i62.tinypic.com/30wqt0p.png
i think it was even quicker to write a new V2 plugin for that
will add it to the addonpack
sebl
October 9, 2014, 1:04am
6
joreg
October 9, 2014, 1:33am
8
ja and set the old one to “legacy”.
sebl
October 9, 2014, 10:56am
9
only bad thing is, that this node (even in its simplest form, like the first one) is slower than björns. is that because of V1 vs. V2?
bjoern
October 9, 2014, 11:43am
10
maybe you should use IDiffSpread and only do the rounding if the pins are changed. and also consider switch/case instead of if/else (don’t know if it will be faster but looks nicer :)
sebl
October 9, 2014, 12:06pm
11
hehe, i tried switch case, but using it with enums confused me a bit. will give that another try.
the diffspread thing sounds reasonable. thanks