Jump to content
Pioneer4x4

Controlling 3D glasses with an Atari 2600

Recommended Posts


Another project I had was controlling 3D glasses with an Atari 2600. I have working code but not sure which version was the one that actually worked, I need to test it on hardware. Basically some glasses (I started with the old crappy/tiny viewport) Sega 3D glasses, then I got a pair that came bundled with some video card or something. Let me 'splain, no, there is too much, let me sum up...

The glasses have a mini 1/8" stereo jack on them with a common pin, and one pin for each LCD shutter. If I recall, you just apply 5v to a pin and ground the common, and that shutter goes dark. So to display 3D;

Send power to 1 shutter, blocking that eye from seeing the screen.

Display the image on the screen that the other eye should see.

Remove power from 1st shutter, and apply to the other.

Display the other image.

 

I sent data out to the joystick port to turn pins on and off, and that actually controlled the 3D glasses directly. If I remember, no electrical components were used, only a wiring adapter from 9pin D-Sub to headphone jack.

 

I can't even remember how exactly it worked in code, but this is one piece I found on my old HD.

 

set romsize 4k

set tv ntsc

set smartbranching on

dim frame = a

dim rate=b

rate=0

COLUPF = $06

main
rightframe

rem frame 1

frame=1

playfield:

................................

........X.......X...............

........X.......X...............

........X.......X...............

........X.......X...............

........X.......X...............

........X.......X...............

........X.......X...............

................................

................................

................................

end

for c=0 to rate

drawscreen

next c

leftframe

rem frame 2

frame=2

playfield:

................................

.....X.......X..................

.....X.......X..................

.....X.......X..................

.....X.......X..................

.....X.......X..................

.....X.......X..................

.....X.......X..................

................................

................................

................................

end

for c=0 to rate

drawscreen

next c

goto main

vblank

SWCHA=frame

SWACNT=%00000011

return

 

  • Like 2

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...