> Subject: [Visualpython-users] Inherent Stereo
> FYI, anyone trying to do real 3D stereo:
> There is a nifty simple "kludge" that gives stereo without additional
code.
[snips]
>Date: Sun, 23 Jan 2005 15:21:33 -0500
>From: Bruce Sherwood <Bru...@nc...>
>A particularly easy way to achieve this effect in an existing program is
>to add the statement
>
>scene.stereo = 'passive'
Please, Bruce: _just_ that statement? Nothing else?
>For a specific example, see stereo.py in the "Contributed programs"
>section of vpython.org. And note that scene.stereodepth can be used to
>move the scene forward. Further details are in the section on
>"Controlling windows" in the on-line reference manual.
I've examined and tried to plug pieces of stereo.py into my program.
I get very odd results:
I can get scene1 (say, 'left') to work as the program works; balls appear,
and change positions just as they're supposed to, but
"copyobjects(left,right)" gives me a) an occasional color-changing HUGE ball
occupying most of the screen, and b) no erasure of previous balls copied
from the active scene ('left').
I also can't understand what's being done by the def:
copyobjects(left,right), and meddling with it seems only to make things
worse....
I'm stuck. (Been here before: a year or more ago you recommended similar
methods to me, and I could not make them work then, either.) Is there an
explanation ("for dummies") of what copyobjects(left,right) is actually
doing, anywhere that I can find it?
stereo.py runs perfectly by itself (the demo, demonstrates).
I have only one need for the kind of stereo you recommended here, (and I
await knowing if " scene.stereo = 'passive' " operates alone without
stereo.py), and that one thing is the ability to rotate and zoom on my
objects in both windows simultaneously. Otherwise I'd stick with my
"kludge" because it's probably roughly 100 times faster, without hiccups and
pauses, than the stereo.py method. (I simply draw the same objects twice,
once into 'left' and once into 'right', so every time a ball moves, it moves
in both scenes 'simultaneously', and since one of the scenes uses a
different center, the stereo has nothing to do with the drawing.)
Please: does scene.stereo='passive' work alone (no other statements), and
how can I find out what copyobjects(a,b) is doing? (I have never had to use
any __double-underlined__ statements before....)
Thanks for the advice so far!
Peace
JB
Xj...@te...
( REMOVE the 'X' before using ! )
NOTE: due to virus explosion, currently deleting ALL messages over 140kb
from the server without downloading.
http://tetrahedraverse.com
|