Author Topic: Blockland in 3D: A Serious Attempt  (Read 1920 times)

Been playing with anaglyph drivers (red-blue 3D glasses), and I wanted to see if I could get Blockland running in stereo 3D.  I figured the free IZ3D driver is no good for this, since IZ3D exclusively supports Direct3D, and Blockland runs exclusively in OpenGL.

Well, crap.  No OpenGL anaglyph driver.  Or is there?  I found a nifty little program called ilstereo that I'm about to give a test run; basically, it captures the OpenGL instructions and injects additional instructions to render stereo frames.  From the developer's FAQ:

Quote
How does it work?
=================
Many OpenGL programs follow this common pattern:
1. Clear the back buffer
2. Render the scene in the back buffer
3. Swap the back and front buffers

The driver intercepts the swap-buffers function and a handful of OpenGL
functions and inserts its own logic, effectively changing the pattern for
rendering 2 frames into:
1. Clear the back buffer
   a. Restrict rendering to left colour channel
   b. Setup projection from left eye's viewpoint
2. Render the scene into the back buffer
3. DON'T SWAP THE BACK AND FRONT BUFFERS (driver prevents this)
4. Clear the back buffer EXCEPT THE RED COLOUR CHANNEL
   a. Restrict rendering to the green and blue colour channels
   b. Setup projection from right eye's viewpoint
5. Render the scene into the back buffer
6. Swap the back and front buffers

Step 5 effectively overlays the scene created in step 2.

If I'm reading this correctly, this SHOULD work, given that I set the rendering method to pre-swap glFlush.  Here goes nothing...

ETA: Not pre-swap glFlush.  That means the driver won't have any frames to capture.  No reduce method for the first attempt.
« Last Edit: February 28, 2013, 03:52:41 PM by Sevara »








Maybe it is better to push it to Badspot so he can make it core part of BL (as switchable option). Anyway, anyone knows how to get/make such red/blue glasses? I wanted to try out anaglyph option in Minecraft for quite some time and lack of those glasses makes it impossible. As I rarely go to cinema, stealing one from it is out of question ;).




Maybe it is better to push it to Badspot so he can make it core part of BL (as switchable option). Anyway, anyone knows how to get/make such red/blue glasses? I wanted to try out anaglyph option in Minecraft for quite some time and lack of those glasses makes it impossible. As I rarely go to cinema, stealing one from it is out of question ;).
Don't go off topic here, that's what OFFTOPIC section was made for.

Don't go off topic here, that's what OFFTOPIC section was made for.
That's not quite off topic,  seeing as the topic is on 3d with the red and blue glasses.


you're welcome.

Guess you missed my edit at the bottom where I realized pre-swap flush would mess with the double-buffering. ;)

Anyway, no dice.  Either B&K started tweaking the double-buffering algorithm, or the stream to the driver is encrypted (which is apparently a fairly common thing- IL Stereo mentioned that a lot of anti-cheating algorithms in commercial games make it not work).