Fixed some bugs attempting to remove java3d lib

1) function appears to work with any up vector sent into it.

2) I have not yet been able to completely remove java3d library :(. But
I will keep trying.

3) may still have bugs not thoroughly tested.