denbeste@spdcc.COM (Steven Den Beste) (03/05/90)
I picked up a set of 3D LC-shutter glasses, and I'm trying to put together a package allowing 3D animations with them. To that end, I have plugged a small routine into the vertical retrace which swaps eye lenses. That works just fine, about half the time. The other half, for reasons which should be obvious, the eyes are swapped and the image is rather odd looking. I need one of the following: 1. A way when I start to force one of the two fields (either even or odd) to be the next one used, and to have them alternate from there. or 2. A way to find out during the vertical retrace which field will be the next to be shown. I've spent an amazing amount of time looking through my 3-year-old RKM's, with predictable results. Can anyone help me out? Please mail if possible.
lee@sed170.HAC.COM (John Lee) (03/10/90)
In article <1958@ursa-major.SPDCC.COM> denbeste@ursa-major.spdcc.COM (Steven Den Beste) writes: [...] > 2. A way to find out during the vertical retrace which field will be > the next to be shown. [...] I developed a driver for a pair of 3-D glasses using the vertical-blank interrupt exactly as you described. A bit in one of the video register identifies the current frame (long or short), and is documented in the Hardware manual. I don't have it with me here at work, but I think it's the high bit of the beam vertical position register. Since you're using an assembly routine to access the register, be sure to use the custom register base passed to you and the symbolic reference provided by Commodore. --John Lee ------------------------------------------------------------------------------- Raining CATS and DOGS? Join the RATS: Remote Amiga Teleconferencing System +--------+ John Lee | HUGHES | +--------+ ARPAnet: jhlee@hac2arpa.hac.com Hughes Aircraft Company The above opinions are those of the user and not of those of this machine.