Re: Fwd: Vpython -> define perspective.

Bruce Sherwood <[email protected]>
Newsgroups gmane.comp.python.visualpython.user
Message-ID <[email protected]>
It can't be done. VPython insists on the coordinate system being a
right-handed coordinate system. What you can do is have y to the
right, z up, and x coming toward you, as in the following example:

from visual import *
x = curve(pos=[(0,0,0), (1,0,0)], color=color.red)
y = curve(pos=[(0,0,0), (0,1,0)], color=color.green)
z = curve(pos=[(0,0,0), (0,0,1)], color=color.blue)
label(pos=x.pos[1], text='x')
label(pos=y.pos[1], text='y')
label(pos=z.pos[1], text='z')
scene.up = (0,0,1)
scene.forward = (-1,0,0)

Bruce Sherwood

2010/11/3 Virgílio Bento <[email protected]>:
> Dear all,
>
> I'm trying to define a scene with the following axis (see attachment).
>
>
> How should i define the scene.up and the scene.forward to achieve this
> perspective?
> Tried several combinations but still haven't found the one.
>
> Thanks for your answer.
>
> Regards, Virgilio Bento
>
>
>
> ------------------------------------------------------------------------------
> Achieve Improved Network Security with IP and DNS Reputation.
> Defend against bad network traffic, including botnets, malware,
> phishing sites, and compromised hosts - saving your company time,
> money, and embarrassment.   Learn More!
> http://p.sf.net/sfu/hpdev2dev-nov
> _______________________________________________
> Visualpython-users mailing list
> Visualpython-users-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/visualpython-users
>
>

------------------------------------------------------------------------------
Achieve Improved Network Security with IP and DNS Reputation.
Defend against bad network traffic, including botnets, malware, 
phishing sites, and compromised hosts - saving your company time, 
money, and embarrassment.   Learn More! 
http://p.sf.net/sfu/hpdev2dev-nov
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.