Hey all,
First off I gotta say this is cool stuff !!
Wrote a quick example (included below), can some on help with the
problme of "breathing" ? If you run the example you will notice the outer
ring changed size based on the orientation of the other rings. Is there a
way to stop this auto scaling ?
Cheers
Eric
from visual import *
org=(1,1,1)
o_ring =
ring(pos=org,axis=(0,1,0),radius=2.0,thickness=0.5,color=color.blue)
m_ring = ring(pos=org,axis=(1,0,0),radius=1.0,thickness=0.5,color=color.red)
i_ring =
ring(pos=org,axis=(0,0,1),radius=3.0,thickness=0.5,color=color.green)
f_ring =
ring(pos=org,axis=(0,0,1),radius=4.0,thickness=0.5,color=color.white)
while 1:
o_ring.rotate(angle=pi/180.,axis=(1,1,0),origin=org)
m_ring.rotate(angle=pi/180.,axis=(1,0,1),origin=org)
i_ring.rotate(angle=pi/180.,axis=(0,1,1),origin=org)
rate(20)
|