I'm sure you already knew that. Here's a case where I wanted to...
I set scene.fov = 0.001 to get a 2-D view. This works--except things higher than about range*2 are invisible because the light is below them. They become visible when the window is rotated. It'd be nice to be able to put the light way out by the camera, to illuminate everything from the top.
Code to show this effect (the Z-axis line will only go up to about 120, but if you rotate the view 90 degrees around the Y axis you can see it grow out to 300).
def text(x,y,z,t):
global labels
labels.append(sphere(pos=(x,y,z),radius=0.0001,label=str(t)))
def DrawLabels():
text(45,-5,0,'Off (msec)')
text(-10,50,0,'On')
text(-10,-10,0,'0 sec')
text(-10,-10,5,'time')
text(-10,-10,100,'100 s')
text(-10,-10,200,'200 s')
text(-10,-10,300,'3...s')
def InitVisual():
scene.width = 500
scene.height = 500
scene.autoscale = 0
scene.fov = 0.001
scene.center = (50,50,0)
scene.range = (60,60,60)
curve(pos=[(100,0,0),(0,0,0),(0,100,0)], color=color.white)
curve(pos=[(0,0,0),(0,0,300)], color=color.white)
DrawLabels()
David Scherer
visual quality
feature request
Public
|
Date: 2000-06-24 19:33:40 PDT Fixed in CVS. I think. Could use some more testing, e.g. with highly |
|
Date: 2000-06-23 06:10:14 PDT Good guess, but this problem doesn't actually have anything to do with the |
| Field | Old Value | Date | By |
|---|---|---|---|
| status_id | Open | 2000-06-24 19:33:40 PDT | dscherer |
| resolution_id | None | 2000-06-24 19:33:40 PDT | dscherer |
| close_date | - | 2000-06-24 19:33:40 PDT | dscherer |
| priority | 5 | 2000-06-23 06:10:14 PDT | dscherer |
| assigned_to | nobody | 2000-06-23 06:10:14 PDT | dscherer |
| summary | Can't move light source | 2000-06-23 06:10:14 PDT | dscherer |