I have a question concerning the sample stereo network included in the
opendx 4.2.0 samples package (TestStereo.net).

According to the documentation, when one presses '2' to go into the
side-by-side stereo mode, one must middle-click on
the "virtual 3d object" in the center of the screen (as if it were still in
mono mode) in order to make a glyph appear at a given
point.

I want to be able to click on one of the two objects on the screen in
stereo mode, and have a glyph appear at the point
I click on.  After reading the documentation, I tried adjusting the
defMapStereoXY0 function in the sample custom stereo
camera file (src/mycams.c).  After compiling the two files and setting the
appropriate environment variables, running
the network, and pressing '2', I saw diagonal stereo pairs.  However, my
mouse clicks behaved as though I didn't modify
defMapStereoXY0 at all.

Here's an example of one way i tried modifying it:

static int
defMapStereoXY0(void *data, Window frame, Window w, WindowInfo wi,
                        int xi, int yi, int *xo, int *yo)
{
    *xo = xi+200;
    *yo = yi;
    return 0;
}

If I understand the documentation correctly, this should translate all
picks while in stereo mode as if they were 200 pixels
to the right in mono mode.  I was unable to notice any difference, however.

Nathan Weeks
Summer Intern
Raytheon/EROS Data Center
[EMAIL PROTECTED]

Reply via email to