From: Bruce S. <Bru...@nc...> - 2009-04-18 20:18:17
|
If you're willing to use the newer Visual 5, this problem has been fixed. There is no way in Visual 3 around this other than never to point the camera exactly in the direction of up or -up. (The fix in Visual 5 is quite technical: It consists of adjusting scene.forward whenever it is exactly in the direction of scene.up or -scene.up to point in a slightly different direction as far as the view is concerned, and the human viewer doesn't notice.) Bruce Sherwood alessandro wrote: > I create 3 icons in my prog.: > > Top.view > Front-view > Side-view > > I change the forward attribute of my scene (named scena1). I set > scena1.up = vector (0,0,1) and define 3 func: > > def vista_alto(obj): > global scena1 > scena1.forward = vector(0,0,-1) > > def vista_fronte(obj): > global scena1 > scena1.forward = vector(0,-1,0) > > def vista_lato(obj): > global scena1 > scena1.forward = vector(-1,0,0) > > but when click on the top-view (1° def) an error appears: > > *scena1.forward = vector(-1,0,0) > ValueError: forward may not be colinear with up.* > > Reading the documentation I found this requirement but I'm not able to > solve it. How can I do? > > Alessandro Barracco > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > > > ------------------------------------------------------------------------ > > _______________________________________________ > Visualpython-users mailing list > Vis...@li... > https://lists.sourceforge.net/lists/listinfo/visualpython-users |