I'm guessing you're running the program on the older Visual 3, where
this did indeed give an error. There's a "singularity" in the up
direction. What Visual 5 (the new version) does is that whenever the
program tries to set scene.forward and scene.up to be in the same
direction, it nudges scene.forward ever so slightly away from scene.up.
Since scene.forward only affects a human's view of the scene, this
causes no trouble.
Bruce Sherwood
Tim wrote:
> Hi,
> I just picked copied the source code for your chess game, but when I ran
> it, got the error -
>
> Traceback (most recent call last):
> File "C:/Python25/chess.py", line 23, in <module>
> scene.up=(0,0,1)
> ValueError: up may not be colinear with forward.
> >>>
>
> Any ideas why this is happening?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Visualpython-users mailing list
> Vis...@li...
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
|